![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Main Display 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_Display | (); |
Operations (Display Functions): |
||
static void | flip_display | (bool sync=false); |
static void | put_display | (const CL_Rect& rect); |
static void | sync_buffers | (); |
static void | clear_display | (float red=0, float green=0, float blue=0, float alpha=1); |
static void | set_palette | (CL_Palette* palette); |
static CL_Palette* | get_palette | (); |
static void | select_card | (CL_DisplayCard* card); |
static void | set_videomode | (CL_VidMode* mode); |
static void | set_videomode | (int width, int height, int bpp, bool fullscreen = false, bool allow_resize = false, bool video_memory = true); |
Attributes: |
||
static CL_DisplayCard* | get_current_card | (); |
static CL_Target* | get_target | (); |
static int | get_width | (); |
static int | get_height | (); |
static int | get_bpp | (); |
static void | push_clip_rect | (); |
static void | push_clip_rect | (const CL_ClipRect& rect); |
static CL_ClipRect | get_clip_rect | (); |
static void | set_clip_rect | (const CL_ClipRect& rect); |
static void | pop_clip_rect | (); |
static void | push_translate_offset | (); |
static void | push_translate_offset | (int x, int y); |
static int | get_translate_offset_x | (); |
static int | get_translate_offset_y | (); |
static void | set_translate_offset | (int x, int y); |
static void | pop_translate_offset | (); |
Operations (Draw functions): |
||
static void | draw_rect | (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0f); |
static void | fill_rect | (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0f); |
static void | draw_line | (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0f); |
static void | fill_rect | (int x1, int y1, int x2, int y2, CL_Surface* fill_surface, int focus_x=0, int focus_y=0); |
Signals: |
||
static CL_Signal_v2<int, int>& | sig_resized | (); |
static 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.
x1 - Leftmost x-coordinate.
y1 - Upper y-coordinate.
x2 - Rightmost x-coordinate.
y2 - Lower y-coordinate.
fill_surface - surface used to fill the area (tiled)
focus_x - destination x offset used to offset (0, 0) in fill_surface (controls tiling position)
focus_y - destination y offset used to offset (0, 0) in fill_surface (controls tiling position)
sync - VSync on/off
Returns - Depth of current video mode.
Returns - The current clipping rectangle.
Returns - Current display card.
Returns - Height of current video mode.
Returns - The system palette.
Returns - NULL or the framebuffer
Returns - Width of current video mode.
rect - The new clipping rectangle to be with the old one and then used.
card - new selected display card.
palette - Palette to use as new system palette.
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.
mode - videomode to be changed to.
See also: CL_VidMode - Video mode description class.