Click here to Skip to main content
15,879,535 members
Articles / Multimedia / OpenGL

OGLTools, A OOP solution to OpenGL programming

Rate me:
Please Sign up or sign in to vote.
4.43/5 (12 votes)
15 Jul 20023 min read 118.9K   3.5K   50  
A set of classes designed to make programming of OpenGL easier
#ifndef OGLT_H
	#define OGLT_H

#ifndef _OGLTOOLS_LIB 
	#pragma message("     _Adding library: Jpegmt.lib, OpenGL32.lib, glu32.lib" ) 
	#pragma comment(lib, "opengl32.lib")
	#pragma comment(lib, "glu32.lib")
	#pragma comment(lib, "Jpegmt.lib")
	#ifdef _DEBUG
		#pragma message("     _Adding library: OGLToolsd.lib (Debug version)" ) 
		#pragma comment(lib, "OGLToolsd.lib")
	#else
		#pragma message("     _Adding library: OGLTools.lib(Release version)" ) 
		#pragma comment(lib, "OGLTools.lib")
	#endif
#endif

	#include <afxmt.h>
	#include <GL/gl.h>
	#include <GL/glu.h>
	#include "CWGL.h"
	#include "CGLImage.h"
	#include "CGLTexture.h"
	#include "CRGBSurface.h"
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
United States United States
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (http://research.microsoft.com/pex).

Comments and Discussions