https://github.com/over-run/glcs
OpenGL bindings for C#.
https://github.com/over-run/glcs
csharp glfw glfw-library glfw-opengl-library glfw3 opengl
Last synced: about 2 months ago
JSON representation
OpenGL bindings for C#.
- Host: GitHub
- URL: https://github.com/over-run/glcs
- Owner: Over-Run
- License: mit
- Created: 2021-02-14T13:02:22.000Z (over 4 years ago)
- Default Branch: WinX64
- Last Pushed: 2022-01-26T07:18:32.000Z (over 3 years ago)
- Last Synced: 2025-03-12T04:35:45.431Z (3 months ago)
- Topics: csharp, glfw, glfw-library, glfw-opengl-library, glfw3, opengl
- Language: C#
- Homepage:
- Size: 614 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GLCs 
OpenGL bindings for C#.  
Now include:
- [GLFW](https://www.glfw.org/) 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!](https://github.com/Over-Run/GLCs/issues)
## How to Use
1. Add package to your project:
```
dotnet add package GLCs
```
2. Use it just like [GLCs_test](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`:
```c#
void themethod([Nullable] ref type[] param) { }
void othermethod()
{
type[] a = {};
themethod(ref a);
}
````[Nullable] aDelegate param`:
```c#
delegate void aDelegate();
void themethod([Nullable] ref aDelegate param) { }
void othermethod()
{
themethod(null);
}
````[Nullable] IntPtr param`:
```c#
void themethod([Nullable] IntPtr param) { }
void othermethod()
{
themethod(IntPtr.Zero);
}
```