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

CL_DisplayCard_Generic Class Reference

#include <displaycard_generic.h>

Inheritance diagram for CL_DisplayCard_Generic:

Inheritance graph
[legend]
Collaboration diagram for CL_DisplayCard_Generic:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_DisplayCard_Generic (int card_no)
virtual ~CL_DisplayCard_Generic ()
virtual CL_CardSurfacecreate_cardsurface_video (CL_SurfaceProvider *provider)
virtual CL_CardSurfacecreate_cardsurface_system (CL_SurfaceProvider *provider)
virtual int get_card_no ()
 retval: Videomemory available, or -1 if unknown.

virtual int get_width ()
virtual int get_height ()
 retval: Width of video mode.

virtual int get_bpp ()
 retval: Height of video mode.

virtual bool is_fullscreen ()
virtual bool allow_resize ()
virtual void push_clip_rect ()
 retval: Depth of video mode.

virtual void push_clip_rect (const CL_ClipRect &clip)
virtual CL_ClipRect get_clip_rect ()
 param: rect - The new clipping rectangle to be with the old one and then used.

virtual void set_clip_rect (const CL_ClipRect &clip)
 retval: The current clipping rectangle.

virtual void pop_clip_rect ()
virtual void clear_display (float red=0, float green=0, float blue=0, float alpha=1)
virtual void fill_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a)
virtual void draw_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a)
 param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

virtual void draw_line (int x1, int y1, int x2, int y2, float r, float g, float b, float a)
 param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

virtual void sync_buffers ()
virtual CL_Targetget_frontbuffer ()=0
void frontbuffer_lock ()
void frontbuffer_unlock ()
void add_callback (CL_FlipDisplayCallback_Generic *callback)
virtual void show_system_cursor ()
virtual void hide_system_cursor ()
virtual void push_translate_offset ()
virtual void push_translate_offset (int x, int y)
virtual int get_translate_offset_x ()
virtual int get_translate_offset_y ()
virtual void set_translate_offset (int x, int y)
virtual void pop_translate_offset ()
virtual CL_Signal_v2<int,
int>& 
get_sig_resize ()
 param: x1 - Leftmost x-coordinate. //FIXMEparam: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

virtual CL_Signal_v1<const
CL_Rect &>& 
get_sig_paint ()

Protected Methods

void signal_preflip ()
void signal_postflip ()
void set_gfxmode (int width, int height, int bpp, bool fullscreen, bool allow_resize)
void set_resize (int width, int height)
virtual CL_Blitters create_hw_blitters (CL_SurfaceProvider *provider)
virtual CL_Blitters create_hw_dynamic_blitters (CL_SurfaceProvider *provider)

Protected Attributes

std::list<CL_FlipDisplayCallback_Generic*> callbacks
friend CL_CardSurface_Blitter
CL_ClipRect m_cur_clip
std::deque<CL_ClipRectm_clip_stack

Private Methods

void fill_rect_opaque (int x1, int y1, int x2, int y2, float r, float g, float b, float a)

Private Attributes

int m_card_no
int m_width
int m_height
int m_bpp
bool m_allow_resize
bool m_fullscreen
CL_Signal_v2<int, int> m_sig_resize
CL_Signal_v1<const CL_Rect &> m_sig_paint

Constructor & Destructor Documentation

CL_DisplayCard_Generic::CL_DisplayCard_Generic ( int card_no ) [inline]
 

Definition at line 33 of file displaycard_generic.h.

CL_DisplayCard_Generic::~CL_DisplayCard_Generic ( ) [inline, virtual]
 

Definition at line 42 of file displaycard_generic.h.


Member Function Documentation

void CL_DisplayCard_Generic::add_callback ( CL_FlipDisplayCallback_Generic * callback ) [inline]
 

Definition at line 105 of file displaycard_generic.h.

bool CL_DisplayCard_Generic::allow_resize ( ) [inline, virtual]
 

Definition at line 56 of file displaycard_generic.h.

virtual void CL_DisplayCard_Generic::clear_display ( float red = 0,
float green = 0,
float blue = 0,
float alpha = 1 ) [virtual]
 

Reimplemented from CL_DisplayCard.

Reimplemented in CL_DisplayCard_Be, and CL_DisplayCard_DirectDraw.

