Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CDisplay Class Reference

#include <ddutil.h>

List of all members.

Public Member Functions

 CDisplay ()
 ~CDisplay ()
HWND GetHWnd ()
LPDIRECTDRAW7 GetDirectDraw ()
LPDIRECTDRAWSURFACE7 GetFrontBuffer ()
LPDIRECTDRAWSURFACE7 GetBackBuffer ()
LPDIRECTDRAWSURFACE7 GetBackBufferLEft ()
BOOL IsWindowed ()
BOOL IsStereo ()
HRESULT CreateFullScreenDisplay (HWND hWnd, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
HRESULT CreateWindowedDisplay (HWND hWnd, DWORD dwWidth, DWORD dwHeight)
HRESULT InitClipper ()
HRESULT UpdateBounds ()
virtual HRESULT DestroyObjects ()
HRESULT CreateSurface (CSurface **ppSurface, DWORD dwWidth, DWORD dwHeight)
HRESULT CreateSurfaceFromBitmap (CSurface **ppSurface, TCHAR *strBMP, DWORD dwDesiredWidth, DWORD dwDesiredHeight)
HRESULT CreateSurfaceFromText (CSurface **ppSurface, HFONT hFont, TCHAR *strText, COLORREF crBackground, COLORREF crForeground)
HRESULT CreatePaletteFromBitmap (LPDIRECTDRAWPALETTE *ppPalette, const TCHAR *strBMP)
HRESULT Clear (DWORD dwColor=0L)
HRESULT ColorKeyBlt (DWORD x, DWORD y, LPDIRECTDRAWSURFACE7 pdds, RECT *prc=NULL)
HRESULT Blt (DWORD x, DWORD y, LPDIRECTDRAWSURFACE7 pdds, RECT *prc=NULL, DWORD dwFlags=0)
HRESULT Blt (DWORD x, DWORD y, CSurface *pSurface, RECT *prc=NULL)
HRESULT ShowBitmap (HBITMAP hbm, LPDIRECTDRAWPALETTE pPalette=NULL)
HRESULT SetPalette (LPDIRECTDRAWPALETTE pPalette)
HRESULT Present ()

Protected Attributes

LPDIRECTDRAW7 m_pDD
LPDIRECTDRAWSURFACE7 m_pddsFrontBuffer
LPDIRECTDRAWSURFACE7 m_pddsBackBuffer
LPDIRECTDRAWSURFACE7 m_pddsBackBufferLeft
HWND m_hWnd
RECT m_rcWindow
BOOL m_bWindowed
BOOL m_bStereo


Constructor & Destructor Documentation

CDisplay::CDisplay  ) 
 

Definition at line 27 of file ddutil.cpp.

References m_pDD, m_pddsBackBuffer, m_pddsBackBufferLeft, and m_pddsFrontBuffer.

CDisplay::~CDisplay  ) 
 

Definition at line 42 of file ddutil.cpp.

References DestroyObjects().


Member Function Documentation

HRESULT CDisplay::Blt DWORD  x,
DWORD  y,
CSurface pSurface,
RECT *  prc = NULL
 

Definition at line 479 of file ddutil.cpp.

References Blt(), CSurface::GetDDrawSurface(), and CSurface::IsColorKeyed().

HRESULT CDisplay::Blt DWORD  x,
DWORD  y,
LPDIRECTDRAWSURFACE7  pdds,
RECT *  prc = NULL,
DWORD  dwFlags = 0
 

Definition at line 463 of file ddutil.cpp.

References Blt(), and m_pddsBackBuffer.

Referenced by Blt(), cGame_Manager::Display(), cBitmap_Display_Def::Display(), cGame_Manager::Display_Score(), and cGame_Manager::Display_Time().

HRESULT CDisplay::Clear DWORD  dwColor = 0L  ) 
 

Definition at line 497 of file ddutil.cpp.

References Clear(), and m_pddsBackBuffer.

Referenced by Clear(), and cGame_Manager::Display().

