#include <GraphicsObject.h>
Public Types | |
enum | BLENDMODE_PRESET { kBLENDMODE_PRESET_ADDITIVE, kBLENDMODE_PRESET_ALPHAMASK, kBLENDMODE_PRESET_CUSTOM } |
Public Member Functions | |
GraphicsObject () | |
virtual | ~GraphicsObject () |
virtual void | Cleanup () |
virtual bool | Initialize (Texture *pTexture, RENDER_MODE nRenderMode) |
virtual void | Render (TextureSDL *pDestTexture) |
virtual ColorRGBA | GetPixelColorAt (int nX, int nY) |
virtual void | SetPixelColorAt (int nX, int nY, ColorRGBA *pColor) |
virtual bool | IsVisibleWindow (int nWindowWidth, int nWindowHeight) |
virtual void | SetPresetBlendMode (BLENDMODE_PRESET nBlendMode) |
void | SetTexture (Texture *pTexture) |
Texture * | GetTexture () |
void | SetPivotCentered (bool bStatus=true) |
bool | IsPivotCentered () |
unsigned int | GetZOrder () |
void | SetZOrder (unsigned int nZOrder) |
void | SetVisible (bool bStatus) |
bool | IsVisible () |
void | SetCullingEnabled (bool bStatus) |
bool | IsCullingEnabled () |
GraphicsUVData * | GetUVData () |
RENDER_MODE | GetRenderMode () |
void | SetAlphaEnabled (bool bStatus) |
bool | IsAlphaEnabled () |
void | SetColorkeyEnabled (bool bStatus) |
bool | IsColorkeyEnabled () |
void | SetAlpha (Uint8 nAlpha=255) |
Uint8 | GetAlpha () |
void | SetColorKey (ColorRGB rColorKey) |
ColorRGB | GetColorKey () |
void | SetCustomBlendFactors (unsigned int nSrc, unsigned int nDest) |
void | SetAlphaRejection (float fAlphaRef) |
float | GetAlphaRejection () |
Protected Member Functions | |
virtual ColorRGBA | GetPixelColorAtSDL (int nX, int nY) |
virtual void | SetPixelColorAtSDL (int nX, int nY, ColorRGBA *pColor) |
virtual ColorRGBA | GetPixelColorAtOGL (int nX, int nY) |
virtual void | SetPixelColorAtOGL (int nX, int nY, ColorRGBA *pColor) |
virtual void | RenderSDL (TextureSDL *pDestTexture) |
virtual void | RenderOGL (TextureSDL *pDestTexture) |
Protected Attributes | |
unsigned int | m_nZOrder |
unsigned int | m_nBlendFactorSrc |
unsigned int | m_nBlendFactorDest |
Uint8 | m_nAlpha |
bool | m_bCullingEnabled |
bool | m_bVisible |
bool | m_bPivotCentered |
bool | m_bAlphaEnabled |
bool | m_bColorKeyEnabled |
float | m_fAlphaRef |
ColorRGB | m_rColorKey |
BLENDMODE_PRESET | m_nBlendMode |
GraphicsUVData | m_rUVdata |
RENDER_MODE | m_nRenderMode |
Texture * | m_pTexture |
GraphicsObject::GraphicsObject | ( | ) |
GraphicsObject::~GraphicsObject | ( | ) | [virtual] |
void GraphicsObject::Cleanup | ( | ) | [virtual] |
Reimplemented in EPOC::Image, and EPOC::Text.
bool GraphicsObject::Initialize | ( | Texture * | pTexture, | |
RENDER_MODE | nRenderMode | |||
) | [virtual] |
Reimplemented in EPOC::Image.
void GraphicsObject::Render | ( | TextureSDL * | pDestTexture | ) | [virtual] |
ColorRGBA GraphicsObject::GetPixelColorAt | ( | int | nX, | |
int | nY | |||
) | [virtual] |
void GraphicsObject::SetPixelColorAt | ( | int | nX, | |
int | nY, | |||
ColorRGBA * | pColor | |||
) | [virtual] |
bool GraphicsObject::IsVisibleWindow | ( | int | nWindowWidth, | |
int | nWindowHeight | |||
) | [virtual] |
void GraphicsObject::SetPresetBlendMode | ( | BLENDMODE_PRESET | nBlendMode | ) | [virtual] |
void EPOC::GraphicsObject::SetTexture | ( | Texture * | pTexture | ) | [inline] |
Texture* EPOC::GraphicsObject::GetTexture | ( | ) | [inline] |
void EPOC::GraphicsObject::SetPivotCentered | ( | bool | bStatus = true |
) | [inline] |
bool EPOC::GraphicsObject::IsPivotCentered | ( | ) | [inline] |
unsigned int EPOC::GraphicsObject::GetZOrder | ( | ) | [inline] |
void EPOC::GraphicsObject::SetZOrder | ( | unsigned int | nZOrder | ) | [inline] |
void EPOC::GraphicsObject::SetVisible | ( | bool | bStatus | ) | [inline] |
bool EPOC::GraphicsObject::IsVisible | ( | ) | [inline] |
void EPOC::GraphicsObject::SetCullingEnabled | ( | bool | bStatus | ) | [inline] |
bool EPOC::GraphicsObject::IsCullingEnabled | ( | ) | [inline] |
GraphicsUVData* EPOC::GraphicsObject::GetUVData | ( | ) | [inline] |
RENDER_MODE EPOC::GraphicsObject::GetRenderMode | ( | ) | [inline] |
void EPOC::GraphicsObject::SetAlphaEnabled | ( | bool | bStatus | ) | [inline] |
bool EPOC::GraphicsObject::IsAlphaEnabled | ( | ) | [inline] |
void EPOC::GraphicsObject::SetColorkeyEnabled | ( | bool | bStatus | ) | [inline] |
bool EPOC::GraphicsObject::IsColorkeyEnabled | ( | ) | [inline] |
void EPOC::GraphicsObject::SetAlpha | ( | Uint8 | nAlpha = 255 |
) | [inline] |
Uint8 EPOC::GraphicsObject::GetAlpha | ( | ) | [inline] |
void EPOC::GraphicsObject::SetColorKey | ( | ColorRGB | rColorKey | ) | [inline] |
ColorRGB EPOC::GraphicsObject::GetColorKey | ( | ) | [inline] |
void EPOC::GraphicsObject::SetCustomBlendFactors | ( | unsigned int | nSrc, | |
unsigned int | nDest | |||
) | [inline] |
void EPOC::GraphicsObject::SetAlphaRejection | ( | float | fAlphaRef | ) | [inline] |
float EPOC::GraphicsObject::GetAlphaRejection | ( | ) | [inline] |
ColorRGBA GraphicsObject::GetPixelColorAtSDL | ( | int | nX, | |
int | nY | |||
) | [protected, virtual] |
void GraphicsObject::SetPixelColorAtSDL | ( | int | nX, | |
int | nY, | |||
ColorRGBA * | pColor | |||
) | [protected, virtual] |
ColorRGBA GraphicsObject::GetPixelColorAtOGL | ( | int | nX, | |
int | nY | |||
) | [protected, virtual] |
void GraphicsObject::SetPixelColorAtOGL | ( | int | nX, | |
int | nY, | |||
ColorRGBA * | pColor | |||
) | [protected, virtual] |
void GraphicsObject::RenderSDL | ( | TextureSDL * | pDestTexture | ) | [protected, virtual] |
Reimplemented in EPOC::Image, and EPOC::Text.
void GraphicsObject::RenderOGL | ( | TextureSDL * | pDestTexture | ) | [protected, virtual] |
Reimplemented in EPOC::Image, and EPOC::Text.
unsigned int EPOC::GraphicsObject::m_nZOrder [protected] |
unsigned int EPOC::GraphicsObject::m_nBlendFactorSrc [protected] |
unsigned int EPOC::GraphicsObject::m_nBlendFactorDest [protected] |
Uint8 EPOC::GraphicsObject::m_nAlpha [protected] |
bool EPOC::GraphicsObject::m_bCullingEnabled [protected] |
bool EPOC::GraphicsObject::m_bVisible [protected] |
bool EPOC::GraphicsObject::m_bPivotCentered [protected] |
bool EPOC::GraphicsObject::m_bAlphaEnabled [protected] |
bool EPOC::GraphicsObject::m_bColorKeyEnabled [protected] |
float EPOC::GraphicsObject::m_fAlphaRef [protected] |
ColorRGB EPOC::GraphicsObject::m_rColorKey [protected] |
BLENDMODE_PRESET EPOC::GraphicsObject::m_nBlendMode [protected] |
GraphicsUVData EPOC::GraphicsObject::m_rUVdata [protected] |
RENDER_MODE EPOC::GraphicsObject::m_nRenderMode [protected] |
Texture* EPOC::GraphicsObject::m_pTexture [protected] |