Now include:
- GLFW 3.3.6
- OpenGL 4.6
- Add package to your project:
dotnet add package GLCs
- 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
.
Includes all funtions in glfw3.h
.
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);
}