PDA

View Full Version : FreeGLUT with wxWidgets



Kip Warner
01-23-2008, 07:00 PM
So there are probably at least three different forums / mailing lists this question could have been posted to, but I figured I'd try this one first.

I am using FreeGLUT's implementation of GLUT. I would like to use some of the drawing routines, e.g. glutSolidTeapot, glutSolidSphere, etc. within my application. I want to do so without calling glutInit because I do not want my message pipeline hooked since I am already using wxWidgets for my GUI. Is there any way to use it without requiring it to install its event message handler?

Kip

-NiCo-
01-23-2008, 07:20 PM
You can always extract the OpenGL source code from this (http://downloads.sourceforge.net/mesa3d/MesaGLUT-7.0.2.zip) archive.

e.g. the GL code for glutSolidTeapot is in /Mesa-7.0.2/src/glut/glx/glut_teapot.c

N.