Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Target_DX Class Reference

#include <dx_target.h>

Inheritance diagram for CL_Target_DX:

Inheritance graph
[legend]
Collaboration diagram for CL_Target_DX:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Target_DX (LPDIRECTDRAWSURFACE surface)
virtual ~CL_Target_DX ()
virtual void lock ()
 retval: True if stored in video memory, false otherwise.

virtual void unlock ()
virtual bool is_video ()
virtual void* get_data () const
virtual unsigned int get_num_frames () const
 retval: A pointer that points to the beginning of the target pixel data.

virtual unsigned int get_width () const
virtual unsigned int get_height () const
virtual unsigned int get_pitch () const
virtual unsigned int get_depth () const
virtual unsigned int get_red_mask () const
virtual unsigned int get_green_mask () const
virtual unsigned int get_blue_mask () const
virtual unsigned int get_alpha_mask () const
virtual CL_Paletteget_palette () const
virtual void set_palette (CL_Palette *pal)
virtual bool is_indexed () const
LPDIRECTDRAWSURFACE get_surface ()

Protected Methods

void set_surface (LPDIRECTDRAWSURFACE surface)
void get_palette_from_surface ()

Protected Attributes

LPDIRECTDRAWSURFACE m_surface
bool m_surface_is_video
void* m_data
unsigned int m_width
unsigned int m_height
unsigned int m_pitch
unsigned int m_depth
unsigned int m_red_mask
unsigned int m_green_mask
unsigned int m_blue_mask
unsigned int m_alpha_mask
CL_Palette m_palette
unsigned int m_ref_count

Constructor & Destructor Documentation

CL_Target_DX::CL_Target_DX ( LPDIRECTDRAWSURFACE surface )
 

virtual CL_Target_DX::~CL_Target_DX ( ) [virtual]
 


Member Function Documentation

unsigned int CL_Target_DX::get_alpha_mask ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 43 of file dx_target.h.

unsigned int CL_Target_DX::get_blue_mask ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 42 of file dx_target.h.

void * CL_Target_DX::get_data ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Reimplemented in CL_DisplayCard_DirectDraw::CL_FrontbufferTarget_DX.

Definition at line 32 of file dx_target.h.

unsigned int CL_Target_DX::get_depth ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 39 of file dx_target.h.

unsigned int CL_Target_DX::get_green_mask ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 41 of file dx_target.h.

unsigned int CL_Target_DX::get_height ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Reimplemented in CL_DisplayCard_DirectDraw::CL_FrontbufferTarget_DX.

Definition at line 36 of file dx_target.h.

unsigned int CL_Target_DX::get_num_frames ( ) const [inline, virtual]
 

retval: A pointer that points to the beginning of the target pixel data.

Reimplemented from CL_Target.

Definition at line 34 of file dx_target.h.

virtual CL_Palette* CL_Target_DX::get_palette ( ) const [virtual]
 

Reimplemented from CL_Target.

void CL_Target_DX::get_palette_from_surface ( ) [protected]
 

unsigned int CL_Target_DX::get_pitch ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 37 of file dx_target.h.

unsigned int CL_Target_DX::get_red_mask ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 40 of file dx_target.h.

LPDIRECTDRAWSURFACE CL_Target_DX::get_surface ( ) [inline]
 

Definition at line 50 of file dx_target.h.

unsigned int CL_Target_DX::get_width ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Reimplemented in CL_DisplayCard_DirectDraw::CL_FrontbufferTarget_DX.

Definition at line 35 of file dx_target.h.

bool CL_Target_DX::is_indexed ( ) const [inline, virtual]
 

Reimplemented from CL_Target.

Definition at line 48 of file dx_target.h.

bool CL_Target_DX::is_video ( ) [inline, virtual]
 

Definition at line 31 of file dx_target.h.

virtual void CL_Target_DX::lock ( ) [virtual]
 

retval: True if stored in video memory, false otherwise.

Reimplemented from CL_Target.

virtual void CL_Target_DX::set_palette ( CL_Palette * pal ) [virtual]
 

void CL_Target_DX::set_surface ( LPDIRECTDRAWSURFACE surface ) [protected]
 

virtual void CL_Target_DX::unlock ( ) [virtual]
 

Reimplemented from CL_Target.


Member Data Documentation

unsigned int CL_Target_DX::m_alpha_mask [protected]
 

Definition at line 60 of file dx_target.h.

unsigned int CL_Target_DX::m_blue_mask [protected]
 

Definition at line 60 of file dx_target.h.

void* CL_Target_DX::m_data [protected]
 

Definition at line 58 of file dx_target.h.

unsigned int CL_Target_DX::m_depth [protected]
 

Definition at line 59 of file dx_target.h.

unsigned int CL_Target_DX::m_green_mask [protected]
 

Definition at line 60 of file dx_target.h.

unsigned int CL_Target_DX::m_height [protected]
 

Definition at line 59 of file dx_target.h.

CL_Palette CL_Target_DX::m_palette [protected]
 

Definition at line 61 of file dx_target.h.

unsigned int CL_Target_DX::m_pitch [protected]
 

Definition at line 59 of file dx_target.h.

unsigned int CL_Target_DX::m_red_mask [protected]
 

Definition at line 60 of file dx_target.h.

unsigned int CL_Target_DX::m_ref_count [protected]
 

Definition at line 62 of file dx_target.h.

LPDIRECTDRAWSURFACE CL_Target_DX::m_surface [protected]
 

Definition at line 56 of file dx_target.h.

bool CL_Target_DX::m_surface_is_video [protected]
 

Definition at line 57 of file dx_target.h.

unsigned int CL_Target_DX::m_width [protected]
 

Definition at line 59 of file dx_target.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:34 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001