v3c70r / GL4Framework

An OpenGL 4 Framework
5 stars 2 forks source link

Do you have a dynamic scene graph data structure? #8

Open xeechou opened 7 years ago

xeechou commented 7 years ago

As the title

v3c70r commented 7 years ago

The Object class defines the basic class of all objects in the scene. Each object has a pointer to its parent and a local transformation matrix. The global transformation of the object can be retried by stacking the local transformation of the nodes all the way to the root. The Scene class has pointers to all of the nodes in a scene.