Skip to content

Instantly share code, notes, and snippets.

View dcronqvist's full-sized avatar
🛠️
doin stuff

dcronqvist

🛠️
doin stuff
View GitHub Profile
@dcronqvist
dcronqvist / HelloTriangle.cs
Last active March 19, 2024 18:15
A quick OpenGL HelloTriangle program in C#, useful for testing and getting started.
using System;
using DotGLFW;
using static DotGL.GL;
class Program
{
/// <summary>
/// Obligatory name for your first OpenGL example program.
/// </summary>
private const string TITLE = "Hello Triangle!";
@dcronqvist
dcronqvist / GL.cs
Created August 12, 2020 21:52
Bindings for OpenGL 3.3 Core Profile in C#
using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace OpenGL
{
/// <summary>
/// Returns a function pointer for the OpenGL function with the specified name.