Difference between revisions of "JavascriptGraphicsAPI"

From Sirikata Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
==Creating a new graphics object==
 
==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==
 
==Moving a graphics object==

Revision as of 21:22, 6 February 2010

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