Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

vlOd2/QuickGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

I have stopped maintaining QuickGL to focus my attention on a pure C# windowing library
QuickGL should still work just fine for a long time, I will just not be improving the quality of the bindings
It can be used only for OpenGL bindings (without GLFW or AL), so it may be still useful to some people

QuickGL

Straightforward GLFW, OpenGL and OpenAL bindings for C# targeting .NET 8

Bindings

The bindings are automatically generated based on the official GLFW, AL/ALC headers and OpenGL registry
Bindings are exported with pointers, so unsafe code is required
You may generate your own custom bindings using QGLBindingsGen and replace the contents of the Bindings folder

Example

More information is available on the wiki, but you can get a GLFW window and OpenGL context with just 5 lines of code:

QGL.Init();
glfwInit();
nint window = glfwCreateWindow(640, 480, new QGLString("Game"), 0, 0);
glfwMakeContextCurrent(window);
QGL.LoadGL();

Utilities

QuickGL includes some utilities to help you out with common tasks:

  • QGLString, to ease the interop between native strings (byte*) and managed strings
  • PtrHelper, to help you use the fast stack memory (stackalloc) with GLFW/GL functions
  • Input, an easy to use event polling oriented wrapper around GLFW for keyboard and mouse input

Note

All of these are optional and you can just use QuickGL for the bindings just fine without them

About

GLFW, OpenGL and OpenAL bindings for C# .NET 8

Resources

License

Stars

Watchers

Forks

Contributors

Languages