Skip to content

Structure of a project

GwennaelBuchet edited this page Aug 31, 2012 · 1 revision

A project must extends the CGSGScene class.

Each class in the cgSceneGraph has a name begining with "CGSG".

The CGSGScene is not the scenegraph itself, but an layer over the sceneGraph. So your main class, as it extends the CGSGScene:

  • encapsulate the scenegraph (this.scenegraph)
  • provides several methods to manage mouse or touch events, selection and resize detection, ...

The CGSGSceneGraph class encapsulate :

  • the root node of the graph,
  • several methods to animate the transformations and attributes
  • ...

Clone this wiki locally