virtual CL_CardSurface* CL_DisplayCard_Generic::create_cardsurface_system ( CL_SurfaceProvider * provider ) [virtual]
 

Referenced by CL_Surface_Generic::ensure_surface_prepared().

virtual CL_CardSurface* CL_DisplayCard_Generic::create_cardsurface_video ( CL_SurfaceProvider * provider ) [virtual]
 

Referenced by CL_Surface_Generic::ensure_surface_prepared().

virtual CL_Blitters CL_DisplayCard_Generic::create_hw_blitters ( CL_SurfaceProvider * provider ) [protected, virtual]
 

Reimplemented in CL_DisplayCard_DirectDraw.

virtual CL_Blitters CL_DisplayCard_Generic::create_hw_dynamic_blitters ( CL_SurfaceProvider * provider ) [protected, virtual]
 

virtual void CL_DisplayCard_Generic::draw_line ( int x1,
int y1,
int x2,
int y2,
float r,
float g,
float b,
float a ) [virtual]
 

param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

Reimplemented from CL_DisplayCard.

virtual void CL_DisplayCard_Generic::draw_rect ( int x1,
int y1,
int x2,
int y2,
float r,
float g,
float b,
float a ) [virtual]
 

param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

Reimplemented from CL_DisplayCard.

Reimplemented in CL_DisplayCard_Be.

virtual void CL_DisplayCard_Generic::fill_rect ( int x1,
int y1,
int x2,
int y2,
float r,
float g,
float b,
float a ) [virtual]
 

Reimplemented from CL_DisplayCard.

Reimplemented in CL_DisplayCard_Be, and CL_DisplayCard_DirectDraw.

void CL_DisplayCard_Generic::fill_rect_opaque ( int x1,
int y1,
int x2,
int y2,
float r,
float g,
float b,
float a ) [private]
 

void CL_DisplayCard_Generic::frontbuffer_lock ( )
 

void CL_DisplayCard_Generic::frontbuffer_unlock ( )
 

int CL_DisplayCard_Generic::get_bpp ( ) [inline, virtual]
 

retval: Height of video mode.

Reimplemented from CL_DisplayCard.

Definition at line 54 of file displaycard_generic.h.

int CL_DisplayCard_Generic::get_card_no ( ) [inline, virtual]
 

retval: Videomemory available, or -1 if unknown.

Reimplemented from CL_DisplayCard.

Definition at line 50 of file displaycard_generic.h.

CL_ClipRect CL_DisplayCard_Generic::get_clip_rect ( ) [inline, virtual]
 

param: rect - The new clipping rectangle to be with the old one and then used.

Reimplemented from CL_DisplayCard.

Definition at line 69 of file displaycard_generic.h.

virtual CL_Target* CL_DisplayCard_Generic::get_frontbuffer ( ) [pure virtual]
 

Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib.

Referenced by pop_translate_offset(), push_translate_offset(), and set_translate_offset().

int CL_DisplayCard_Generic::get_height ( ) [inline, virtual]
 

retval: Width of video mode.

Reimplemented from CL_DisplayCard.

Definition at line 53 of file displaycard_generic.h.

Referenced by CL_DisplayCard_DirectDraw::CL_FrontbufferTarget_DX::get_height().

CL_Signal_v1< const CL_Rect &> & CL_DisplayCard_Generic::get_sig_paint<const CL_Rect &> ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 244 of file displaycard_generic.h.

CL_Signal_v2< int, int > & CL_DisplayCard_Generic::get_sig_resize<int, int> ( ) [inline, virtual]
 

param: x1 - Leftmost x-coordinate. //FIXMEparam: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.

Reimplemented from CL_DisplayCard.

Definition at line 243 of file displaycard_generic.h.

int CL_DisplayCard_Generic::get_translate_offset_x ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 216 of file displaycard_generic.h.

int CL_DisplayCard_Generic::get_translate_offset_y ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 217 of file displaycard_generic.h.

int CL_DisplayCard_Generic::get_width ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 52 of file displaycard_generic.h.

Referenced by CL_DisplayCard_DirectDraw::CL_FrontbufferTarget_DX::get_width().

void CL_DisplayCard_Generic::hide_system_cursor ( ) [inline, virtual]
 

Reimplemented in CL_DisplayCard_Win32Compatible.

