SilentPenguin / Sparrow

Sparrow is a game engine framework built in C# for the .net core runtime.
MIT License
6 stars 0 forks source link

Protection Against OpenGL Profiles. #3

Open SilentPenguin opened 7 years ago

SilentPenguin commented 7 years ago

Currently, the OpenGL wrapper implementation does not protect the programmer from accessing functions and enum properties that should not be available in the current OpenGL Profile.

It is arduous to crosscheck the documentation to confirm that a method is available in a certain version or that a certain method accepts a given constant.

To Resolve this, the OpenGL wrapper should provide some mechanism to make it clear what version the function is available under. This should be done either via documentation or preferably though code, providing compiler safety.