dhpoware logo
home products source demos contact us
navbar navbar
box top left corner box top right corner
OpenGL Run-time Dynamic Linking Library.

This library is used to load any GL and GLU DLLs at runtime. The GLdriver library uses run-time dynamic linking to the OpenGL DLLs. This means that the client application no longer needs to link to the import libraries for the OpenGL DLLs (i.e., opengl32.lib and glu32.lib).

The GLdriver library supports OpenGL 1.1 to OpenGL 2.0 inclusive, and GLU 1.2 to GLU 1.3 inclusive.

The GLdriver library is small and consists of only 2 files: gl_driver.h and gl_driver.c. Also included is a small test application (main.cpp) that illustrates how easy it is to incorporate the GLdriver library into any existing OpenGL application.

zip file Download source, and Visual C++ 2010 solution files.

Change History:

10 July 2010.
Added missing .vcxproj.filters file to the project.

13 June 2010.
Updated solution to Microsoft Visual Studio 2010.

2 February 2008.
Updated solution to Microsoft Visual Studio 2008.

20 March 2006.
gl_driver.c: The CopyString() function's argument list was incorrectly declared as (LPCSTR *pszText) instead of (LPCSTR pszText). Also added missing include statement for the stdio.h header file.

19 March 2006.
Added GLdriverExtensionSupported(), GLdriverGetGLSLVersion(), and GLdriverSupportsGLSLVersion().
Replaced GLdriverIsSupportedOpenGL11(), GLdriverIsSupportedOpenGL12(), GLdriverIsSupportedOpenGL13(), GLdriverIsSupportedOpenGL14(), GLdriverIsSupportedOpenGL15(), and GLdriverIsSupportedOpenGL20() with GLdriverGetGLVersion(), and GLdriverSupportsGLVersion().
Replaced GLdriverIsSupportedGLU12(), and GLdriverIsSupportedGLU13() with GLdriverGetGLUVersion(), and GLdriverSupportsGLUVersion().
Replaced GLdriverInitAPI() with GLdriverInit().

4 March 2006.
Added missing .vcproj file to the zip archive. Fixed bug in main.cpp where the command-line parameters were being incorrectly converted to unicode. This caused the test application to crash when it was started with the optional DLL file name parameters. A new ToUnicodeString() function was added to perform the correct ascii to unicode conversion.

box bottom left corner content box box bottom right corner
logo logo