orx 1.16
Portable Game Engine
|
Typedefs | |
typedef struct __orxGRAPHIC_t | orxGRAPHIC |
Graphic Module. Allows to creates and handle 2D/3D Graphics. They are used as texture/animation container, with associated properties. 2D Graphics are used by objects. They thus can be referenced by objects as structures.
#define orxGRAPHIC_KU32_FLAG_ALIGN_BOTTOM 0x00000080 |
Bottom vertical alignment
Definition at line 76 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_ALIGN_CENTER 0x00000000 |
Center vertical / horizontal alignment
Definition at line 72 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_ALIGN_LEFT 0x00000010 |
Left horizontal alignment
Definition at line 73 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_ALIGN_RIGHT 0x00000020 |
Right horizontal alignment
Definition at line 74 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_ALIGN_TOP 0x00000040 |
Top vertical alignment
Definition at line 75 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_ALIGN_TRUNCATE 0x00000100 |
Truncate alignment value
Definition at line 77 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_FLIP_X 0x00000004 |
X axis flipping flag
Definition at line 68 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_FLIP_Y 0x00000008 |
Y axis flipping flag
Definition at line 69 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_NONE 0x00000000 |
Graphic flags No flags
Definition at line 59 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_QUAD 0x00000001 |
Quad type graphic flag
Definition at line 61 of file orxGraphic.h.
#define orxGRAPHIC_KU32_FLAG_TEXT 0x00000002 |
Text type graphic flag
Definition at line 62 of file orxGraphic.h.
#define orxGRAPHIC_KU32_MASK_2D 0x00000003 |
2D type graphic mask
Definition at line 64 of file orxGraphic.h.
#define orxGRAPHIC_KU32_MASK_ALIGN 0x000003F0 |
Alignment mask
Definition at line 79 of file orxGraphic.h.
#define orxGRAPHIC_KU32_MASK_FLIP_BOTH 0x0000000C |
Both axis flipping mask
Definition at line 70 of file orxGraphic.h.
#define orxGRAPHIC_KU32_MASK_TYPE 0x00000003 |
Type mask
Definition at line 66 of file orxGraphic.h.
#define orxGRAPHIC_KU32_MASK_USER_ALL 0x00000FFF |
User all ID mask
Definition at line 81 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_ALPHA "Alpha" |
Definition at line 92 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_BLEND_MODE "BlendMode" |
Definition at line 99 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_COLOR "Color" |
Definition at line 91 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_FLIP "Flip" |
Definition at line 96 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_HSL "HSL" |
Definition at line 94 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_HSV "HSV" |
Definition at line 95 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_KEEP_IN_CACHE "KeepInCache" |
Definition at line 101 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_PIVOT "Pivot" |
Definition at line 90 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_REPEAT "Repeat" |
Definition at line 97 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_RGB "RGB" |
Definition at line 93 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_SMOOTHING "Smoothing" |
Definition at line 98 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_STASIS "Stasis" |
Definition at line 100 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_TEXT_NAME "Text" |
Definition at line 89 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_NAME "Texture" |
Misc defines
Definition at line 86 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_ORIGIN "TextureOrigin" |
Definition at line 87 of file orxGraphic.h.
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_SIZE "TextureSize" |
Definition at line 88 of file orxGraphic.h.
typedef struct __orxGRAPHIC_t orxGRAPHIC |
Internal Graphic structure
Definition at line 106 of file orxGraphic.h.
|
extern |
Aligns a vector inside a box using flags
[in] | _u32AlignFlags | Align flags |
[in] | _pstBox | Concerned box |
[out] | _pvValue | Storage for the resulting aligned vector |
|
extern |
Clears graphic blend mode
[in] | _pstGraphic | Concerned graphic |
|
extern |
Clears graphic color
[in] | _pstGraphic | Concerned graphic |
|
extern |
Clears graphic flipping
[in] | _pstGraphic | Concerned graphic |
|
extern |
Clones a graphic
[in] | _pstGraphic | Graphic model to clone @ return orxGRAPHIC / orxNULL |
|
extern |
Creates an empty graphic
|
extern |
Creates a graphic from config
[in] | _zConfigID | Config ID @ return orxGRAPHIC / orxNULL |
|
extern |
Deletes a graphic
[in] | _pstGraphic | Graphic to delete |
|
extern |
Exits from the Graphic module
|
extern |
Gets alignment flags from literals
[in] | _zAlign | Align literals @ return Align flags |
|
extern |
Gets graphic blend mode
[in] | _pstGraphic | Concerned graphic |
|
extern |
Gets graphic color
[in] | _pstGraphic | Concerned graphic |
[out] | _pstColor | Object's color |
|
extern |
Gets graphic data
[in] | _pstGraphic | Concerned graphic |
|
extern |
Gets graphic flipping
[in] | _pstGraphic | Concerned graphic |
[in] | _pbFlipX | X axis flipping |
[in] | _pbFlipY | Y axis flipping |
|
extern |
Gets graphic config name
[in] | _pstGraphic | Concerned graphic |
|
extern |
Gets graphic orientation
[in] | _pstGraphic | Concerned graphic |
|
extern |
Gets graphic origin
[in] | _pstGraphic | Concerned graphic |
[out] | _pvOrigin | Origin coordinates |
|
extern |
Gets graphic pivot
[in] | _pstGraphic | Concerned graphic |
[out] | _pvPivot | Graphic pivot |
|
extern |
Gets graphic repeat (wrap) values
[in] | _pstGraphic | Concerned graphic |
[out] | _pfRepeatX | X-axis repeat value |
[out] | _pfRepeatY | Y-axis repeat value |
|
extern |
Gets graphic size
[in] | _pstGraphic | Concerned graphic |
[out] | _pvSize | Object's size |
|
extern |
Gets graphic smoothing
[in] | _pstGraphic | Concerned graphic |
|
extern |
Graphic has blend mode accessor
[in] | _pstGraphic | Concerned graphic |
|
extern |
Graphic has color accessor
[in] | _pstGraphic | Concerned graphic |
|
extern |
Graphic has flip accessor
[in] | _pstGraphic | Concerned graphic |
|
extern |
Sets object blend mode
[in] | _pstGraphic | Concerned graphic |
[in] | _eBlendMode | Blend mode (alpha, multiply, add or none) |
|
extern |
Sets graphic color
[in] | _pstGraphic | Concerned graphic |
[in] | _pstColor | Color to set |
|
extern |
Sets graphic data
[in] | _pstGraphic | Concerned graphic |
[in] | _pstData | Data structure to set / orxNULL |
|
extern |
Sets graphic flipping
[in] | _pstGraphic | Concerned graphic |
[in] | _bFlipX | Flip it on X axis |
[in] | _bFlipY | Flip it on Y axis |
|
extern |
Sets graphic origin
[in] | _pstGraphic | Concerned graphic |
[in] | _pvOrigin | Origin coordinates |
|
extern |
Sets graphic pivot
[in] | _pstGraphic | Concerned graphic |
[in] | _pvPivot | Pivot to set |
|
extern |
Sets graphic relative pivot
[in] | _pstGraphic | Concerned graphic |
[in] | _u32AlignFlags | Alignment flags |
|
extern |
Sets graphic repeat (wrap) value
[in] | _pstGraphic | Concerned graphic |
[in] | _fRepeatX | X-axis repeat value |
[in] | _fRepeatY | Y-axis repeat value |
|
extern |
Sets graphic size
[in] | _pstGraphic | Concerned graphic |
[in] | _pvSize | Size to set |
|
extern |
Sets graphic smoothing
[in] | _pstGraphic | Concerned graphic |
[in] | _eSmoothing | Smoothing type (enabled, default or none) |
|
extern |
Graphic module setup
|
extern |
Updates graphic size (recompute)
[in] | _pstGraphic | Concerned graphic |