ClanSoft logo
ClanSoft logo

    CL_DisplayCard

The display card class.

Description

This class represents a display card in ClanLib. It is mainly used to set the videomode, flip the display and do simple graphics operations such as filled rectangles or drawing lines.

If you're always only using one display card at the time, you may want to consider using the static functions in CL_Display instead. They do exactly the same, but operates on a selected display card instead (default the primary card). This saves you from passing around a pointer to the displaycard.

Class members

virtual CL_List<CL_VidMode> get_videomodes()
virtual CL_String get_name()
virtual int get_total_memory()
virtual int get_card_no()
virtual ~CL_DisplayCard()
virtual void flip_display(bool sync=false)
virtual void clear_display( float red=0, float green=0, float blue=0, float alpha=1)
virtual void set_palette(CL_Palette *palette)
virtual CL_Palette *get_palette()
virtual void set_videomode(CL_VidMode *mode)
virtual void set_videomode( int width, int height, int bpp)
virtual bool is_initialized()
virtual int get_width()
virtual int get_height()
virtual int get_bpp()
virtual void push_clip_rect()
virtual void push_clip_rect(const CL_ClipRect &rect)
virtual CL_ClipRect get_clip_rect()
virtual void set_clip_rect(const CL_ClipRect &rect)
virtual void pop_clip_rect()
virtual void fill_rect( int x1, int y1, int x2, int y2, float r, float g, float b, float a)
virtual void draw_line( int x1, int y1, int x2, int y2, float r, float g, float b, float a)
virtual void sync_buffers()

See Also

CL_Display-The display card wrapper class in ClanLib.
CL_Surface-Surface class in ClanLib.

Back to index



This page was built using the Perceps documentation system.