orx
1.14
Portable Game Engine
|
Macros | |
#define | orxVIEWPORT_KU32_FLAG_ALIGN_BOTTOM 0x80000000 |
#define | orxVIEWPORT_KU32_FLAG_ALIGN_CENTER 0x00000000 |
#define | orxVIEWPORT_KU32_FLAG_ALIGN_LEFT 0x10000000 |
#define | orxVIEWPORT_KU32_FLAG_ALIGN_RIGHT 0x20000000 |
#define | orxVIEWPORT_KU32_FLAG_ALIGN_TOP 0x40000000 |
#define | orxVIEWPORT_KU32_FLAG_NO_DEBUG 0x01000000 |
#define | orxVIEWPORT_KU32_MAX_TEXTURE_NUMBER 8 |
Typedefs | |
typedef struct __orxVIEWPORT_t | orxVIEWPORT |
Enumerations | |
enum | orxVIEWPORT_EVENT { orxVIEWPORT_EVENT_RESIZE = 0, orxVIEWPORT_EVENT_NUMBER, orxVIEWPORT_EVENT_NONE = orxENUM_NONE } |
Viewport module Allows to creates and handle viewports. Viewports are structures associated to cameras and used for rendering.
#define orxVIEWPORT_KU32_FLAG_ALIGN_BOTTOM 0x80000000 |
Bottom vertical alignment
Definition at line 61 of file orxViewport.h.
#define orxVIEWPORT_KU32_FLAG_ALIGN_CENTER 0x00000000 |
Viewport flagsCenter vertical / horizontal alignment
Definition at line 57 of file orxViewport.h.
#define orxVIEWPORT_KU32_FLAG_ALIGN_LEFT 0x10000000 |
Left horizontal alignment
Definition at line 58 of file orxViewport.h.
#define orxVIEWPORT_KU32_FLAG_ALIGN_RIGHT 0x20000000 |
Right horizontal alignment
Definition at line 59 of file orxViewport.h.
#define orxVIEWPORT_KU32_FLAG_ALIGN_TOP 0x40000000 |
Top vertical alignment
Definition at line 60 of file orxViewport.h.
#define orxVIEWPORT_KU32_FLAG_NO_DEBUG 0x01000000 |
No debug flag
Definition at line 62 of file orxViewport.h.
#define orxVIEWPORT_KU32_MAX_TEXTURE_NUMBER 8 |
Misc defined
Definition at line 67 of file orxViewport.h.
typedef struct __orxVIEWPORT_t orxVIEWPORT |
Internal Viewport structure
Definition at line 71 of file orxViewport.h.
enum orxVIEWPORT_EVENT |
Event enum
Enumerator | |
---|---|
orxVIEWPORT_EVENT_RESIZE |
Event sent when a viewport has been resized |
orxVIEWPORT_EVENT_NUMBER | |
orxVIEWPORT_EVENT_NONE |
Definition at line 76 of file orxViewport.h.
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_AddShader | ( | orxVIEWPORT * | _pstViewport, |
const orxSTRING | _zShaderConfigID | ||
) |
Adds a shader to a viewport using its config ID
[in] | _pstViewport | Concerned viewport |
[in] | _zShaderConfigID | Config ID of the shader to add |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_ClearBackgroundColor | ( | orxVIEWPORT * | _pstViewport | ) |
Clears viewport background color
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxVIEWPORT* orxFASTCALL orxViewport_Create | ( | ) |
Creates a viewport
orxDLLAPI orxVIEWPORT* orxFASTCALL orxViewport_CreateFromConfig | ( | const orxSTRING | _zConfigID | ) |
Creates a viewport from config
[in] | _zConfigID | Config ID @ return orxVIEWPORT / orxNULL |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_Delete | ( | orxVIEWPORT * | _pstViewport | ) |
Deletes a viewport
[in] | _pstViewport | Viewport to delete |
orxDLLAPI void orxFASTCALL orxViewport_Enable | ( | orxVIEWPORT * | _pstViewport, |
orxBOOL | _bEnable | ||
) |
Enables / disables a viewport
[in] | _pstViewport | Concerned viewport |
[in] | _bEnable | Enable / disable |
orxDLLAPI void orxFASTCALL orxViewport_EnableShader | ( | orxVIEWPORT * | _pstViewport, |
orxBOOL | _bEnable | ||
) |
Enables a viewport's shader
[in] | _pstViewport | Concerned viewport |
[in] | _bEnable | Enable / disable |
orxDLLAPI orxVIEWPORT* orxFASTCALL orxViewport_Get | ( | const orxSTRING | _zName | ) |
Gets viewport given its name
[in] | _zName | Camera name |
orxDLLAPI orxCOLOR* orxFASTCALL orxViewport_GetBackgroundColor | ( | const orxVIEWPORT * | _pstViewport, |
orxCOLOR * | _pstColor | ||
) |
Gets a viewport background color
[in] | _pstViewport | Concerned viewport |
[out] | _pstColor | Viewport's color |
orxDLLAPI orxDISPLAY_BLEND_MODE orxFASTCALL orxViewport_GetBlendMode | ( | const orxVIEWPORT * | _pstViewport | ) |
Gets a viewport blend mode
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxAABOX* orxFASTCALL orxViewport_GetBox | ( | const orxVIEWPORT * | _pstViewport, |
orxAABOX * | _pstBox | ||
) |
Gets an axis aligned box of viewport
[in] | _pstViewport | Concerned viewport |
[out] | _pstBox | Output box |
orxDLLAPI orxCAMERA* orxFASTCALL orxViewport_GetCamera | ( | const orxVIEWPORT * | _pstViewport | ) |
Gets a viewport camera
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxFLOAT orxFASTCALL orxViewport_GetCorrectionRatio | ( | const orxVIEWPORT * | _pstViewport | ) |
Get viewport correction ratio
[in] | _pstViewport | Concerned viewport |
orxDLLAPI const orxSTRING orxFASTCALL orxViewport_GetName | ( | const orxVIEWPORT * | _pstViewport | ) |
Gets viewport config name
[in] | _pstViewport | Concerned viewport |
orxDLLAPI void orxFASTCALL orxViewport_GetPosition | ( | const orxVIEWPORT * | _pstViewport, |
orxFLOAT * | _pfX, | ||
orxFLOAT * | _pfY | ||
) |
Gets a viewport position
[in] | _pstViewport | Concerned viewport |
[out] | _pfX | X axis position (top left corner) |
[out] | _pfY | Y axis position (top left corner) |
orxDLLAPI void orxFASTCALL orxViewport_GetRelativeSize | ( | const orxVIEWPORT * | _pstViewport, |
orxFLOAT * | _pfWidth, | ||
orxFLOAT * | _pfHeight | ||
) |
Gets a viewport relative size
[in] | _pstViewport | Concerned viewport |
[out] | _pfWidth | Relative width |
[out] | _pfHeight | Relative height |
orxDLLAPI const orxSHADERPOINTER* orxFASTCALL orxViewport_GetShaderPointer | ( | const orxVIEWPORT * | _pstViewport | ) |
Gets a viewport's shader pointer
[in] | _pstViewport | Concerned viewport |
orxDLLAPI void orxFASTCALL orxViewport_GetSize | ( | const orxVIEWPORT * | _pstViewport, |
orxFLOAT * | _pfWidth, | ||
orxFLOAT * | _pfHeight | ||
) |
Gets a viewport size
[in] | _pstViewport | Concerned viewport |
[out] | _pfWidth | Width |
[out] | _pfHeight | Height |
orxDLLAPI orxU32 orxFASTCALL orxViewport_GetTextureCount | ( | const orxVIEWPORT * | _pstViewport | ) |
Gets a viewport texture count
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_GetTextureList | ( | const orxVIEWPORT * | _pstViewport, |
orxU32 | _u32TextureNumber, | ||
orxTEXTURE ** | _apstTextureList | ||
) |
Gets a viewport texture list
[in] | _pstViewport | Concerned viewport |
[in] | _u32TextureNumber | Number of textures to be retrieved |
[out] | _apstTextureList | List of textures associated with the viewport |
orxDLLAPI orxBOOL orxFASTCALL orxViewport_HasBackgroundColor | ( | const orxVIEWPORT * | _pstViewport | ) |
Viewport has background color accessor
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxBOOL orxFASTCALL orxViewport_IsEnabled | ( | const orxVIEWPORT * | _pstViewport | ) |
Is a viewport enabled?
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxBOOL orxFASTCALL orxViewport_IsShaderEnabled | ( | const orxVIEWPORT * | _pstViewport | ) |
Is a viewport's shader enabled?
[in] | _pstViewport | Concerned viewport |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_RemoveShader | ( | orxVIEWPORT * | _pstViewport, |
const orxSTRING | _zShaderConfigID | ||
) |
Removes a shader using its config ID
[in] | _pstViewport | Concerned viewport |
[in] | _zShaderConfigID | Config ID of the shader to remove |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_SetBackgroundColor | ( | orxVIEWPORT * | _pstViewport, |
const orxCOLOR * | _pstColor | ||
) |
Sets a viewport background color
[in] | _pstViewport | Concerned viewport |
[in] | _pstColor | Color to use for background |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_SetBlendMode | ( | orxVIEWPORT * | _pstViewport, |
orxDISPLAY_BLEND_MODE | _eBlendMode | ||
) |
Sets a viewport blend mode (only used when has active shaders attached)
[in] | _pstViewport | Concerned viewport |
[in] | _eBlendMode | Blend mode to set |
orxDLLAPI void orxFASTCALL orxViewport_SetCamera | ( | orxVIEWPORT * | _pstViewport, |
orxCAMERA * | _pstCamera | ||
) |
Sets a viewport camera
[in] | _pstViewport | Concerned viewport |
[in] | _pstCamera | Associated camera |
orxDLLAPI void orxFASTCALL orxViewport_SetPosition | ( | orxVIEWPORT * | _pstViewport, |
orxFLOAT | _fX, | ||
orxFLOAT | _fY | ||
) |
Sets a viewport position
[in] | _pstViewport | Concerned viewport |
[in] | _fX | X axis position (top left corner) |
[in] | _fY | Y axis position (top left corner) |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_SetRelativePosition | ( | orxVIEWPORT * | _pstViewport, |
orxU32 | _u32AlignFlags | ||
) |
Sets a viewport relative position
[in] | _pstViewport | Concerned viewport |
[in] | _u32AlignFlags | Alignment flags |
orxDLLAPI orxSTATUS orxFASTCALL orxViewport_SetRelativeSize | ( | orxVIEWPORT * | _pstViewport, |
orxFLOAT | _fWidth, | ||
orxFLOAT | _fHeight | ||
) |
Sets a viewport relative size
[in] | _pstViewport | Concerned viewport |
[in] | _fWidth | Relative width (0.0f - 1.0f) |
[in] | _fHeight | Relative height (0.0f - 1.0f) |
orxDLLAPI void orxFASTCALL orxViewport_SetSize | ( | orxVIEWPORT * | _pstViewport, |
orxFLOAT | _fWidth, | ||
orxFLOAT | _fHeight | ||
) |
Sets a viewport size
[in] | _pstViewport | Concerned viewport |
[in] | _fWidth | Width |
[in] | _fHeight | Height |
orxDLLAPI void orxFASTCALL orxViewport_SetTextureList | ( | orxVIEWPORT * | _pstViewport, |
orxU32 | _u32TextureNumber, | ||
orxTEXTURE ** | _apstTextureList | ||
) |
Sets a viewport texture list
[in] | _pstViewport | Concerned viewport |
[in] | _u32TextureNumber | Number of textures to associate with the viewport |
[in] | _apstTextureList | List of textures to associate with the viewport |