Functions |
|
Rt2dObject * | Rt2dShapeCreate (void) |
RwBool | Rt2dShapeDestroy (Rt2dObject *shape) |
Rt2dObject * | Rt2dShapeAddNode (Rt2dObject *shape, RwUInt32 flag, Rt2dPath *path, Rt2dBrush *brush) |
RwInt32 | Rt2dShapeGetNodeCount (Rt2dObject *shape) |
Rt2dObject * | Rt2dShapeRender (Rt2dObject *object) |
Rt2dObject * | Rt2dShapeStreamWrite (Rt2dObject *shape, RwStream *stream) |
RwUInt32 | Rt2dShapeStreamGetSize (Rt2dObject *shape) |
Rt2dObject * | Rt2dShapeStreamRead (RwStream *stream) |
Rt2dObject * | Rt2dShapeLock (Rt2dObject *shape) |
Rt2dObject * | Rt2dShapeUnlock (Rt2dObject *shape) |
Shapes are collections of brushes and paths which are added together using nodes. Shapes can be saved and added to scenes.
|
Rt2dShapeAddNode adds the shape, path and brush together. The property of the particular path node, such as solid or outline, is defined by the flag parameter. See Rt2dShapeNodeFlag. Shapes with color-gradient brushes do not support dynamic update of colors
|
|
Rt2dShapeCreate is used to create and initialize a new shape object. To create a new shape:
|
|
Rt2dShapeDestroy is called to destroy the specified shape.
|
|
Rt2dShapeGetNodeCount is used to determine the number of nodes in a shape.
|
|
Rt2dShapeLock locks a shape for editing. A locked shape can not be streamed or rendered and is provided only for editing purposes. When a shape is locked, Rt2dPath and Rt2dBrush can be added or removed.
|
|
Rt2dShapeRender renders a 2d shape. Shapes can be rendered individually. If a shape is part of a scene, the Rt2dSceneRender renders all visible objects.
|
|
Rt2dShapeStreamGetSize is used to determine the size in bytes of the binary representation of the given shape. This value is used in the binary chunk header to indicate the size of the chunk. The size does include the size of the chunk header.
|
|
Rt2dShapeStreamRead is used to read a shape from the specified binary stream. Note that prior to this function call, a binary shape chunk must be found in the stream using the RwStreamFindChunk API function. The sequence to locate and read a shape from a binary stream is as follows: RwStream *stream; Rt2dObject *newShape; stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "mybinary.xxx"); if( stream ) { if( RwStreamFindChunk(stream, rwID_2DSHAPE, NULL, NULL) ) { newShape = Rt2dShapeStreamRead(stream); } RwStreamClose(stream, NULL); }
|
|
Rt2dShapeStreamWrite is used to write the specified shape to the given binary stream. Note that the stream will have been opened prior to this function call.
|
|
Rt2dShapeUnlock unlocks a shape. An unlocked shape may be streamed and rendered. The shape is triangulated at this point. Any curves within the shape are flatten for triangulation using the current flattening criteria.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |