A scene is a container of 2d objects that can be manipulated and rendered. A scene is a also a 2d object. A scene can contain shapes, object strings, pick regions and other scenes.
|
Rt2dSceneAddChild adds a child object to a scene. The scene must be locked.
|
|
Rt2dSceneCreate allocates storage for the contents of a scene of 2d objects.
|
|
Rt2dSceneDestroy deallocates storage for a scene of 2d objects. All child objects added to a scene are destroyed.
|
|
Rt2dSceneForAllChildren Performs a callback on all children of a scene
|
|
Rt2dSceneGetChildByIndex Gets a child of a scene by its index number.
|
|
Rt2dSceneGetChildCount is used to determine the number of child objects in a scene.
|
|
Rt2dSceneGetNewChildObjectString creates a new child object string. The scene needs to be locked before a new child object string can be added.
|
|
Rt2dSceneGetNewChildPickRegion creates a new child pick region. The scene needs to be locked before a new child pick region can be added.
|
|
Rt2dSceneGetNewChildScene creates a new child scene. The scene needs to be locked before a new child scene can be added.
|
|
Rt2dSceneGetNewChildShape creates a new child shape. The scene needs to be locked before a new child shape can be added.
|
|
Rt2dSceneLock locks a scene for editing. A locked scene can not be streamed or rendered and is provided only for editing purposes. When a scene is locked child objects can be added to the scene.
|
|
Rt2dSceneRender renders all visible 2d objects in a scene.
|
|
Rt2dSceneSetDepthDirty Records that the depth of a child has changed and a depth sort is necessary
|
|
Rt2dSceneStreamGetSize is used to determine the size in bytes of the binary representation of the given scene. This is used in the binary chunk header to indicate the size of the chunk. The size does include the size of the chunk header.
|
|
Rt2dSceneStreamRead Reads a scene object from a stream The sequence to locate and read a scene from a binary stream is as follows: RwStream *stream; Rt2dObject *newScene; stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "mybinary.xxx"); if( stream ) { if( RwStreamFindChunk(stream, rwID_2DSCENE, NULL, NULL) ) { newScene = Rt2dSceneStreamRead(stream); } RwStreamClose(stream, NULL); }
|
|
Rt2dSceneStreamWrite Writes a scene to a stream
|
|
Rt2dSceneUnlock unlocks a scene. An unlocked scene may be streamed and rendered. Objects can also be manipulated in an unlocked scene.
|
|
Rt2dSceneUpdateLTM goes through the scene hierarchy and recalculates the scene to see if the LTM needs to be updated. This is only necessary if an update is required before rendering as this operation is also called by Rt2dSceneRender.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |