![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Target class in ClanLib.
Contained in: global
Derived from:
none
Derived by:
CL_SurfaceProvider
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
CL_Target | (); | |
virtual | ~CL_Target | (); |
Attributes: |
||
virtual bool | is_video | () const; |
virtual void | lock | (); |
virtual void | unlock | (); |
virtual void* | get_data | () const; |
virtual unsigned int | get_num_frames | () const; |
virtual unsigned int | get_width | () const; |
virtual unsigned int | get_height | () const; |
virtual unsigned int | get_pitch | () const; |
virtual unsigned int | get_depth | () const; |
virtual unsigned int | get_bytes_per_pixel | () const; |
virtual bool | is_indexed | () const; |
virtual unsigned int | get_red_mask | () const; |
virtual unsigned int | get_green_mask | () const; |
virtual unsigned int | get_blue_mask | () const; |
virtual unsigned int | get_alpha_mask | () const; |
virtual CL_Palette* | get_palette | () const; |
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 | () const; |
virtual int | get_translate_offset_y | () const; |
virtual void | set_translate_offset | (int x, int y); |
virtual void | pop_translate_offset | (); |
Operations: |
||
void | draw_pixel | (int x1, int y1, int color); |
virtual void | draw_pixel | (int x, int y, float r, float g, float b, float a = 1.0); |
virtual void | get_pixel | (int x, int y, float* r, float* g, float* b, float* a); |
virtual int | get_pixel | (int x, int y); |
void | flip_vertical | (); |
void | flip_horizontal | (); |
virtual void | fill_rect | (int x1, int y1, int x2, int y2, float r, float g, float b, float a = 1.0); |
virtual void | draw_rect | (int x1, int y1, int x2, int y2, float r, float g, float b, float a = 1.0); |
virtual void | draw_line | (int x1, int y1, int x2, int y2, float r, float g, float b, float a = 1.0); |
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.
Returns - The current clipping rectangle.
Returns - A pointer that points to the beginning of the target pixel data.
Returns - True if stored in video memory, false otherwise.
rect - The new clipping rectangle to be clipped with the current cliprect and then used.