HRESULT CDisplay::ColorKeyBlt DWORD  x,
DWORD  y,
LPDIRECTDRAWSURFACE7  pdds,
RECT *  prc = NULL
 

Definition at line 447 of file ddutil.cpp.

References ColorKeyBlt(), and m_pddsBackBuffer.

Referenced by ColorKeyBlt(), and cSprite_Display_Def::Display().

HRESULT CDisplay::CreateFullScreenDisplay HWND  hWnd,
DWORD  dwWidth,
DWORD  dwHeight,
DWORD  dwBPP
 

Definition at line 75 of file ddutil.cpp.

References CreateFullScreenDisplay(), DestroyObjects(), hWnd, m_bWindowed, m_hWnd, m_pDD, m_pddsBackBuffer, m_pddsFrontBuffer, and UpdateBounds().

Referenced by CreateFullScreenDisplay(), and InitDD().

HRESULT CDisplay::CreatePaletteFromBitmap LPDIRECTDRAWPALETTE *  ppPalette,
const TCHAR *  strBMP
 

Definition at line 533 of file ddutil.cpp.

References CreatePaletteFromBitmap(), and m_pDD.

Referenced by CreatePaletteFromBitmap(), and InitDD().

HRESULT CDisplay::CreateSurface CSurface **  ppSurface,
DWORD  dwWidth,
DWORD  dwHeight
 

Definition at line 236 of file ddutil.cpp.

References CreateSurface(), and m_pDD.

Referenced by CreateSurface(), and InitDD().

HRESULT CDisplay::CreateSurfaceFromBitmap CSurface **  ppSurface,
TCHAR *  strBMP,
DWORD  dwDesiredWidth,
DWORD  dwDesiredHeight
 

Definition at line 271 of file ddutil.cpp.

References CreateSurfaceFromBitmap(), and m_pDD.

Referenced by CreateSurfaceFromBitmap(), and InitDD().

HRESULT CDisplay::CreateSurfaceFromText CSurface **  ppSurface,
HFONT  hFont,
TCHAR *  strText,
COLORREF  crBackground,
COLORREF  crForeground
 

Definition at line 337 of file ddutil.cpp.

References CreateSurfaceFromText(), and m_pDD.

Referenced by CreateSurfaceFromText().

HRESULT CDisplay::CreateWindowedDisplay HWND  hWnd,
DWORD  dwWidth,
DWORD  dwHeight
 

Definition at line 135 of file ddutil.cpp.

References CreateWindowedDisplay(), DestroyObjects(), hWnd, m_bWindowed, m_hWnd, m_pDD, m_pddsBackBuffer, m_pddsFrontBuffer, and UpdateBounds().

Referenced by CreateWindowedDisplay().

HRESULT CDisplay::DestroyObjects  )  [virtual]
 

Definition at line 54 of file ddutil.cpp.

References m_hWnd, m_pDD, m_pddsBackBuffer, m_pddsBackBufferLeft, m_pddsFrontBuffer, and SAFE_RELEASE.

Referenced by CreateFullScreenDisplay(), CreateWindowedDisplay(), and ~CDisplay().

LPDIRECTDRAWSURFACE7 CDisplay::GetBackBuffer  )  [inline]
 

Definition at line 62 of file ddutil.h.

References m_pddsBackBuffer.

Referenced by Draw_Line().

LPDIRECTDRAWSURFACE7 CDisplay::GetBackBufferLEft  )  [inline]
 

Definition at line 63 of file ddutil.h.

References m_pddsBackBufferLeft.

LPDIRECTDRAW7 CDisplay::GetDirectDraw  )  [inline]
 

Definition at line 60 of file ddutil.h.

References m_pDD.

LPDIRECTDRAWSURFACE7 CDisplay::GetFrontBuffer  )  [inline]
 

Definition at line 61 of file ddutil.h.

References m_pddsFrontBuffer.

HWND CDisplay::GetHWnd  )  [inline]
 

Definition at line 59 of file ddutil.h.

References m_hWnd.

HRESULT CDisplay::InitClipper  ) 
 

