orx
1.14
Portable Game Engine
|
Macros | |
#define | orxCAMERA_KU32_FLAG_2D 0x00000001 |
#define | orxCAMERA_KU32_FLAG_NONE 0x00000000 |
#define | orxCAMERA_KU32_GROUP_ID_NUMBER 32 |
#define | orxCAMERA_KU32_MASK_USER_ALL 0x000000FF |
Typedefs | |
typedef struct __orxCAMERA_t | orxCAMERA |
Functions | |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_AddGroupID (orxCAMERA *_pstCamera, orxSTRINGID _stGroupID, orxBOOL _bAddFirst) |
orxDLLAPI orxCAMERA *orxFASTCALL | orxCamera_Create (orxU32 _u32Flags) |
orxDLLAPI orxCAMERA *orxFASTCALL | orxCamera_CreateFromConfig (const orxSTRING _zConfigID) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_Delete (orxCAMERA *_pstCamera) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_EnableGroupIDSorting (orxCAMERA *_pstCamera, orxU32 _u32Index, orxBOOL _bEnable) |
orxDLLAPI void orxFASTCALL | orxCamera_Exit () |
orxDLLAPI orxCAMERA *orxFASTCALL | orxCamera_Get (const orxSTRING _zName) |
orxDLLAPI orxFRAME *orxFASTCALL | orxCamera_GetFrame (const orxCAMERA *_pstCamera) |
orxDLLAPI orxAABOX *orxFASTCALL | orxCamera_GetFrustum (const orxCAMERA *_pstCamera, orxAABOX *_pstFrustum) |
orxDLLAPI orxSTRINGID orxFASTCALL | orxCamera_GetGroupID (const orxCAMERA *_pstCamera, orxU32 _u32Index) |
orxDLLAPI orxU32 orxFASTCALL | orxCamera_GetGroupIDCount (const orxCAMERA *_pstCamera) |
orxDLLAPI const orxSTRING orxFASTCALL | orxCamera_GetName (const orxCAMERA *_pstCamera) |
orxDLLAPI orxSTRUCTURE *orxFASTCALL | orxCamera_GetParent (const orxCAMERA *_pstCamera) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxCamera_GetPosition (const orxCAMERA *_pstCamera, orxVECTOR *_pvPosition) |
orxDLLAPI orxFLOAT orxFASTCALL | orxCamera_GetRotation (const orxCAMERA *_pstCamera) |
orxDLLAPI orxFLOAT orxFASTCALL | orxCamera_GetZoom (const orxCAMERA *_pstCamera) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_Init () |
orxDLLAPI orxBOOL orxFASTCALL | orxCamera_IsGroupIDSortingEnabled (const orxCAMERA *_pstCamera, orxU32 _u32Index) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_RemoveGroupID (orxCAMERA *_pstCamera, orxSTRINGID _stGroupID) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_SetFrustum (orxCAMERA *_pstCamera, orxFLOAT _fWidth, orxFLOAT _fHeight, orxFLOAT _fNear, orxFLOAT _fFar) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_SetParent (orxCAMERA *_pstCamera, void *_pParent) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_SetPosition (orxCAMERA *_pstCamera, const orxVECTOR *_pvPosition) |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_SetRotation (orxCAMERA *_pstCamera, orxFLOAT _fRotation) |
orxDLLAPI void orxFASTCALL | orxCamera_Setup () |
orxDLLAPI orxSTATUS orxFASTCALL | orxCamera_SetZoom (orxCAMERA *_pstCamera, orxFLOAT _fZoom) |
Camera Module Allows to creates and handle cameras Camera are structures used to render graphic (2D/3D) objects They thus can be referenced by other structures
#define orxCAMERA_KU32_FLAG_2D 0x00000001 |
2D flag
Definition at line 60 of file orxCamera.h.
#define orxCAMERA_KU32_FLAG_NONE 0x00000000 |
Anim flagsNo flags
Definition at line 58 of file orxCamera.h.
#define orxCAMERA_KU32_GROUP_ID_NUMBER 32 |
Misc
Definition at line 67 of file orxCamera.h.
#define orxCAMERA_KU32_MASK_USER_ALL 0x000000FF |
User all mask
Definition at line 62 of file orxCamera.h.
typedef struct __orxCAMERA_t orxCAMERA |
Internal camera structure
Definition at line 72 of file orxCamera.h.
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_AddGroupID | ( | orxCAMERA * | _pstCamera, |
orxSTRINGID | _stGroupID, | ||
orxBOOL | _bAddFirst | ||
) |
Adds a group ID to a camera
[in] | _pstCamera | Concerned camera |
[in] | _stGroupID | ID of the group to add |
[in] | _bAddFirst | If true this group will be used before any already added ones, otherwise it'll be used after all of them |
Creates a camera
[in] | _u32Flags | Camera flags (2D / ...) |
Creates a camera from config
[in] | _zConfigID | Config ID @ return orxCAMERA / orxNULL |
Deletes a camera
[in] | _pstCamera | Camera to delete |
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_EnableGroupIDSorting | ( | orxCAMERA * | _pstCamera, |
orxU32 | _u32Index, | ||
orxBOOL | _bEnable | ||
) |
Enables/disables sorting for a group ID.
[in] | _pstCamera | Concerned camera |
[in] | _u32Index | Index of group ID to update |
[in] | _bEnable | Enable / disable sorting |
Gets camera given its name
[in] | _zName | Camera name |
Gets camera frame
[in] | _pstCamera | Concerned camera |
orxDLLAPI orxAABOX* orxFASTCALL orxCamera_GetFrustum | ( | const orxCAMERA * | _pstCamera, |
orxAABOX * | _pstFrustum | ||
) |
Gets camera frustum (3D box for 2D camera)
[in] | _pstCamera | Concerned camera |
[out] | _pstFrustum | Frustum box |
orxDLLAPI orxSTRINGID orxFASTCALL orxCamera_GetGroupID | ( | const orxCAMERA * | _pstCamera, |
orxU32 | _u32Index | ||
) |
Gets the group ID of a camera at the given index
[in] | _pstCamera | Concerned camera |
[in] | _u32Index | Index of group ID |
Gets number of group IDs of camera
[in] | _pstCamera | Concerned camera |
Gets camera config name
[in] | _pstCamera | Concerned camera |
orxDLLAPI orxSTRUCTURE* orxFASTCALL orxCamera_GetParent | ( | const orxCAMERA * | _pstCamera | ) |
Gets camera parent
[in] | _pstCamera | Concerned camera |
orxDLLAPI orxVECTOR* orxFASTCALL orxCamera_GetPosition | ( | const orxCAMERA * | _pstCamera, |
orxVECTOR * | _pvPosition | ||
) |
Get camera position
[in] | _pstCamera | Concerned camera |
[out] | _pvPosition | Camera position |
Get camera rotation
[in] | _pstCamera | Concerned camera |
Get camera zoom
[in] | _pstCamera | Concerned camera |
orxDLLAPI orxBOOL orxFASTCALL orxCamera_IsGroupIDSortingEnabled | ( | const orxCAMERA * | _pstCamera, |
orxU32 | _u32Index | ||
) |
Is sorting enabled for a group ID?
[in] | _pstCamera | Concerned camera |
[in] | _u32Index | Index of group ID to update |
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_RemoveGroupID | ( | orxCAMERA * | _pstCamera, |
orxSTRINGID | _stGroupID | ||
) |
Removes a group ID from a camera
[in] | _pstCamera | Concerned camera |
[in] | _stGroupID | ID of the group to remove |
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_SetFrustum | ( | orxCAMERA * | _pstCamera, |
orxFLOAT | _fWidth, | ||
orxFLOAT | _fHeight, | ||
orxFLOAT | _fNear, | ||
orxFLOAT | _fFar | ||
) |
Sets camera frustum
[in] | _pstCamera | Concerned camera |
[in] | _fWidth | Width of frustum |
[in] | _fHeight | Height of frustum |
[in] | _fNear | Near distance of frustum |
[in] | _fFar | Far distance of frustum |
Sets camera parent
[in] | _pstCamera | Concerned camera |
[in] | _pParent | Parent structure to set (object, spawner, camera or frame) / orxNULL |
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_SetPosition | ( | orxCAMERA * | _pstCamera, |
const orxVECTOR * | _pvPosition | ||
) |
Sets camera position
[in] | _pstCamera | Concerned camera |
[in] | _pvPosition | Camera position |
orxDLLAPI orxSTATUS orxFASTCALL orxCamera_SetRotation | ( | orxCAMERA * | _pstCamera, |
orxFLOAT | _fRotation | ||
) |
Sets camera rotation
[in] | _pstCamera | Concerned camera |
[in] | _fRotation | Camera rotation (radians) |