Skip to content

vipyami/OpenGL.Net

 
 

Repository files navigation

OpenGL.Net

Build Status

Modern OpenGL binding for C#.

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

  • Strongly typed enumerants: we like strongly-typed enumerations and flags.
  • Function pointer wrappers, with unsafe and strongly-typed arguments: because the garbage collector we're required to pin managed objects in order to use the OpenGL entry points; OpenGL.Net functions already fix the arguments for you. Of course the unmanaged pointer capability is reserved for those situation that you'll face.
  • OpenGL entry points overloading.
  • Automatic entry points aliasing management: many OpenGL commands were introduced in extensions, which were promoted from ARB or in core specification; if the semantic of these commands didn't change, they can be called equivalently. When the OpenGL specification assert a command equivalency, the corresponding OpenGL.Net function will fallback to equivalent commands in case the current host does not implement the specific core function.
  • Fully documented OpenGL entry points with the official manual pages (GL2 and GL4 repositories): having a nice and complete documentation integrated with your IDE will be of great help.
  • Integrated entry points call logging: every OpenGL call could be logged for debugging. Additionally every OpenGL command is checked for errors, to catch a soon as possible OpenGL errors.

Currently implemented API are:

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.

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

Documentation

Basic Samples

About

Modern OpenGL bindings for C#.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.1%
  • Other 0.9%