Definition at line 670 of file ddutil.cpp.

References m_hWnd, m_pDD, m_pddsFrontBuffer, and SAFE_RELEASE.

BOOL CDisplay::IsStereo  )  [inline]
 

Definition at line 67 of file ddutil.h.

References m_bStereo.

BOOL CDisplay::IsWindowed  )  [inline]
 

Definition at line 66 of file ddutil.h.

References m_bWindowed.

HRESULT CDisplay::Present  ) 
 

Definition at line 389 of file ddutil.cpp.

References m_bWindowed, m_pddsBackBuffer, m_pddsFrontBuffer, and m_rcWindow.

Referenced by cGame_Manager::Main_Loop(), and ShowBitmap().

HRESULT CDisplay::SetPalette LPDIRECTDRAWPALETTE  pPalette  ) 
 

Definition at line 518 of file ddutil.cpp.

References m_pddsFrontBuffer, and SetPalette().

Referenced by InitDD(), and SetPalette().

HRESULT CDisplay::ShowBitmap HBITMAP  hbm,
LPDIRECTDRAWPALETTE  pPalette = NULL
 

Definition at line 422 of file ddutil.cpp.

References CSurface::Create(), CSurface::DrawBitmap(), m_pddsBackBuffer, m_pddsFrontBuffer, Present(), and ShowBitmap().

Referenced by ShowBitmap().

HRESULT CDisplay::UpdateBounds  ) 
 

Definition at line 645 of file ddutil.cpp.

References m_bWindowed, m_hWnd, and m_rcWindow.

Referenced by CreateFullScreenDisplay(), CreateWindowedDisplay(), and WndProc().


Member Data Documentation

BOOL CDisplay::m_bStereo [protected]
 

Definition at line 52 of file ddutil.h.

Referenced by IsStereo().

BOOL CDisplay::m_bWindowed [protected]
 

Definition at line 51 of file ddutil.h.

Referenced by CreateFullScreenDisplay(), CreateWindowedDisplay(), IsWindowed(), Present(), and UpdateBounds().

HWND CDisplay::m_hWnd [protected]
 

Definition at line 49 of file ddutil.h.

Referenced by CreateFullScreenDisplay(), CreateWindowedDisplay(), DestroyObjects(), GetHWnd(), InitClipper(), and UpdateBounds().

LPDIRECTDRAW7 CDisplay::m_pDD [protected]
 

Definition at line 44 of file ddutil.h.

Referenced by CDisplay(), CreateFullScreenDisplay(), CreatePaletteFromBitmap(), CreateSurface(), CreateSurfaceFromBitmap(), CreateSurfaceFromText(), CreateWindowedDisplay(), DestroyObjects(), GetDirectDraw(), and InitClipper().

LPDIRECTDRAWSURFACE7 CDisplay::m_pddsBackBuffer [protected]
 

Definition at line 46 of file ddutil.h.

Referenced by Blt(), CDisplay(), Clear(), ColorKeyBlt(), CreateFullScreenDisplay(), CreateWindowedDisplay(), DestroyObjects(), GetBackBuffer(), Present(), and ShowBitmap().

LPDIRECTDRAWSURFACE7 CDisplay::m_pddsBackBufferLeft [protected]
 

Definition at line 47 of file ddutil.h.

Referenced by CDisplay(), DestroyObjects(), and GetBackBufferLEft().

LPDIRECTDRAWSURFACE7 CDisplay::m_pddsFrontBuffer [protected]
 

Definition at line 45 of file ddutil.h.

Referenced by CDisplay(), CreateFullScreenDisplay(), CreateWindowedDisplay(), DestroyObjects(), GetFrontBuffer(), InitClipper(), Present(), SetPalette(), and ShowBitmap().

RECT CDisplay::m_rcWindow [protected]
 

Definition at line 50 of file ddutil.h.

Referenced by Present(), and UpdateBounds().


The documentation for this class was generated from the following files:
Generated on Fri May 21 19:22:37 2004 for LIBELL by doxygen 1.3.7