MicBosi / VisualizationLibrary

Visualization Library is a C++ middleware for high-performance 2D and 3D graphics applications based on OpenGL 1.x-4.x supporting Windows, Linux and Mac OS X.
http://VisualizationLibrary.org
Other
339 stars 94 forks source link

Move all references to OpenGL functions inside vl::OpenGLFunctions #159

Open MicBosi opened 6 years ago

MicBosi commented 6 years ago

Basically, create a new vl::OpenGLFunctions class that encapsulates all the GL function available for a given OpenGLContext. Initialized when the OpenGLContext initializes and returned by it:

vl::OpenGLFunctions* OpenGLContext::functions()

Everywhere we use GL functions (render states etc.) we should use this class (by making the OpenGLContext available).

With proper support for Win, Linux & Mac.