OpenGL Renderer - Application Stage

The Application Stage

Xj3D is considered the application thread for this design. It maintains its own VRML SG representation and handles all events and scripting API's. Whenever a oglSG node needs updating it registers this with the SGManager. Later the SGManager will call its UpdateListener and allow changes to the oglSG. The application is responsible for double buffering its data to handle the delayed setting.

Example usage:

oglSGTransform trans = new oglSGTransform();
sgManager.updateBoundsChanged(this);

//----------------------------------------------------------
// Methods required by UpdateListener
//----------------------------------------------------------
public void update() {
	trans.setMatrix(myMatrix);
}


[ Xj3D Homepage | Xj3D @ Web3d | Screenshots | Dev Releases | Contributors | Getting Started ]
Last updated: $Date: 2004-04-30 04:50:26 $