SilverScreen Solid Modeler

SPRITE_DATA        

SPRITE_DATA        

Previous topic Next topic  

SPRITE_DATA        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SPRITE_DATA

 

Structure

This data type is used to store information about sprites

 

 

 struct SPRITE_DATA

    {

    USINT32   flags;

    SS_XYZ    base;

    SS_XYZ    top_axis;

    };

 

 


Members

Member

Description

flags

A bit flag with the following values:

 

Constant

Meaning

SPRITE_TYPE_POINT

Rotate about basepoint keeping x-axis horizontal and y-axis vertical

SPRITE_TYPE_ARBITRARY_AXIS

Rotate about user-defined axis keeping relative x-axis horizontal

SPRITE_TYPE_X_AXIS

Rotate about the orientation's x-axis keeping y-axis vertical

SPRITE_TYPE_Y_AXIS

Rotate about the orientation's y-axis keeping x-axis horizontal



SPRITE_ORIENTATION_WSPACE

Rotations performed relative to world space (w-space)

SPRITE_ORIENTATION_CSPACE

Rotations performed relative to construction space (c-space)

SPRITE_ORIENTATION_ESPACE

Rotations performed relative to entity space (e-space)

SPRITE_ORIENTATION_TSPACE

Rotations performed relative to texture space (t-space)

 

base

The basepoint of rotation for point sprites, or the bottom of the axis of rotation otherwise

top_axis

The top of the axis of rotation for non-point sprites

 

 

Remarks

When 'flags' is 0 it means the entity which contains this SPRITE_DATA is not a sprite.

 

See Also

OBJECT_NODE

 

Header

silver.h, ssnodes.h