From: Josh P. <jpa...@re...> - 2003-10-21 19:44:07
|
Guys, I am using the CsGL code for a Ant simulation/visualization project (Monte Carlo simulation), and i get how to inherit from the Model class, and build from there, but my question is this; I want to build basically a "Scene DOM", similar to a HTML DOM, and when i call .Draw() on the root obj, each child leaf/node will render itself (call glBegin(), glVertex3f(), etc) relative to its position in the SOM (scene obj model); now, I know that you can use the calls from inside obj instance that inherits from the Model class, but, waht about my leaf nodes? do they all have to inherit from that same Model class to use the OpenGL calls? (this doesnt make sense, since that would be a LOT of overhead for each leaf) --- is there a way to call the OGL functions statically or something, since OpenGL is a "state machine", and they dont really need to be class members? Also, Ive looked at the sourceforge site, and the main homepage, but i cant find any documentation for the classes / namespaces; is there any, and if so, could someone please provide a link? (Ive checked the newsgroups and the message board at sourceforge as well, but i could have missed it.) Thanks! Josh Patterson |