JavascriptGraphicsAPI

From Sirikata Wiki
Jump to navigation Jump to search

Cross thread communication from Physics and Networking to graphics

Objects are sent across the thread barrier to alter the current scene graph being displayed


Creating a new graphics object

{

 id:"f47ac10b-58cc-4372-a567-0e02b2c3d479"
 mesh: "http://example.com/test.dae"
 {
   location:[1,2,3],
   rotation:[.5,0,0,.5]
 }

}

Moving a graphics object

Destroying a graphics object

Attaching a graphics object