Definition at line 120 of file displaycard_generic.h.

bool CL_DisplayCard_Generic::is_fullscreen ( ) [inline, virtual]
 

Definition at line 55 of file displaycard_generic.h.

void CL_DisplayCard_Generic::pop_clip_rect ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 80 of file displaycard_generic.h.

void CL_DisplayCard_Generic::pop_translate_offset ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 230 of file displaycard_generic.h.

void CL_DisplayCard_Generic::push_clip_rect ( const CL_ClipRect & clip ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 63 of file displaycard_generic.h.

void CL_DisplayCard_Generic::push_clip_rect ( ) [inline, virtual]
 

retval: Depth of video mode.

Reimplemented from CL_DisplayCard.

Definition at line 58 of file displaycard_generic.h.

void CL_DisplayCard_Generic::push_translate_offset ( int x,
int y ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 204 of file displaycard_generic.h.

void CL_DisplayCard_Generic::push_translate_offset ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 192 of file displaycard_generic.h.

void CL_DisplayCard_Generic::set_clip_rect ( const CL_ClipRect & clip ) [inline, virtual]
 

retval: The current clipping rectangle.

Reimplemented from CL_DisplayCard.

Definition at line 74 of file displaycard_generic.h.

void CL_DisplayCard_Generic::set_gfxmode ( int width,
int height,
int bpp,
bool fullscreen,
bool allow_resize ) [inline, protected]
 

Definition at line 155 of file displaycard_generic.h.

void CL_DisplayCard_Generic::set_resize ( int width,
int height ) [inline, protected]
 

Definition at line 167 of file displaycard_generic.h.

void CL_DisplayCard_Generic::set_translate_offset ( int x,
int y ) [inline, virtual]
 

Reimplemented from CL_DisplayCard.

Definition at line 218 of file displaycard_generic.h.

void CL_DisplayCard_Generic::show_system_cursor ( ) [inline, virtual]
 

Reimplemented in CL_DisplayCard_Win32Compatible.

Definition at line 110 of file displaycard_generic.h.

void CL_DisplayCard_Generic::signal_postflip ( ) [inline, protected]
 

Definition at line 143 of file displaycard_generic.h.

void CL_DisplayCard_Generic::signal_preflip ( ) [inline, protected]
 

Definition at line 133 of file displaycard_generic.h.

virtual void CL_DisplayCard_Generic::sync_buffers ( ) [virtual]
 

Reimplemented from CL_DisplayCard.

Reimplemented in CL_DisplayCard_DirectDraw.


Member Data Documentation

friend CL_DisplayCard_Generic::CL_CardSurface_Blitter [protected]
 

Definition at line 153 of file displaycard_generic.h.

std::list<CL_FlipDisplayCallback_Generic*> CL_DisplayCard_Generic::callbacks [protected]
 

Definition at line 131 of file displaycard_generic.h.

bool CL_DisplayCard_Generic::m_allow_resize [private]
 

Definition at line 253 of file displaycard_generic.h.

int CL_DisplayCard_Generic::m_bpp [private]
 

Definition at line 251 of file displaycard_generic.h.

int CL_DisplayCard_Generic::m_card_no [private]
 

Definition at line 247 of file displaycard_generic.h.

std::deque<CL_ClipRect> CL_DisplayCard_Generic::m_clip_stack [protected]
 

Definition at line 189 of file displaycard_generic.h.

CL_ClipRect CL_DisplayCard_Generic::m_cur_clip [protected]
 

Definition at line 188 of file displaycard_generic.h.

bool CL_DisplayCard_Generic::m_fullscreen [private]
 

Definition at line 254 of file displaycard_generic.h.

int CL_DisplayCard_Generic::m_height [private]
 

Definition at line 250 of file displaycard_generic.h.

CL_Signal_v1<const CL_Rect &> CL_DisplayCard_Generic::m_sig_paint [private]
 

Definition at line 257 of file displaycard_generic.h.

CL_Signal_v2<int, int> CL_DisplayCard_Generic::m_sig_resize [private]
 

Definition at line 256 of file displaycard_generic.h.

Referenced by set_resize().

int CL_DisplayCard_Generic::m_width [private]
 

Definition at line 249 of file displaycard_generic.h.


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