Bob La Quey wrote:
Specifically from Python.
It's been a while, though.
I am finding odd dependencies which I do not understand between OpenGL.GL, OpenGL.GLUT, OpenGL.GLU and glFreeType.
Welcome to SWIG Hell. PyOpenGL is a prime example of what I hated about SWIG.
I found that using PyGtk and PyGtkGLExt were the most effective method a couple of years ago. Unfortunately, it looks like GtkGLExt is now unmaintained. :(
You can avoid the whole GLUT system (and I recommend that you do so because it really kinda sucks) because you use the PyGtk system for menus and widgets while PyGtkGLExt gives you a managed OpenGL frame in which to draw using OpenGL.
IIRC, I dodged the whole SWIG garbage by using ctypes in Python to access the OpenGL API and directly draw on the frame returned by PyGtkGLExt.
Also can you reccomend a good book on OpenGL.
Nothing is particularly good. I have both the OpenGL Superbible and OpenGL Programming Guide. They're okay, at best.
The NeHe tutorials are probably more instructive. However, they generally have a high Windows-centric focus in spite of being OpenGL:
http://nehe.gamedev.net/ Good luck, -a -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
