yvvki / Nusantara

Cross-API Graphic Engine
MIT License
0 stars 0 forks source link

Extend native Silk.NET.OpenGL struct types. #8

Closed yvvki closed 2 years ago

yvvki commented 2 years ago

Remove types from Nusantara.OpenGL namespace and replace it with existing type from Silk.NET.OpenGL namespace. Make extension methods that will make these types OOP-like. If possible, auto-generate the methods from Silk.NET T4 text templates and document every parameter and the possible errors as exception tags.

This will make the method unmanaged, thus faster.

yvvki commented 2 years ago

Seems like we still need to store the GL API on the types.

Instead of replacing, remove every wrapper method's parameter checking and document every method instead. Have a way to throw errors as exceptions via GL.GetError