![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Empty surfaceprovider to be used as a rendering target.
Contained in: global
Derived from:
CL_SurfaceProvider
Derived by:
none
Group: Display (Surface Providers)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
static CL_Surface* | create | (int width, int height, int no_sprs = 1, int red_mask = 0xff000000, int green_mask = 0x00ff0000, int blue_mask = 0x0000ff00, int alpha_mask = 0x000000ff, bool use_transcol = false, unsigned int transcol = 0); |
CL_Canvas | (int width, int height, int no_sprs = 1, int red_mask = 0xff000000, int green_mask = 0x00ff0000, int blue_mask = 0x0000ff00, int alpha_mask = 0x000000ff, bool use_transcol = false, unsigned int transcol = 0); | |
virtual | ~CL_Canvas | (); |
Attributes: |
||
virtual unsigned int | get_width | () const; |
virtual unsigned int | get_height | () const; |
virtual unsigned int | get_num_frames | () 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 unsigned int | get_pitch | () const; |
Operations: |
||
virtual bool | is_indexed | () const; |
virtual void | set_palette | (CL_Palette*); |
virtual CL_Palette* | get_palette | () const; |
virtual void | set_src_colorkey | (unsigned int transcol); |
virtual bool | uses_src_colorkey | () const; |
virtual unsigned int | get_src_colorkey | () const; |
virtual void* | get_data | () const; |
virtual void | lock | (); |
virtual void | unlock | (); |
width - the width of the surface to be created
height - the height of the surface to be created
no_sprs - the number of sprites the surface will have
red_mask - the bit mask for red
blue_mask - the bit mask for blue
green_mask - the bit mask for green
alpha_mask - the bit mask for the alpha
use_transcol - whether the surface should use source key transparancy
transcol - the (optional) source key color
width - the width of the surface to be created
height - the height of the surface to be created
no_sprs - the number of sprites the surface will have
red_mask - the bit mask for red
blue_mask - the bit mask for blue
green_mask - the bit mask for green
alpha_mask - the bit mask for the alpha
use_transcol - whether the surface should use source key transparancy
transcol - the (optional) source key color
Returns - NULL