![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
The display card class.
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
virtual | ~CL_DisplayCard | (); |
Operations (Display Functions): |
||
virtual void | flip_display | (bool sync=false); |
virtual void | put_display | (const class CL_Rect& rect); |
virtual void | sync_buffers | (); |
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, bool fullscreen = true, bool allow_resize = false, bool video_memory = true); |
Attributes: |
||
virtual const std::list<CL_VidMode*>& | get_videomodes | (); |
virtual std::string | get_name | (); |
virtual int | get_total_memory | (); |
virtual int | get_card_no | (); |
virtual bool | is_initialized | (); |
virtual CL_Target* | get_target | (); |
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 | 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 | (); |
Operations (Draw Functions): |
||
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); |
virtual void | draw_line | (int x1, int y1, int x2, int y2, float r, float g, float b, float a); |
Signals: |
||
virtual CL_Signal_v2<int, int>& | sig_resized | (); |
virtual CL_Signal_v1<const CL_Rect& >& | sig_paint | (); |
red - red component of the color.
green - green component of the color.
blue - blue component of the color.
alpha - alpha (transparency) component of the color.
x1 - Leftmost x-coordinate. //FIXME
y1 - Upper y-coordinate.
x2 - Rightmost x-coordinate.
y2 - Lower y-coordinate.
r - Red component of the filled color.
g - Green component of the filled color.
b - Blue component of the filled color.
a - Alpha component of the filled color.
x1 - Leftmost x-coordinate.
y1 - Upper y-coordinate.
x2 - Rightmost x-coordinate.
y2 - Lower y-coordinate.
r - Red component of the filled color.
g - Green component of the filled color.
b - Blue component of the filled color.
a - Alpha component of the filled color.
x1 - Leftmost x-coordinate.
y1 - Upper y-coordinate.
x2 - Rightmost x-coordinate.
y2 - Lower y-coordinate.
r - Red component of the filled color.
g - Green component of the filled color.
b - Blue component of the filled color.
a - Alpha component of the filled color.
sync - VSync on/off
Returns - Depth of video mode.
Returns - Card number.
Returns - The current clipping rectangle.
Returns - Height of video mode.
Returns - Returns the card name.
Returns - The system palette.
Returns - NULL if Framebuffer access is not possible, CL_Target if it is
Returns - Videomemory available, or -1 if unknown.
Returns - Returns the list of videomodes.
Returns - Width of video mode.
Returns - true if initialized.
rect - The new clipping rectangle to be with the old one and then used.
palette - Palette to use as new system palette.
mode - videomode to be changed to.
width - width in pixels of the new video mode.
height - height in pixels of the new video mode.
bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)
video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot.