orx  stable
Portable Game Engine
orxDisplay.h File Reference
#include "orxInclude.h"
#include "plugin/orxPluginCore.h"
#include "math/orxVector.h"
#include "math/orxOBox.h"
#include "memory/orxBank.h"
#include "utils/orxHashTable.h"
#include "utils/orxString.h"
#include "utils/orxLinkList.h"

Go to the source code of this file.

Data Structures

struct  orxCHARACTER_GLYPH
 
struct  orxCHARACTER_MAP
 
struct  orxCOLOR
 
struct  orxDISPLAY_EVENT_PAYLOAD
 
struct  orxDISPLAY_TRANSFORM
 
struct  orxDISPLAY_VERTEX
 
struct  orxDISPLAY_VIDEO_MODE
 
struct  orxRGBA
 

Macros

#define orx2RGBA(R, G, B, A)    orxRGBA_Set((orxU8)(R), (orxU8)(G), (orxU8)(B), (orxU8)(A))
 
#define orxCOLOR_DENORMALIZER   (orx2F(255.0f))
 
#define orxCOLOR_GET_RGB_COMPONENT(RESULT, ALT, CHROMA, HUE)
 
#define orxCOLOR_NORMALIZER   (orx2F(1.0f / 255.0f))
 
#define orxDISPLAY_KC_SHADER_EXTENSION_ADD   '+'
 
#define orxDISPLAY_KC_SHADER_EXTENSION_REMOVE   '-'
 
#define orxDISPLAY_KZ_CONFIG_ALLOW_RESIZE   "AllowResize"
 
#define orxDISPLAY_KZ_CONFIG_DECORATION   "Decoration"
 
#define orxDISPLAY_KZ_CONFIG_DEPTH   "ScreenDepth"
 
#define orxDISPLAY_KZ_CONFIG_DEPTHBUFFER   "DepthBuffer"
 
#define orxDISPLAY_KZ_CONFIG_FULLSCREEN   "FullScreen"
 
#define orxDISPLAY_KZ_CONFIG_HEIGHT   "ScreenHeight"
 
#define orxDISPLAY_KZ_CONFIG_POSITION   "ScreenPosition"
 
#define orxDISPLAY_KZ_CONFIG_REFRESH_RATE   "RefreshRate"
 
#define orxDISPLAY_KZ_CONFIG_SECTION   "Display"
 
#define orxDISPLAY_KZ_CONFIG_SHADER_EXTENSION_LIST   "ShaderExtensionList"
 
#define orxDISPLAY_KZ_CONFIG_SHADER_VERSION   "ShaderVersion"
 
#define orxDISPLAY_KZ_CONFIG_SMOOTH   "Smoothing"
 
#define orxDISPLAY_KZ_CONFIG_TITLE   "Title"
 
#define orxDISPLAY_KZ_CONFIG_VSYNC   "VSync"
 
#define orxDISPLAY_KZ_CONFIG_WIDTH   "ScreenWidth"
 
#define orxDISPLAY_KZ_SHADER_SUFFIX_BOTTOM   "_bottom"
 
#define orxDISPLAY_KZ_SHADER_SUFFIX_LEFT   "_left"
 
#define orxDISPLAY_KZ_SHADER_SUFFIX_RIGHT   "_right"
 
#define orxDISPLAY_KZ_SHADER_SUFFIX_TOP   "_top"
 
#define orxRGBA_A(RGBA)    RGBA.u8A
 
#define orxRGBA_B(RGBA)    RGBA.u8B
 
#define orxRGBA_G(RGBA)    RGBA.u8G
 
#define orxRGBA_R(RGBA)    RGBA.u8R
 

Typedefs

typedef struct __orxBITMAP_t orxBITMAP
 

Enumerations

enum  orxDISPLAY_BLEND_MODE {
  orxDISPLAY_BLEND_MODE_ALPHA = 0, orxDISPLAY_BLEND_MODE_MULTIPLY, orxDISPLAY_BLEND_MODE_ADD, orxDISPLAY_BLEND_MODE_PREMUL,
  orxDISPLAY_BLEND_MODE_NUMBER, orxDISPLAY_BLEND_MODE_NONE = orxENUM_NONE
}
 
enum  orxDISPLAY_EVENT { orxDISPLAY_EVENT_SET_VIDEO_MODE = 0, orxDISPLAY_EVENT_LOAD_BITMAP, orxDISPLAY_EVENT_NUMBER, orxDISPLAY_EVENT_NONE = orxENUM_NONE }
 
enum  orxDISPLAY_SMOOTHING {
  orxDISPLAY_SMOOTHING_DEFAULT = 0, orxDISPLAY_SMOOTHING_ON, orxDISPLAY_SMOOTHING_OFF, orxDISPLAY_SMOOTHING_NUMBER,
  orxDISPLAY_SMOOTHING_NONE = orxENUM_NONE
}
 

