16#include "GUICommonEnums.h"
17#include "eC_TList_doubleLinked.h"
21#include "GUILayerConfig.h"
23#include "GUIComponentManager.h"
25#define GETGFXENV CGUIComponentManager::GetInstance().GetGfxEnv()
80 const eC_UInt& uiWidth,
81 const eC_UInt& uiHeight,
82 const eC_UInt& uiBufferCount = 1,
83 void** ppkBuffers = NULL,
84 const eC_Bool& bResizable =
false);
100 virtual void SetScreenSize(
const eC_UInt& uiWidth,
const eC_UInt& uiHeight);
238 eC_Bool
SetActiveLayerID(
const eC_UInt& uiLayerID,
const eC_Bool& bMarkAsModified =
false);
262 virtual eC_Bool
UpdateLayerBuffers(
const eC_UInt& uiLayerID,
void* pkRenderBuffer,
void* pkDisplayBuffer,
const eC_UInt& uiWidth,
const eC_UInt& uiHeight);
268 void AddMainLayer(
const eC_UInt& uiLayerID = 0,
const eC_Bool& bCached =
false);
339 eC_Bool
SetLayerPosition(
const eC_UInt& uiLayerID,
const eC_Int& iXPos,
const eC_Int& iYPos);
400 eC_Bool
SetLayerChromaKey(
const eC_UInt& uiLayerID,
const eC_Bool& bChromaKeyActive,
const eC_UInt& uiChromaKey,
const eC_UByte& ubAlpha);
410 eC_Bool
GetLayerChromaKey(
const eC_UInt& uiLayerID, eC_Bool& bChromaKeyActive, eC_UInt& uiChromaKey, eC_UByte& ubAlpha)
const;
420 eC_Bool
GetLayerBufferSize(
const eC_UInt& uiLayerID, eC_UInt& uiWidth, eC_UInt& uiHeight, eC_UByte& ubBPP);
515 virtual eC_Bool
IsNull() {
return false; }
561 const eC_UInt& uiWidth,
562 const eC_UInt& uiHeight,
563 const eC_UInt& uiBufferCount = 1,
564 void** ppkBuffers = NULL,
565 const eC_Bool& bResizable =
false);
595 const eC_UInt& uiWidth,
const eC_UInt& uiHeight,
596 const eC_UInt& uiBufferCount,
ImageType_t
Definition: GUICommonEnums.h:80
central component-manager
Definition: GUIComponentManager.h:62
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
eC_UInt GetNumberOfLayers() const
virtual void SetVSyncEnabled(const eC_Bool &bVSyncEnabled)
virtual eC_Bool IsVSyncEnabled() const
Definition: GfxEnv.h:180
void ** m_ppkBuffers
buffers for the main-screen
Definition: GfxEnv.h:606
virtual SurfaceMode_t GetSurfaceMode() const
virtual eC_Bool SwapBuffers()
Definition: GfxEnv.h:208
eC_Bool m_bVSyncEnabled
if vsync is enabled
Definition: GfxEnv.h:621
eC_Bool AddLayer(const LayerConfiguration_t &kLayerConfig)
eC_Bool SetLayerVisible(const eC_UInt &uiLayerID, const eC_Bool &bVisible)
SurfaceMode_t m_eSurfaceMode
surface mode
Definition: GfxEnv.h:600
eC_Bool GetLayerConfigForMainLayer(LayerConfiguration_t &rkLayerConfig) const
void SetMainLayerID(const eC_UInt &uiLayerID)
virtual void DeInitDisplay()
Definition: GfxEnv.h:219
void SetObjectForLayerID(const eC_UInt &uiLayerID, CGUIObject *pkObject)
eC_UByte m_ubGlobalAlpha
global alpha for blending
Definition: GfxEnv.h:620
eC_Bool GetLayerIndexForID(const eC_UInt &uiLayerID, eC_UInt &ruiLayerIndex) const
eC_Bool SetLayerPosition(const eC_UInt &uiLayerID, const eC_Int &iXPos, const eC_Int &iYPos)
void SetMainLayerProperties(const eC_UInt &uiLayerID, const eC_Bool &bCached)
eC_Bool GetLayerChromaKey(const eC_UInt &uiLayerID, eC_Bool &bChromaKeyActive, eC_UInt &uiChromaKey, eC_UByte &ubAlpha) const
eC_UByte m_ubBPP
BPP of the surface.
Definition: GfxEnv.h:604
eC_Int m_iMainLayerID
id of main-layer
Definition: GfxEnv.h:619
void SetGlobalAlpha(const eC_UByte &ubGlobalAlpha)
void UpdateMainLayer(const CGUICommonEnums::ImageType_t &eColorFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount, void **ppkBuffers)
virtual void UpdateLayer(const LayerConfiguration_t &kLayerConfig, const LayerUpdate_t &eUpdateReason)
Definition: GfxEnv.h:428
void * GetDisplayBuffer(const eC_UInt &uiLayerID) const
virtual eC_Bool NeedsManualMerge() const
virtual eC_UInt GetWidth() const
virtual void SetDevice(void *pkDevice)
Definition: GfxEnv.h:531
void * GetRenderBuffer(const eC_UInt &uiLayerID) const
virtual void * GetWindowHandle() const
Definition: GfxEnv.h:546
virtual eC_Bool RefreshScreen(const eC_TListDoubleLinked< CGUIRect > &kInvalidatedRectList)
virtual void StartOfRefresh()
Definition: GfxEnv.h:485
virtual void SetScreenPosition(const eC_UInt &uiX, const eC_UInt &uiY)
virtual void SetScreenSize(const eC_UInt &uiWidth, const eC_UInt &uiHeight)
eC_Bool m_bNeedsManualMerge
if supports merge
Definition: GfxEnv.h:608
virtual eC_UInt GetYPos() const
virtual void SetCliprect(const CGUIRect &rkNewClipRect)
Definition: GfxEnv.h:198
eC_Bool SetLayerVisiblePos(const eC_UInt &uiLayerID, const eC_Int &iXPos, const eC_Int &iYPos)
void InvalidateLayer(const eC_UInt &uiLayerID)
eC_Bool SetActiveLayerID(const eC_UInt &uiLayerID, const eC_Bool &bMarkAsModified=false)
eC_Bool GetLayerConfigForID(const eC_UInt &uiLayerID, LayerConfiguration_t &rkLayerConfig) const
SurfaceMode_t
Definition: GfxEnv.h:60
@ SM_OPENGL
use OpenGL for surface
Definition: GfxEnv.h:61
@ SM_FRAMEBUFFER
use framebuffer for surface
Definition: GfxEnv.h:62
eC_Bool m_bResizable
resizable
Definition: GfxEnv.h:607
virtual void EndOfRefresh()
Definition: GfxEnv.h:491
virtual eC_UInt InitDisplay()
Definition: GfxEnv.h:214
eC_Bool GetLayerPosition(const eC_UInt &uiLayerID, eC_Int &iXPos, eC_Int &iYPos)
eC_UInt GetActiveLayerID() const
eC_UByte GetLayerAlpha(const eC_UInt &uiLayerID) const
virtual eC_Bool IsNull()
Definition: GfxEnv.h:515
eC_UByte ApplyGlobalAlpha(const eC_UByte &ubAlpha) const
static eC_Bool CreateInstance(const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, void **ppkBuffers=NULL, const eC_Bool &bResizable=false)
eC_Bool SetLayerAlpha(const eC_UInt &uiLayerID, const eC_UByte &ubAlpha)
eC_UByte GetGlobalAlpha() const
eC_Bool SetLayerChromaKey(const eC_UInt &uiLayerID, const eC_Bool &bChromaKeyActive, const eC_UInt &uiChromaKey, const eC_UByte &ubAlpha)
void AddMainLayer(const eC_UInt &uiLayerID=0, const eC_Bool &bCached=false)
virtual eC_Bool IsResizable() const
virtual void * GetMergeBuffer() const
Definition: GfxEnv.h:536
static void DeleteInstance()
called to destroy and detach GfxEnv
eC_UInt GetMainLayerID() const
eC_Bool m_bSupportsCopy
if supports copy
Definition: GfxEnv.h:609
virtual eC_Bool IsCreated() const
eC_Bool SetLayerVisibleSize(const eC_UInt &uiLayerID, const eC_UInt &uiWidth, const eC_UInt &uiHeight)
virtual eC_Bool SupportsCopy() const
eC_Bool GetLayerConfig(const eC_UInt &uiLayerIndex, LayerConfiguration_t &rkLayerConfig) const
virtual eC_UInt GetHeight() const
CGfxEnv(const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, void **ppkBuffers=NULL, const eC_Bool &bResizable=false)
virtual eC_Bool UpdateLayerBuffers(const eC_UInt &uiLayerID, void *pkRenderBuffer, void *pkDisplayBuffer, const eC_UInt &uiWidth, const eC_UInt &uiHeight)
eC_TArray< LayerConfiguration_t > m_akLayers
: *DCLayer_t, one DCLayer_t struct per layer storing general settings
Definition: GfxEnv.h:613
eC_UByte GetBPPFromScreenFormat() const
eC_UByte GetBytesPerPixel(const CGUICommonEnums::ImageType_t &ePixFormat) const
eC_UInt m_uiBufferCount
number of buffers used
Definition: GfxEnv.h:605
virtual CGUICommonEnums::ImageType_t GetColorFormat() const
virtual eC_Bool RefreshScreen(const CGUIRect &rkInvalidatedArea)
Definition: GfxEnv.h:187
eC_UInt m_uiActiveLayerIndex
index of currentl< active layer
Definition: GfxEnv.h:615
virtual void * GetDisplayHandle() const
Definition: GfxEnv.h:541
CGfxWrap * m_pkGfxWrap
pointer to GfxWrapper
Definition: GfxEnv.h:617
virtual eC_UInt GetXPos() const
CGUICommonEnums::ImageType_t m_eColorFormat
color-format
Definition: GfxEnv.h:601
eC_Bool IsMainLayer(const eC_UInt &uiLayerID) const
eC_String m_kName
name
Definition: GfxEnv.h:610
virtual eC_String GetName() const
virtual void InitLayer(const LayerConfiguration_t &kLayerConfig)
Definition: GfxEnv.h:583
eC_UInt m_uiWidth
width of the surface
Definition: GfxEnv.h:602
eC_Bool IsLayerModified(const eC_UInt &uiLayerID) const
eC_UInt m_uiHeight
height of the surface
Definition: GfxEnv.h:603
eC_Bool IsLayerVisible(const eC_UInt &uiLayerID) const
virtual void SetWindowCaption(const eC_String &kCaption)
Definition: GfxEnv.h:203
virtual eC_UByte GetBPP() const
eC_UInt m_uiActiveLayerID
: unsigned int = Active Layer
Definition: GfxEnv.h:614
eC_Bool GetLayerBufferSize(const eC_UInt &uiLayerID, eC_UInt &uiWidth, eC_UInt &uiHeight, eC_UByte &ubBPP)
void SetGfxWrap(CGfxWrap *pkGfxWrap)
Definition: GfxEnv.h:520
eC_Bool GetLayerVisibleSize(const eC_UInt &uiLayerID, eC_UInt &uiWidth, eC_UInt &uiHeight)
virtual eC_UInt GetBufferCount() const
void UpdateLayerPositions()
virtual void ** GetFrameBuffers() const
Definition: GfxEnv.h:175
The graphics wrapper base class.
Definition: GfxWrap.h:88
Definition: GUILayerConfig.h:37