Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

SFML C# OpenGL. Draw a triangle using shaders

$
0
0

We will use OpenTK 4 version because it supports .NET Core.

Install VSCode and .NET Core SDK. Follow the instruction: https://code.visualstudio.com/docs/languages/dotnet

Create and an empty folder (with a name, for example: SfmlNetAndOpenTK4DotNetCore) and go to it:

cd SfmlNetAndOpenTK4DotNetCore

Create a new console application by executing this command:

dotnet new console

Add packages: SFML.NET and OpenTK 4 using this commands:

dotnet add package SFML.Net --version 2.5.0
dotnet add package OpenTK --version 4.0.0-pre9.1

Open VSCode by typing the command in the console:

code .

Copy and pasta the code below …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>