orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
OrxGraphic

Macros

#define orxGRAPHIC_KU32_FLAG_ALIGN_BOTTOM   0x00000080
#define orxGRAPHIC_KU32_FLAG_ALIGN_CENTER   0x00000000
#define orxGRAPHIC_KU32_FLAG_ALIGN_LEFT   0x00000010
#define orxGRAPHIC_KU32_FLAG_ALIGN_RIGHT   0x00000020
#define orxGRAPHIC_KU32_FLAG_ALIGN_TOP   0x00000040
#define orxGRAPHIC_KU32_FLAG_ALIGN_TRUNCATE   0x00000100
#define orxGRAPHIC_KU32_FLAG_FLIP_X   0x00000004
#define orxGRAPHIC_KU32_FLAG_FLIP_Y   0x00000008
#define orxGRAPHIC_KU32_FLAG_NONE   0x00000000
#define orxGRAPHIC_KU32_FLAG_QUAD   0x00000001
#define orxGRAPHIC_KU32_FLAG_TEXT   0x00000002
#define orxGRAPHIC_KU32_MASK_2D   0x00000003
#define orxGRAPHIC_KU32_MASK_ALIGN   0x000003F0
#define orxGRAPHIC_KU32_MASK_FLIP_BOTH   0x0000000C
#define orxGRAPHIC_KU32_MASK_TYPE   0x00000003
#define orxGRAPHIC_KU32_MASK_USER_ALL   0x00000FFF
#define orxGRAPHIC_KZ_CONFIG_ALPHA   "Alpha"
#define orxGRAPHIC_KZ_CONFIG_BLEND_MODE   "BlendMode"
#define orxGRAPHIC_KZ_CONFIG_COLOR   "Color"
#define orxGRAPHIC_KZ_CONFIG_FLIP   "Flip"
#define orxGRAPHIC_KZ_CONFIG_HSL   "HSL"
#define orxGRAPHIC_KZ_CONFIG_HSV   "HSV"
#define orxGRAPHIC_KZ_CONFIG_KEEP_IN_CACHE   "KeepInCache"
#define orxGRAPHIC_KZ_CONFIG_PIVOT   "Pivot"
#define orxGRAPHIC_KZ_CONFIG_REPEAT   "Repeat"
#define orxGRAPHIC_KZ_CONFIG_RGB   "RGB"
#define orxGRAPHIC_KZ_CONFIG_SMOOTHING   "Smoothing"
#define orxGRAPHIC_KZ_CONFIG_STASIS   "Stasis"
#define orxGRAPHIC_KZ_CONFIG_TEXT_NAME   "Text"
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_NAME   "Texture"
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_ORIGIN   "TextureOrigin"
#define orxGRAPHIC_KZ_CONFIG_TEXTURE_SIZE   "TextureSize"

Typedefs

typedef struct __orxGRAPHIC_t orxGRAPHIC

Functions

orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_AlignVector (orxU32 _u32AlignFlags, const orxAABOX *_pstBox, orxVECTOR *_pvValue)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearBlendMode (orxGRAPHIC *_pstGraphic)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearColor (orxGRAPHIC *_pstGraphic)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearFlip (orxGRAPHIC *_pstGraphic)
orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_Clone (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_Create ()
orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_CreateFromConfig (const orxSTRING _zConfigID)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_Delete (orxGRAPHIC *_pstGraphic)
orxDLLAPI void orxFASTCALL orxGraphic_Exit ()
orxDLLAPI orxU32 orxFASTCALL orxGraphic_GetAlignFlags (const orxSTRING _zAlign)
orxDLLAPI orxDISPLAY_BLEND_MODE orxFASTCALL orxGraphic_GetBlendMode (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxCOLOR *orxFASTCALL orxGraphic_GetColor (const orxGRAPHIC *_pstGraphic, orxCOLOR *_pstColor)
orxDLLAPI orxSTRUCTURE *orxFASTCALL orxGraphic_GetData (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_GetFlip (const orxGRAPHIC *_pstGraphic, orxBOOL *_pbFlipX, orxBOOL *_pbFlipY)
orxDLLAPI const orxSTRING orxFASTCALL orxGraphic_GetName (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxDISPLAY_ORIENTATION orxFASTCALL orxGraphic_GetOrientation (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetOrigin (const orxGRAPHIC *_pstGraphic, orxVECTOR *_pvOrigin)
orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetPivot (const orxGRAPHIC *_pstGraphic, orxVECTOR *_pvPivot)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_GetRepeat (const orxGRAPHIC *_pstGraphic, orxFLOAT *_pfRepeatX, orxFLOAT *_pfRepeatY)
orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetSize (const orxGRAPHIC *_pstGraphic, orxVECTOR *_pvSize)
orxDLLAPI orxDISPLAY_SMOOTHING orxFASTCALL orxGraphic_GetSmoothing (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasBlendMode (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasColor (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasFlip (const orxGRAPHIC *_pstGraphic)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_Init ()
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetBlendMode (orxGRAPHIC *_pstGraphic, orxDISPLAY_BLEND_MODE _eBlendMode)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetColor (orxGRAPHIC *_pstGraphic, const orxCOLOR *_pstColor)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetData (orxGRAPHIC *_pstGraphic, orxSTRUCTURE *_pstData)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetFlip (orxGRAPHIC *_pstGraphic, orxBOOL _bFlipX, orxBOOL _bFlipY)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetOrigin (orxGRAPHIC *_pstGraphic, const orxVECTOR *_pvOrigin)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetPivot (orxGRAPHIC *_pstGraphic, const orxVECTOR *_pvPivot)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetRelativePivot (orxGRAPHIC *_pstGraphic, orxU32 _u32AlignFlags)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetRepeat (orxGRAPHIC *_pstGraphic, orxFLOAT _fRepeatX, orxFLOAT _fRepeatY)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetSize (orxGRAPHIC *_pstGraphic, const orxVECTOR *_pvSize)
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetSmoothing (orxGRAPHIC *_pstGraphic, orxDISPLAY_SMOOTHING _eSmoothing)
orxDLLAPI void orxFASTCALL orxGraphic_Setup ()
orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_UpdateSize (orxGRAPHIC *_pstGraphic)

Detailed Description

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.

Macro Definition Documentation

◆ orxGRAPHIC_KU32_FLAG_ALIGN_BOTTOM

#define orxGRAPHIC_KU32_FLAG_ALIGN_BOTTOM   0x00000080

Bottom vertical alignment

Definition at line 76 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_ALIGN_CENTER

#define orxGRAPHIC_KU32_FLAG_ALIGN_CENTER   0x00000000

Center vertical / horizontal alignment

Definition at line 72 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_ALIGN_LEFT

#define orxGRAPHIC_KU32_FLAG_ALIGN_LEFT   0x00000010

Left horizontal alignment

Definition at line 73 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_ALIGN_RIGHT

#define orxGRAPHIC_KU32_FLAG_ALIGN_RIGHT   0x00000020

Right horizontal alignment

Definition at line 74 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_ALIGN_TOP

#define orxGRAPHIC_KU32_FLAG_ALIGN_TOP   0x00000040

Top vertical alignment

Definition at line 75 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_ALIGN_TRUNCATE

#define orxGRAPHIC_KU32_FLAG_ALIGN_TRUNCATE   0x00000100

Truncate alignment value

Definition at line 77 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_FLIP_X

#define orxGRAPHIC_KU32_FLAG_FLIP_X   0x00000004

X axis flipping flag

Definition at line 68 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_FLIP_Y

#define orxGRAPHIC_KU32_FLAG_FLIP_Y   0x00000008

Y axis flipping flag

Definition at line 69 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_NONE

#define orxGRAPHIC_KU32_FLAG_NONE   0x00000000

Graphic flags No flags

Definition at line 59 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_QUAD

#define orxGRAPHIC_KU32_FLAG_QUAD   0x00000001

Quad type graphic flag

Definition at line 61 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_FLAG_TEXT

#define orxGRAPHIC_KU32_FLAG_TEXT   0x00000002

Text type graphic flag

Definition at line 62 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_MASK_2D

#define orxGRAPHIC_KU32_MASK_2D   0x00000003

2D type graphic mask

Definition at line 64 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_MASK_ALIGN

#define orxGRAPHIC_KU32_MASK_ALIGN   0x000003F0

Alignment mask

Definition at line 79 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_MASK_FLIP_BOTH

#define orxGRAPHIC_KU32_MASK_FLIP_BOTH   0x0000000C

Both axis flipping mask

Definition at line 70 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_MASK_TYPE

#define orxGRAPHIC_KU32_MASK_TYPE   0x00000003

Type mask

Definition at line 66 of file orxGraphic.h.

◆ orxGRAPHIC_KU32_MASK_USER_ALL

#define orxGRAPHIC_KU32_MASK_USER_ALL   0x00000FFF

User all ID mask

Definition at line 81 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_ALPHA

#define orxGRAPHIC_KZ_CONFIG_ALPHA   "Alpha"

Definition at line 92 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_BLEND_MODE

#define orxGRAPHIC_KZ_CONFIG_BLEND_MODE   "BlendMode"

Definition at line 99 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_COLOR

#define orxGRAPHIC_KZ_CONFIG_COLOR   "Color"

Definition at line 91 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_FLIP

#define orxGRAPHIC_KZ_CONFIG_FLIP   "Flip"

Definition at line 96 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_HSL

#define orxGRAPHIC_KZ_CONFIG_HSL   "HSL"

Definition at line 94 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_HSV

#define orxGRAPHIC_KZ_CONFIG_HSV   "HSV"

Definition at line 95 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_KEEP_IN_CACHE

#define orxGRAPHIC_KZ_CONFIG_KEEP_IN_CACHE   "KeepInCache"

Definition at line 101 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_PIVOT

#define orxGRAPHIC_KZ_CONFIG_PIVOT   "Pivot"

Definition at line 90 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_REPEAT

#define orxGRAPHIC_KZ_CONFIG_REPEAT   "Repeat"

Definition at line 97 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_RGB

#define orxGRAPHIC_KZ_CONFIG_RGB   "RGB"

Definition at line 93 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_SMOOTHING

#define orxGRAPHIC_KZ_CONFIG_SMOOTHING   "Smoothing"

Definition at line 98 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_STASIS

#define orxGRAPHIC_KZ_CONFIG_STASIS   "Stasis"

Definition at line 100 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_TEXT_NAME

#define orxGRAPHIC_KZ_CONFIG_TEXT_NAME   "Text"

Definition at line 89 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_TEXTURE_NAME

#define orxGRAPHIC_KZ_CONFIG_TEXTURE_NAME   "Texture"

Misc defines

Definition at line 86 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_TEXTURE_ORIGIN

#define orxGRAPHIC_KZ_CONFIG_TEXTURE_ORIGIN   "TextureOrigin"

Definition at line 87 of file orxGraphic.h.

◆ orxGRAPHIC_KZ_CONFIG_TEXTURE_SIZE

#define orxGRAPHIC_KZ_CONFIG_TEXTURE_SIZE   "TextureSize"

Definition at line 88 of file orxGraphic.h.

Typedef Documentation

◆ orxGRAPHIC

typedef struct __orxGRAPHIC_t orxGRAPHIC

Internal Graphic structure

Definition at line 106 of file orxGraphic.h.

Function Documentation

◆ orxGraphic_AlignVector()

orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_AlignVector ( orxU32 _u32AlignFlags,
const orxAABOX * _pstBox,
orxVECTOR * _pvValue )
extern

Aligns a vector inside a box using flags

Parameters
[in]_u32AlignFlagsAlign flags
[in]_pstBoxConcerned box
[out]_pvValueStorage for the resulting aligned vector
Returns
orxVECTOR

◆ orxGraphic_ClearBlendMode()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearBlendMode ( orxGRAPHIC * _pstGraphic)
extern

Clears graphic blend mode

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_ClearColor()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearColor ( orxGRAPHIC * _pstGraphic)
extern

Clears graphic color

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_ClearFlip()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_ClearFlip ( orxGRAPHIC * _pstGraphic)
extern

Clears graphic flipping

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_Clone()

orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_Clone ( const orxGRAPHIC * _pstGraphic)
extern

Clones a graphic

Parameters
[in]_pstGraphicGraphic model to clone @ return orxGRAPHIC / orxNULL

◆ orxGraphic_Create()

orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_Create ( )
extern

Creates an empty graphic

Returns
Created orxGRAPHIC / orxNULL

◆ orxGraphic_CreateFromConfig()

orxDLLAPI orxGRAPHIC *orxFASTCALL orxGraphic_CreateFromConfig ( const orxSTRING _zConfigID)
extern

Creates a graphic from config

Parameters
[in]_zConfigIDConfig ID @ return orxGRAPHIC / orxNULL

◆ orxGraphic_Delete()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_Delete ( orxGRAPHIC * _pstGraphic)
extern

Deletes a graphic

Parameters
[in]_pstGraphicGraphic to delete
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_Exit()

orxDLLAPI void orxFASTCALL orxGraphic_Exit ( )
extern

Exits from the Graphic module

◆ orxGraphic_GetAlignFlags()

orxDLLAPI orxU32 orxFASTCALL orxGraphic_GetAlignFlags ( const orxSTRING _zAlign)
extern

Gets alignment flags from literals

Parameters
[in]_zAlignAlign literals @ return Align flags

◆ orxGraphic_GetBlendMode()

orxDLLAPI orxDISPLAY_BLEND_MODE orxFASTCALL orxGraphic_GetBlendMode ( const orxGRAPHIC * _pstGraphic)
extern

Gets graphic blend mode

Parameters
[in]_pstGraphicConcerned graphic
Returns
Blend mode (alpha, multiply, add or none)

◆ orxGraphic_GetColor()

orxDLLAPI orxCOLOR *orxFASTCALL orxGraphic_GetColor ( const orxGRAPHIC * _pstGraphic,
orxCOLOR * _pstColor )
extern

Gets graphic color

Parameters
[in]_pstGraphicConcerned graphic
[out]_pstColorObject's color
Returns
orxCOLOR / orxNULL

◆ orxGraphic_GetData()

orxDLLAPI orxSTRUCTURE *orxFASTCALL orxGraphic_GetData ( const orxGRAPHIC * _pstGraphic)
extern

Gets graphic data

Parameters
[in]_pstGraphicConcerned graphic
Returns
OrxSTRUCTURE / orxNULL

◆ orxGraphic_GetFlip()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_GetFlip ( const orxGRAPHIC * _pstGraphic,
orxBOOL * _pbFlipX,
orxBOOL * _pbFlipY )
extern

Gets graphic flipping

Parameters
[in]_pstGraphicConcerned graphic
[in]_pbFlipXX axis flipping
[in]_pbFlipYY axis flipping
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_GetName()

orxDLLAPI const orxSTRING orxFASTCALL orxGraphic_GetName ( const orxGRAPHIC * _pstGraphic)
extern

Gets graphic config name

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxSTRING / orxSTRING_EMPTY

◆ orxGraphic_GetOrientation()

orxDLLAPI orxDISPLAY_ORIENTATION orxFASTCALL orxGraphic_GetOrientation ( const orxGRAPHIC * _pstGraphic)
extern

Gets graphic orientation

Parameters
[in]_pstGraphicConcerned graphic
Returns
Orientation (up, lest, down or right)

◆ orxGraphic_GetOrigin()

orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetOrigin ( const orxGRAPHIC * _pstGraphic,
orxVECTOR * _pvOrigin )
extern

Gets graphic origin

Parameters
[in]_pstGraphicConcerned graphic
[out]_pvOriginOrigin coordinates
Returns
Origin coordinates

◆ orxGraphic_GetPivot()

orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetPivot ( const orxGRAPHIC * _pstGraphic,
orxVECTOR * _pvPivot )
extern

Gets graphic pivot

Parameters
[in]_pstGraphicConcerned graphic
[out]_pvPivotGraphic pivot
Returns
orxPIVOT / orxNULL

◆ orxGraphic_GetRepeat()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_GetRepeat ( const orxGRAPHIC * _pstGraphic,
orxFLOAT * _pfRepeatX,
orxFLOAT * _pfRepeatY )
extern

Gets graphic repeat (wrap) values

Parameters
[in]_pstGraphicConcerned graphic
[out]_pfRepeatXX-axis repeat value
[out]_pfRepeatYY-axis repeat value
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_GetSize()

orxDLLAPI orxVECTOR *orxFASTCALL orxGraphic_GetSize ( const orxGRAPHIC * _pstGraphic,
orxVECTOR * _pvSize )
extern

Gets graphic size

Parameters
[in]_pstGraphicConcerned graphic
[out]_pvSizeObject's size
Returns
orxVECTOR / orxNULL

◆ orxGraphic_GetSmoothing()

orxDLLAPI orxDISPLAY_SMOOTHING orxFASTCALL orxGraphic_GetSmoothing ( const orxGRAPHIC * _pstGraphic)
extern

Gets graphic smoothing

Parameters
[in]_pstGraphicConcerned graphic
Returns
Smoothing type (enabled, default or none)

◆ orxGraphic_HasBlendMode()

orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasBlendMode ( const orxGRAPHIC * _pstGraphic)
extern

Graphic has blend mode accessor

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxTRUE / orxFALSE

◆ orxGraphic_HasColor()

orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasColor ( const orxGRAPHIC * _pstGraphic)
extern

Graphic has color accessor

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxTRUE / orxFALSE

◆ orxGraphic_HasFlip()

orxDLLAPI orxBOOL orxFASTCALL orxGraphic_HasFlip ( const orxGRAPHIC * _pstGraphic)
extern

Graphic has flip accessor

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxTRUE / orxFALSE

◆ orxGraphic_Init()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_Init ( )
extern

Inits the Graphic module

◆ orxGraphic_SetBlendMode()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetBlendMode ( orxGRAPHIC * _pstGraphic,
orxDISPLAY_BLEND_MODE _eBlendMode )
extern

Sets object blend mode

Parameters
[in]_pstGraphicConcerned graphic
[in]_eBlendModeBlend mode (alpha, multiply, add or none)
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetColor()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetColor ( orxGRAPHIC * _pstGraphic,
const orxCOLOR * _pstColor )
extern

Sets graphic color

Parameters
[in]_pstGraphicConcerned graphic
[in]_pstColorColor to set
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetData()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetData ( orxGRAPHIC * _pstGraphic,
orxSTRUCTURE * _pstData )
extern

Sets graphic data

Parameters
[in]_pstGraphicConcerned graphic
[in]_pstDataData structure to set / orxNULL
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetFlip()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetFlip ( orxGRAPHIC * _pstGraphic,
orxBOOL _bFlipX,
orxBOOL _bFlipY )
extern

Sets graphic flipping

Parameters
[in]_pstGraphicConcerned graphic
[in]_bFlipXFlip it on X axis
[in]_bFlipYFlip it on Y axis
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetOrigin()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetOrigin ( orxGRAPHIC * _pstGraphic,
const orxVECTOR * _pvOrigin )
extern

Sets graphic origin

Parameters
[in]_pstGraphicConcerned graphic
[in]_pvOriginOrigin coordinates
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetPivot()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetPivot ( orxGRAPHIC * _pstGraphic,
const orxVECTOR * _pvPivot )
extern

Sets graphic pivot

Parameters
[in]_pstGraphicConcerned graphic
[in]_pvPivotPivot to set
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetRelativePivot()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetRelativePivot ( orxGRAPHIC * _pstGraphic,
orxU32 _u32AlignFlags )
extern

Sets graphic relative pivot

Parameters
[in]_pstGraphicConcerned graphic
[in]_u32AlignFlagsAlignment flags
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetRepeat()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetRepeat ( orxGRAPHIC * _pstGraphic,
orxFLOAT _fRepeatX,
orxFLOAT _fRepeatY )
extern

Sets graphic repeat (wrap) value

Parameters
[in]_pstGraphicConcerned graphic
[in]_fRepeatXX-axis repeat value
[in]_fRepeatYY-axis repeat value
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetSize()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetSize ( orxGRAPHIC * _pstGraphic,
const orxVECTOR * _pvSize )
extern

Sets graphic size

Parameters
[in]_pstGraphicConcerned graphic
[in]_pvSizeSize to set
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_SetSmoothing()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_SetSmoothing ( orxGRAPHIC * _pstGraphic,
orxDISPLAY_SMOOTHING _eSmoothing )
extern

Sets graphic smoothing

Parameters
[in]_pstGraphicConcerned graphic
[in]_eSmoothingSmoothing type (enabled, default or none)
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

◆ orxGraphic_Setup()

orxDLLAPI void orxFASTCALL orxGraphic_Setup ( )
extern

Graphic module setup

◆ orxGraphic_UpdateSize()

orxDLLAPI orxSTATUS orxFASTCALL orxGraphic_UpdateSize ( orxGRAPHIC * _pstGraphic)
extern

Updates graphic size (recompute)

Parameters
[in]_pstGraphicConcerned graphic
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Generated for orx by doxygen 1.8.11