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

CSurface Class Reference

#include <ddutil.h>

List of all members.

Public Member Functions

LPDIRECTDRAWSURFACE7 GetDDrawSurface ()
BOOL IsColorKeyed ()
HRESULT DrawBitmap (HBITMAP hBMP, DWORD dwBMPOriginX=0, DWORD dwBMPOriginY=0, DWORD dwBMPWidth=0, DWORD dwBMPHeight=0)
HRESULT DrawBitmap (TCHAR *strBMP, DWORD dwDesiredWidth, DWORD dwDesiredHeight)
HRESULT DrawText (HFONT hFont, TCHAR *strText, DWORD dwOriginX, DWORD dwOriginY, COLORREF crBackground, COLORREF crForeground)
HRESULT SetColorKey (DWORD dwColorKey)
DWORD ConvertGDIColor (COLORREF dwGDIColor)
HRESULT Create (LPDIRECTDRAW7 pDD, DDSURFACEDESC2 *pddsd)
HRESULT Create (LPDIRECTDRAWSURFACE7 pdds)
HRESULT Destroy ()
 CSurface ()
 ~CSurface ()

Static Public Member Functions

HRESULT GetBitMaskInfo (DWORD dwBitMask, DWORD *pdwShift, DWORD *pdwBits)

Private Attributes

LPDIRECTDRAWSURFACE7 m_pdds
DDSURFACEDESC2 m_ddsd
BOOL m_bColorKeyed


Constructor & Destructor Documentation

CSurface::CSurface  ) 
 

Definition at line 699 of file ddutil.cpp.

References m_bColorKeyed, and m_pdds.

CSurface::~CSurface  ) 
 

Definition at line 712 of file ddutil.cpp.

References m_pdds, and SAFE_RELEASE.


Member Function Documentation

DWORD CSurface::ConvertGDIColor COLORREF  dwGDIColor  ) 
 

Definition at line 953 of file ddutil.cpp.

References ConvertGDIColor(), and m_pdds.

Referenced by ConvertGDIColor(), and SetColorKey().

HRESULT CSurface::Create LPDIRECTDRAWSURFACE7  pdds  ) 
 

Definition at line 724 of file ddutil.cpp.

References Create(), m_ddsd, and m_pdds.

HRESULT CSurface::Create LPDIRECTDRAW7  pDD,
DDSURFACEDESC2 *  pddsd
 

Definition at line 747 of file ddutil.cpp.

References Create(), m_ddsd, and m_pdds.

Referenced by Create(), and CDisplay::ShowBitmap().

HRESULT CSurface::Destroy  ) 
 

Definition at line 771 of file ddutil.cpp.

References m_pdds, and SAFE_RELEASE.

HRESULT CSurface::DrawBitmap TCHAR *  strBMP,
DWORD  dwDesiredWidth,
DWORD  dwDesiredHeight
 

Definition at line 889 of file ddutil.cpp.

References DrawBitmap(), and m_pdds.

HRESULT CSurface::DrawBitmap HBITMAP  hBMP,
DWORD  dwBMPOriginX = 0,
DWORD  dwBMPOriginY = 0,
DWORD  dwBMPWidth = 0,
DWORD  dwBMPHeight = 0
 

Definition at line 785 of file ddutil.cpp.

References DrawBitmap(), and m_pdds.

Referenced by DrawBitmap(), and CDisplay::ShowBitmap().

HRESULT CSurface::DrawText HFONT  hFont,
TCHAR *  strText,
DWORD  dwOriginX,
DWORD  dwOriginY,
COLORREF  crBackground,
COLORREF  crForeground
 

Definition at line 848 of file ddutil.cpp.

References DrawText(), and m_pdds.

Referenced by cGame_Manager::Display_Score(), cGame_Manager::Display_Time(), and DrawText().

HRESULT CSurface::GetBitMaskInfo DWORD  dwBitMask,
DWORD *  pdwShift,
DWORD *  pdwBits
[static]
 

Definition at line 1000 of file ddutil.cpp.

References GetBitMaskInfo().

Referenced by GetBitMaskInfo().

LPDIRECTDRAWSURFACE7 CSurface::GetDDrawSurface  )  [inline]
 

Definition at line 115 of file ddutil.h.

References m_pdds.

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

BOOL CSurface::IsColorKeyed  )  [inline]
 

Definition at line 116 of file ddutil.h.

References m_bColorKeyed.

Referenced by CDisplay::Blt().

HRESULT CSurface::SetColorKey DWORD  dwColorKey  ) 
 

Definition at line 930 of file ddutil.cpp.

References ConvertGDIColor(), m_bColorKeyed, m_pdds, and SetColorKey().

Referenced by InitDD(), and SetColorKey().


Member Data Documentation

BOOL CSurface::m_bColorKeyed [private]
 

Definition at line 112 of file ddutil.h.

Referenced by CSurface(), IsColorKeyed(), and SetColorKey().

DDSURFACEDESC2 CSurface::m_ddsd [private]
 

Definition at line 111 of file ddutil.h.

Referenced by Create().

LPDIRECTDRAWSURFACE7 CSurface::m_pdds [private]
 

Definition at line 110 of file ddutil.h.

Referenced by ConvertGDIColor(), Create(), CSurface(), Destroy(), DrawBitmap(), DrawText(), GetDDrawSurface(), SetColorKey(), and ~CSurface().


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