|
The GLE23 Ver. 4 library is distributed as an unmanaged VC++ static
library project created with Visual Studio 2005. The source files can be easily integrated into a DLL project if that format is
desired. The project does not link to the ATL or MFC libraries, although one ATL header file (atlbase.h) is #include 'd when building
the library. Separate debug and release versions are built, with the debug version having 'db' appended to the file name. An 'include'
directory and a 'lib' directory exist beneath the main project directory, and the library header files and build output (the .lib files) are
copied to these directories after each build. This simplifies including/linking to the library from client projects.
The only header you need to include in a client project is the main 'gle32v4.h'
file; it #includes all the subsidiary header files for you, plus the OpenGL headers. You will need to have the extension headers
(glext.h and wglext.h) installed with your standard GL header files (<gl/gl.h> and <gl/glu.h>), wherever they may happen
to be. A sample code snippet from a client project stdafx.h file appears below, illustrating the necessary #includes/library links.
( You may find the PI declaration useful, too. )
const double PI = 3.1415926535897932384626433832795;
#include <gle32v4.h>
#pragma comment (lib, "opengl32.lib")
#pragma comment (lib, "glu32.lib")
#ifdef _DEBUG // link to release or debug library build
#pragma comment(lib, "gle32v4db.lib")
#else
#pragma comment (lib, "gle32v4.lib")
#endif
|