10#ifndef __GFX_ENV_WIN__H__
11#define __GFX_ENV_WIN__H__
41 const eC_UInt& uiWidth,
42 const eC_UInt& uiHeight,
43 const eC_UInt& uiBufferCount = 1,
44 const eC_Bool& bResizable =
false);
46#ifdef USE_DEPTH_BUFFER
47 eC_Bool EnterFullscreen();
48 eC_Bool LeaveFullscreen();
50 void ClearDepthInfo(
const eC_UInt& uiValue);
51 eC_UByte GetDepthInfo(
const eC_UInt& uiX,
const eC_UInt& uiY);
52 void PutDepthInfo(
const eC_UInt& uiX,
const eC_UInt& uiY,
const eC_UByte& ubValue,
const eC_Bool& bDepthTest);
69 const eC_UInt& uiWidth,
70 const eC_UInt& uiHeight,
71 const eC_UInt& uiBufferCount = 1,
72 const eC_Bool& bResizable =
false);
99 LPBITMAPINFO CreateBitmapInfoHeader(
105 void CreateMemoryDC();
107#ifdef USE_DEPTH_BUFFER
108 void CreateDepthMemoryDC(
const eC_UInt& uiWidth,
const eC_UInt& uiHeight);
120 HDC m_hFrontBufferDC;
126 HBITMAP* m_hDCBitmap;
129 HBITMAP* m_hOldDCBitmap;
141 eC_UInt m_uiDrawBufferIndex;
142 eC_UInt m_uiDisplayBufferIndex;
144#ifdef USE_DEPTH_BUFFER
146 eC_UInt m_uiDepthWidth;
147 eC_UInt m_uiDepthWidthInPixels;
148 HDC* m_hDepthMemoryDC;
149 HBITMAP* m_hDCDepthBitmap;
150 HBITMAP* m_hOldDCDepthBitmap;
151 BYTE** m_pubDepthBits;
ImageType_t
Definition: GUICommonEnums.h:80
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
SurfaceMode_t
Definition: GfxEnv.h:60
Implements windows GDI specific features.
Definition: GfxEnvWin.h:25
virtual eC_Bool RefreshScreen(const CGUIRect &rkInvalidatedArea)
virtual void ** GetFrameBuffers() const
virtual void SetWindowCaption(const eC_String &kCaption)
static eC_Bool CreateInstance(const HWND &hWnd, const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, const eC_Bool &bResizable=false)
CGfxEnvWin(const HWND &hWnd, const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, const eC_Bool &bResizable=false)
virtual eC_Bool SwapBuffers()
virtual void EndOfRefresh()