These are chat archives for opentk/opentk
This Open Toolkit library is a fast, low-level C# wrapper for OpenGL and OpenAL. It can be used standalone or inside a GUI on Windows, Linux, Mac, Android and iOS.
// Used in debug-mode only, for automatic OpenGL error-checking. // // Works like this: an instance is created before each OpenGL function is called. // The constructor resets the OpenGL error state. Once the native function returns, // the error state is checked again, raising the relevant exceptions. // // A using-region is used to ensure Dispose() is called. // // Make sure that no error checking is added to the GetError function, // as that would cause infinite recursion!