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

CL_DisplayCard_Be Class Reference

#include <displaycard_be.h>

Inheritance diagram for CL_DisplayCard_Be:

Inheritance graph
[legend]
Collaboration diagram for CL_DisplayCard_Be:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_DisplayCard_Be (int card_no)
virtual ~CL_DisplayCard_Be ()
virtual void flip_display (bool sync=false)
virtual void put_display (const class CL_Rect &rect)
 param: sync - VSync on/off.

virtual void set_palette (CL_Palette *palette)
 param: red - red component of the color.param: green - green component of the color.param: blue - blue component of the color.param: alpha - alpha (transparency) component of the color.

virtual CL_Paletteget_palette ()
 param: palette - Palette to use as new system palette.

virtual void set_videomode (int width, int height, int bpp, bool fullscreen, bool allow_resize, bool video_memory)
 param: mode - videomode to be changed to.

virtual bool is_initialized ()
 param: width - width in pixels of the new video mode.param: height - height in pixels of the new video mode.param: bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)param: video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot.

virtual std::string get_name ()
 retval: Returns the list of videomodes.

virtual int get_total_memory ()
 retval: Returns the card name.

virtual const std::list<CL_VidMode *>& get_videomodes ()
virtual CL_Targetget_target ()
 retval: true if initialized.

virtual CL_Targetget_frontbuffer ()
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 clear_display (float red=0, float green=0, float blue=0, float alpha=1)

Private Attributes

CL_Palettem_palette
CL_Target_Bem_target
ClanWindowScreenclws

Constructor & Destructor Documentation

CL_DisplayCard_Be::CL_DisplayCard_Be ( int card_no )
 

virtual CL_DisplayCard_Be::~CL_DisplayCard_Be ( ) [virtual]
 


Member Function Documentation

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

Reimplemented from CL_DisplayCard_Generic.

virtual void CL_DisplayCard_Be::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_Generic.

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

Reimplemented from CL_DisplayCard_Generic.

virtual void CL_DisplayCard_Be::flip_display ( bool sync = false ) [virtual]
 

Reimplemented from CL_DisplayCard.

CL_Target * CL_DisplayCard_Be::get_frontbuffer ( ) [inline, virtual]
 

Reimplemented from CL_DisplayCard_Generic.

Definition at line 47 of file displaycard_be.h.

std::string CL_DisplayCard_Be::get_name ( ) [inline, virtual]
 

retval: Returns the list of videomodes.

Reimplemented from CL_DisplayCard.

Definition at line 39 of file displaycard_be.h.

virtual CL_Palette* CL_DisplayCard_Be::get_palette ( ) [virtual]
 

param: palette - Palette to use as new system palette.

Reimplemented from CL_DisplayCard.

CL_Target * CL_DisplayCard_Be::get_target ( ) [inline, virtual]
 

retval: true if initialized.

Reimplemented from CL_DisplayCard.

Definition at line 46 of file displaycard_be.h.

int CL_DisplayCard_Be::get_total_memory ( ) [inline, virtual]
 

retval: Returns the card name.

Reimplemented from CL_DisplayCard.

Definition at line 40 of file displaycard_be.h.

virtual const std::list<CL_VidMode *>& CL_DisplayCard_Be::get_videomodes ( ) [virtual]
 

Reimplemented from CL_DisplayCard.

virtual bool CL_DisplayCard_Be::is_initialized ( ) [virtual]
 

param: width - width in pixels of the new video mode.param: height - height in pixels of the new video mode.param: bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)param: video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot.

Reimplemented from CL_DisplayCard.

virtual void CL_DisplayCard_Be::put_display ( const class CL_Rect & rect ) [virtual]
 

param: sync - VSync on/off.

Reimplemented from CL_DisplayCard.

virtual void CL_DisplayCard_Be::set_palette ( CL_Palette * palette ) [virtual]
 

param: red - red component of the color.param: green - green component of the color.param: blue - blue component of the color.param: alpha - alpha (transparency) component of the color.

Reimplemented from CL_DisplayCard.

virtual void CL_DisplayCard_Be::set_videomode ( int width,
int height,
int bpp,
bool fullscreen,
bool allow_resize,
bool video_memory ) [virtual]
 

param: mode - videomode to be changed to.

Reimplemented from CL_DisplayCard.


Member Data Documentation

ClanWindowScreen* CL_DisplayCard_Be::clws [private]
 

Definition at line 56 of file displaycard_be.h.

CL_Palette* CL_DisplayCard_Be::m_palette [private]
 

Definition at line 54 of file displaycard_be.h.

CL_Target_Be* CL_DisplayCard_Be::m_target [private]
 

Definition at line 55 of file displaycard_be.h.


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