Functions

static orxINLINE orxCOLORorxColor_Copy (orxCOLOR *_pstDst, const orxCOLOR *_pstSrc)
 
static orxCOLOR *orxFASTCALL orxColor_FromHSLToRGB (orxCOLOR *_pstDst, const orxCOLOR *_pstSrc)
 
static orxCOLOR *orxFASTCALL orxColor_FromHSVToRGB (orxCOLOR *_pstDst, const orxCOLOR *_pstSrc)
 
static orxCOLOR *orxFASTCALL orxColor_FromRGBToHSL (orxCOLOR *_pstDst, const orxCOLOR *_pstSrc)
 
static orxCOLOR *orxFASTCALL orxColor_FromRGBToHSV (orxCOLOR *_pstDst, const orxCOLOR *_pstSrc)
 
static orxINLINE orxCOLORorxColor_Set (orxCOLOR *_pstColor, const orxVECTOR *_pvRGB, orxFLOAT _fAlpha)
 
static orxINLINE orxCOLORorxColor_SetAlpha (orxCOLOR *_pstColor, orxFLOAT _fAlpha)
 
static orxINLINE orxCOLORorxColor_SetRGB (orxCOLOR *_pstColor, const orxVECTOR *_pvRGB)
 
static orxINLINE orxCOLORorxColor_SetRGBA (orxCOLOR *_pstColor, orxRGBA _stRGBA)
 
static orxINLINE orxRGBA orxColor_ToRGBA (const orxCOLOR *_pstColor)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_ClearBitmap (orxBITMAP *_pstBitmap, orxRGBA _stColor)
 
orxDLLAPI orxBITMAP *orxFASTCALL orxDisplay_CreateBitmap (orxU32 _u32Width, orxU32 _u32Height)
 
orxDLLAPI orxHANDLE orxFASTCALL orxDisplay_CreateShader (const orxSTRING *_azCodeList, orxU32 _u32Size, const orxLINKLIST *_pstParamList, orxBOOL _bUseCustomParam)
 
orxDLLAPI void orxFASTCALL orxDisplay_DeleteBitmap (orxBITMAP *_pstBitmap)
 
orxDLLAPI void orxFASTCALL orxDisplay_DeleteShader (orxHANDLE _hShader)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawCircle (const orxVECTOR *_pvCenter, orxFLOAT _fRadius, orxRGBA _stColor, orxBOOL _bFill)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawLine (const orxVECTOR *_pvStart, const orxVECTOR *_pvEnd, orxRGBA _stColor)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawMesh (const orxBITMAP *_pstBitmap, orxDISPLAY_SMOOTHING _eSmoothing, orxDISPLAY_BLEND_MODE _eBlendMode, orxU32 _u32VertexNumber, const orxDISPLAY_VERTEX *_astVertexList)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawOBox (const orxOBOX *_pstBox, orxRGBA _stColor, orxBOOL _bFill)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawPolygon (const orxVECTOR *_avVertexList, orxU32 _u32VertexNumber, orxRGBA _stColor, orxBOOL _bFill)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_DrawPolyline (const orxVECTOR *_avVertexList, orxU32 _u32VertexNumber, orxRGBA _stColor)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_EnableVSync (orxBOOL _bEnable)
 
orxDLLAPI void orxFASTCALL orxDisplay_Exit ()
 
orxDLLAPI orxRGBA orxFASTCALL orxDisplay_GetBitmapColor (const orxBITMAP *_pstBitmap)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_GetBitmapData (const orxBITMAP *_pstBitmap, orxU8 *_au8Data, orxU32 _u32ByteNumber)
 
