Skip to content

Over-Run/GLCs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLCs License

OpenGL bindings for C#. Nuget Nuget (with prereleases)

Now include:

  • GLFW 3.3.6
  • OpenGL 4.6

If you are sure that any bugs come from this library, or you want any features come to this library, please report them to us!

How to Use

  1. Add package to your project:
    dotnet add package GLCs
    
  2. Use it just like GLCs_test.

Note: Required glfw3.dll and opengl32.dll.

The all classes are under GLCs namespace.

The GL class includes all functions (4.6) in glew.h.

The GLFW class

Includes all funtions in glfw3.h.

Nullable Types

Mark a method may return "NULL" in C, or mark a param can be "NULL" in C.

[Nullable] type[] param:

void themethod([Nullable] ref type[] param) { }
void othermethod()
{
    type[] a = {};
    themethod(ref a);
}

[Nullable] aDelegate param:

delegate void aDelegate();
void themethod([Nullable] ref aDelegate param) { }
void othermethod()
{
    themethod(null);
}

[Nullable] IntPtr param:

void themethod([Nullable] IntPtr param) { }
void othermethod()
{
    themethod(IntPtr.Zero);
}