Skip to content

ihildebrandt/OpenGL.Net

 
 

Repository files navigation

build nuget NuGet

wiki

OpenGL.Net

Modern OpenGL binding for C#.

Generated from the lastest official XML specification, OpenGL.Net provides:

  • Strongly typed enumerants;
  • Function pointer wrappers, with safe and unsafe parameters, pinning managed memory when necessary;
  • OpenGL entry points overloading;
  • Automatic entry points aliasing management: function loader is aware of the current OpenGL context;
  • Fully documented OpenGL entry points with the official manual pages;
  • Checking errors after each OpenGL command (Debug builds only);
  • Integrated entry points call logging (Debug builds only);
  • Vector, math and color data structures. With System.Numerics.Vector support.
  • Automatic OpenGL extensions and implementation limits query;

Currently implemented API are:

If you need more OOP in OpenGL, you can give a try to OpenGL.Net.Objects.

Instructions

In order to use OpenGL.Net you only need to link the library; Then it is just to write code. Due the current state of the project, it is advisable to clone the repository and work directly with the library, since this method offers more flexible solution (i.e. Debug builds).

Clone the repository

Follow the command below to clone and build the repository.

git clone https://github.com/luca-piccioni/OpenGL.Net.git
cd OpenGL.Net
msbuild /p:Configuration=Release OpenGL.Net_VC14.sln`

The executable will be located at OpenGL.Net/OpenGL.Net/bin/net35/Release/OpenGL.Net.dll and OpenGL.Net/OpenGL.Net/bin/net461/Release/OpenGL.Net.dll.

NuGet

Open the Package Manager Console and run the following command:

Install-Package OpenGL.Net

or just download the nuget binary package

The nuget package does not implement any UI integration. If you need it, install one of the following nuget packages:

Documentation

Go to the wiki to look for information about the project.

Basic Samples

About

Modern OpenGL bindings for C#.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.5%
  • Other 0.5%