orxDLLAPI orxU32 orxFASTCALL orxDisplay_GetBitmapID (const orxBITMAP *_pstBitmap)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_GetBitmapSize (const orxBITMAP *_pstBitmap, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
 
orxDLLAPI orxDISPLAY_BLEND_MODE orxFASTCALL orxDisplay_GetBlendModeFromString (const orxSTRING _zBlendMode)
 
orxDLLAPI orxS32 orxFASTCALL orxDisplay_GetParameterID (orxHANDLE _hShader, const orxSTRING _zParam, orxS32 _s32Index, orxBOOL _bIsTexture)
 
orxDLLAPI orxBITMAP *orxFASTCALL orxDisplay_GetScreenBitmap ()
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_GetScreenSize (orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
 
orxDLLAPI const orxBITMAP *orxFASTCALL orxDisplay_GetTempBitmap ()
 
orxDLLAPI orxDISPLAY_VIDEO_MODE *orxFASTCALL orxDisplay_GetVideoMode (orxU32 _u32Index, orxDISPLAY_VIDEO_MODE *_pstVideoMode)
 
orxDLLAPI orxU32 orxFASTCALL orxDisplay_GetVideoModeCounter ()
 
orxDLLAPI orxBOOL orxFASTCALL orxDisplay_HasShaderSupport ()
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_Init ()
 
orxDLLAPI orxBOOL orxFASTCALL orxDisplay_IsFullScreen ()
 
orxDLLAPI orxBOOL orxFASTCALL orxDisplay_IsVideoModeAvailable (const orxDISPLAY_VIDEO_MODE *_pstVideoMode)
 
orxDLLAPI orxBOOL orxFASTCALL orxDisplay_IsVSyncEnabled ()
 
orxDLLAPI orxBITMAP *orxFASTCALL orxDisplay_LoadBitmap (const orxSTRING _zFileName)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SaveBitmap (const orxBITMAP *_pstBitmap, const orxSTRING _zFileName)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetBitmapClipping (orxBITMAP *_pstBitmap, orxU32 _u32TLX, orxU32 _u32TLY, orxU32 _u32BRX, orxU32 _u32BRY)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetBitmapColor (orxBITMAP *_pstBitmap, orxRGBA _stColor)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetBitmapColorKey (orxBITMAP *_pstBitmap, orxRGBA _stColor, orxBOOL _bEnable)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetBitmapData (orxBITMAP *_pstBitmap, const orxU8 *_au8Data, orxU32 _u32ByteNumber)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetBlendMode (orxDISPLAY_BLEND_MODE _eBlendMode)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetDestinationBitmaps (orxBITMAP **_apstBitmapList, orxU32 _u32Number)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetFullScreen (orxBOOL _bFullScreen)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetShaderBitmap (orxHANDLE _hShader, orxS32 _s32ID, const orxBITMAP *_pstValue)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetShaderFloat (orxHANDLE _hShader, orxS32 _s32ID, orxFLOAT _fValue)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetShaderVector (orxHANDLE _hShader, orxS32 _s32ID, const orxVECTOR *_pvValue)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetTempBitmap (const orxBITMAP *_pstBitmap)
 
orxDLLAPI void orxFASTCALL orxDisplay_Setup ()
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_SetVideoMode (const orxDISPLAY_VIDEO_MODE *_pstVideoMode)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_StartShader (const orxHANDLE _hShader)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_StopShader (const orxHANDLE _hShader)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_Swap ()
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_TransformBitmap (const orxBITMAP *_pstSrc, const orxDISPLAY_TRANSFORM *_pstTransform, orxDISPLAY_SMOOTHING _eSmoothing, orxDISPLAY_BLEND_MODE _eBlendMode)
 
orxDLLAPI orxSTATUS orxFASTCALL orxDisplay_TransformText (const orxSTRING _zString, const orxBITMAP *_pstFont, const orxCHARACTER_MAP *_pstMap, const orxDISPLAY_TRANSFORM *_pstTransform, orxDISPLAY_SMOOTHING _eSmoothing, orxDISPLAY_BLEND_MODE _eBlendMode)
 
static orxINLINE orxRGBA orxRGBA_Set (orxU8 _u8R, orxU8 _u8G, orxU8 _u8B, orxU8 _u8A)
 

Detailed Description

Macro Definition Documentation

#define orxCOLOR_GET_RGB_COMPONENT (   RESULT,
  ALT,
  CHROMA,
  HUE 
)
Value:
do \
{ \
if(HUE < orx2F(1.0f / 6.0f)) \
{ \
RESULT = ALT + (orx2F(6.0f) * HUE * (CHROMA - ALT)); \
} \
else if(HUE < orx2F(1.0f / 2.0f)) \
{ \
RESULT = CHROMA; \
} \
else if(HUE < orx2F(2.0f / 3.0f)) \
{ \
RESULT = ALT + (orx2F(6.0f) * (CHROMA - ALT) * (orx2F(2.0f / 3.0f) - HUE)); \
} \
else \
{ \
RESULT = ALT; \
} \
if(RESULT < orxMATH_KF_EPSILON) \
{ \
RESULT = orxFLOAT_0; \
} \
else if(RESULT > orxFLOAT_1 - orxMATH_KF_EPSILON) \
{ \
RESULT = orxFLOAT_1; \
} \
} \
while(orxFALSE)
static const orxFLOAT orxFLOAT_1
Definition: orxType.h:191
#define orxFALSE
Definition: orxType.h:185
#define orxMATH_KF_EPSILON
Definition: orxMath.h:290
static const orxFLOAT orxFLOAT_0
Definition: orxType.h:190

Generated for orx by doxygen 1.5.6