Table of Contents
|Table of Contents|
The roSGNode object is the BrightScript equivalent of SceneGraph XML file node creation.
Where nodetype is a string specifying the node class to be created. For example, the following creates an object of the Scene Graph SceneGraph Poster node class:
Reference information on all Scene Graph SceneGraph node classes can be found in this SceneGraph API Reference.
Prior to creating an roSGScreen object and calling its
show() function, creating roSGNode objects and using their interfaces is not guaranteed to work correctly. If you need to create some roSGNode objects and/or use roSGNode interfaces prior to calling an roSGScreen object
show() function, you can use an roSGScreen object
createScene() function to create an instance of a Scene Graph SceneGraph XML component that does any required setup and initialization prior to the roSGScreen object being displayed.