|
orxDLLAPI orxFRAME *orxFASTCALL | orxFrame_Create (orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFrame_Delete (orxFRAME *_pstFrame) |
orxDLLAPI void orxFASTCALL | orxFrame_Exit () |
orxDLLAPI orxFRAME *orxFASTCALL | orxFrame_GetChild (const orxFRAME *_pstFrame) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFrame_GetIgnoreFlagNames (orxU32 _u32Flags) |
orxDLLAPI orxU32 orxFASTCALL | orxFrame_GetIgnoreFlagValues (const orxSTRING _zFlags) |
orxDLLAPI orxFRAME *orxFASTCALL | orxFrame_GetParent (const orxFRAME *_pstFrame) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFrame_GetPosition (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos) |
orxDLLAPI orxFLOAT orxFASTCALL | orxFrame_GetRotation (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFrame_GetScale (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale) |
orxDLLAPI orxFRAME *orxFASTCALL | orxFrame_GetSibling (const orxFRAME *_pstFrame) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFrame_Init () |
orxDLLAPI orxBOOL orxFASTCALL | orxFrame_IsRootChild (const orxFRAME *_pstFrame) |
orxDLLAPI void orxFASTCALL | orxFrame_SetParent (orxFRAME *_pstFrame, orxFRAME *_pstParent) |
orxDLLAPI void orxFASTCALL | orxFrame_SetPosition (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvPos) |
orxDLLAPI void orxFASTCALL | orxFrame_SetRotation (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation) |
orxDLLAPI void orxFASTCALL | orxFrame_SetScale (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, const orxVECTOR *_pvScale) |
orxDLLAPI void orxFASTCALL | orxFrame_Setup () |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFrame_TransformPosition (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvPos) |
orxDLLAPI orxFLOAT orxFASTCALL | orxFrame_TransformRotation (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxFLOAT _fRotation) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxFrame_TransformScale (orxFRAME *_pstFrame, orxFRAME_SPACE _eSpace, orxVECTOR *_pvScale) |
Frame (scene node) Module. Allows to handles frame (scene nodes). It consists in a nodes (arranged in a hierarchical tree) having their position given in their parent local coordinate subsystem and caching their global one (in the root coordinate system). They're used to give position, rotation & scale to an object or a group of objects. Frames are structures. They thus can be referenced by Object Module.
◆ orxFRAME_KU32_FLAG_DEPTH_SCALE
#define orxFRAME_KU32_FLAG_DEPTH_SCALE 0x00000004 |
Relative depth scaling flag
Definition at line 67 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_NONE
#define orxFRAME_KU32_FLAG_IGNORE_NONE 0x00000000 |
Rotation, scale and position are affected by parent
Definition at line 69 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_X
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_X 0x00010000 |
Position is unaffected by parent's position on X axis
Definition at line 80 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_Y
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_Y 0x00020000 |
Position is unaffected by parent's position on Y axis
Definition at line 81 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_Z
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_POSITION_Z 0x00040000 |
Position is unaffected by parent's position on Z axis
Definition at line 82 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_ROTATION
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_ROTATION 0x00001000 |
Position is unaffected by parent's rotation
Definition at line 75 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_X
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_X 0x00002000 |
Position is unaffected by parent's scale on X axis
Definition at line 76 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_Y
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_Y 0x00004000 |
Position is unaffected by parent's scale on Y axis
Definition at line 77 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_Z
#define orxFRAME_KU32_FLAG_IGNORE_POSITION_SCALE_Z 0x00008000 |
Position is unaffected by parent's scale on Z axis
Definition at line 78 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_ROTATION
#define orxFRAME_KU32_FLAG_IGNORE_ROTATION 0x00000100 |
Rotation is unaffected by parent
Definition at line 70 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_SCALE_X
#define orxFRAME_KU32_FLAG_IGNORE_SCALE_X 0x00000200 |
Scale is unaffected by parent on X axis
Definition at line 71 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_SCALE_Y
#define orxFRAME_KU32_FLAG_IGNORE_SCALE_Y 0x00000400 |
Scale is unaffected by parent on Y axis
Definition at line 72 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_IGNORE_SCALE_Z
#define orxFRAME_KU32_FLAG_IGNORE_SCALE_Z 0x00000800 |
Scale is unaffected by parent on Z axis
Definition at line 73 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_NONE
#define orxFRAME_KU32_FLAG_NONE 0x00000000 |
Frame flags No flags
Definition at line 61 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_SCROLL_X
#define orxFRAME_KU32_FLAG_SCROLL_X 0x00000001 |
X axis differential scrolling flag
Definition at line 63 of file orxFrame.h.
◆ orxFRAME_KU32_FLAG_SCROLL_Y
#define orxFRAME_KU32_FLAG_SCROLL_Y 0x00000002 |
Y axis differential scrolling flag
Definition at line 64 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_IGNORE_ALL
#define orxFRAME_KU32_MASK_IGNORE_ALL 0x0007FF00 |
Rotation, scale and position are unaffected by parent
Definition at line 85 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_IGNORE_POSITION
#define orxFRAME_KU32_MASK_IGNORE_POSITION 0x0007F000 |
Position is unaffected by parent
Definition at line 84 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_IGNORE_POSITION_POSITION
#define orxFRAME_KU32_MASK_IGNORE_POSITION_POSITION 0x00070000 |
Position is unaffected by parent's position
Definition at line 83 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_IGNORE_POSITION_SCALE
#define orxFRAME_KU32_MASK_IGNORE_POSITION_SCALE 0x0000E000 |
Position is unaffected by parent's scale
Definition at line 79 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_IGNORE_SCALE
#define orxFRAME_KU32_MASK_IGNORE_SCALE 0x00000E00 |
Scale is unaffected by parent
Definition at line 74 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_SCROLL_BOTH
#define orxFRAME_KU32_MASK_SCROLL_BOTH 0x00000003 |
Both axis differential scrolling mask
Definition at line 65 of file orxFrame.h.
◆ orxFRAME_KU32_MASK_USER_ALL
#define orxFRAME_KU32_MASK_USER_ALL 0x0007FFFF |
◆ orxFRAME
Internal Frame structure
Definition at line 106 of file orxFrame.h.
◆ orxFRAME_SPACE
Frame space enum
Enumerator |
---|
orxFRAME_SPACE_GLOBAL | |
orxFRAME_SPACE_LOCAL | |
orxFRAME_SPACE_NUMBER | |
orxFRAME_SPACE_NONE | |
Definition at line 92 of file orxFrame.h.
◆ orxFrame_Create()
Creates a frame
- Parameters
-
[in] | _u32Flags | Flags for created animation |
- Returns
- Created orxFRAME / orxNULL
◆ orxFrame_Delete()
Deletes a frame
- Parameters
-
[in] | _pstFrame | Frame to delete |
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxFrame_Exit()
Exits from the frame module
◆ orxFrame_GetChild()
Gets frame first child
- Parameters
-
[in] | _pstFrame | Concerned frame |
- Returns
- orxFRAME / orxNULL
◆ orxFrame_GetIgnoreFlagNames()
orxDLLAPI const orxSTRING orxFASTCALL orxFrame_GetIgnoreFlagNames |
( |
orxU32 | _u32Flags | ) |
|
|
extern |
Get ignore flag names (beware: result won't persist from one call to the other)
- Parameters
-
[in] | _u32Flags | Literal ignore flags |
- Returns
- Ignore flags names
◆ orxFrame_GetIgnoreFlagValues()
orxDLLAPI orxU32 orxFASTCALL orxFrame_GetIgnoreFlagValues |
( |
const orxSTRING | _zFlags | ) |
|
|
extern |
Get ignore flag values
- Parameters
-
[in] | _zFlags | Literal ignore flags |
- Returns
- Ignore flags
◆ orxFrame_GetParent()
Get frame parent
- Parameters
-
[in] | _pstFrame | Concerned frame |
- Returns
- orxFRAME / orxNULL
◆ orxFrame_GetPosition()
Gets frame position
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
[out] | _pvPos | Position of the given frame |
- Returns
- orxVECTOR / orxNULL
◆ orxFrame_GetRotation()
Gets frame rotation
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
- Returns
- Rotation of the given frame (radians)
◆ orxFrame_GetScale()
Gets frame scale
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
[out] | _pvScale | Scale |
- Returns
- orxVECTOR / orxNULL
◆ orxFrame_GetSibling()
Gets frame next sibling
- Parameters
-
[in] | _pstFrame | Concerned frame |
- Returns
- orxFRAME / orxNULL
◆ orxFrame_Init()
Inits the frame module
- Returns
- orxSTATUS_SUCCESS / orxSTATUS_FAILURE
◆ orxFrame_IsRootChild()
Is a root child?
- Parameters
-
[in] | _pstFrame | Concerned frame |
- Returns
- orxTRUE if its parent is root, orxFALSE otherwise
◆ orxFrame_SetParent()
Sets frame parent
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _pstParent | Parent frame to set |
◆ orxFrame_SetPosition()
Sets frame position
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
[in] | _pvPos | Position to set |
◆ orxFrame_SetRotation()
Sets frame rotation
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
[in] | _fRotation | Rotation angle to set (radians) |
◆ orxFrame_SetScale()
Sets frame scale
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Coordinate space system to use |
[in] | _pvScale | Scale to set |
◆ orxFrame_Setup()
orxDLLAPI void orxFASTCALL orxFrame_Setup |
( |
| ) |
|
|
extern |
◆ orxFrame_TransformPosition()
Transforms a position given its input space (local -> global or global -> local)
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Input coordinate space system to use |
[out] | _pvPos | Concerned position |
- Returns
- orxVECTOR / orxNULL
◆ orxFrame_TransformRotation()
Transforms a rotation given its input space (local -> global or global -> local)
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Input coordinate space system to use |
[out] | _fRotation | Concerned rotation |
- Returns
- Transformed rotation (radians)
◆ orxFrame_TransformScale()
Transforms a scale given its input space (local -> global or global -> local)
- Parameters
-
[in] | _pstFrame | Concerned frame |
[in] | _eSpace | Input coordinate space system to use |
[out] | _pvScale | Concerned scale |
- Returns
- orxVECTOR / orxNULL