Re: [PyOpenGL-Users] oriented object programming & PyOpenGL
Brought to you by:
mcfletch
From: altern <al...@gm...> - 2007-09-28 07:34:27
|
hi eric as you notice opengl does not include itself the idea of classes, it is based on the concept of "state machine". But you can create your own classes that wrap the opengl commands. However as mike points there is a lot of work done on top of opengl. enrike Mike C. Fletcher(e)k dio: > Eric Germaneau wrote: >> Hello, >> >> On the web one can find example about making a sphere. >> But I've not found yet an example which use the notion of class. >> Is it possible to use oriented object programming with PyOpenGL (or >> OpenGL)? >> If yes, I'm looking for an example which display spheres and >> cylinders. I'm planned to display molecules .... >> Thanks in advance, > Sounds like what you want is a scenegraph engine. There are quite a few > of them available in Python, including OpenGLContext (my own). You can > find pointers to the one's I'm aware of here: > > http://www.vrplumber.com/py3d.py?category=retained > > HTH, > Mike > |