#include <canvas.h>
Inheritance diagram for CL_Canvas:


Public Methods | |
| 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) | |
| param: width - the width of the surface to be createdparam: height - the height of the surface to be createdparam: no_sprs - the number of sprites the surface will haveparam: red_mask - the bit mask for redparam: blue_mask - the bit mask for blueparam: green_mask - the bit mask for greenparam: alpha_mask - the bit mask for the alpha param: use_transcol - whether the surface should use source key transparancyparam: transcol - the (optional) source key color. | |
| virtual | ~CL_Canvas () |
| param: width - the width of the surface to be createdparam: height - the height of the surface to be createdparam: no_sprs - the number of sprites the surface will haveparam: red_mask - the bit mask for redparam: blue_mask - the bit mask for blueparam: green_mask - the bit mask for greenparam: alpha_mask - the bit mask for the alpha param: use_transcol - whether the surface should use source key transparancyparam: transcol - the (optional) source key color. | |
| virtual unsigned int | get_width () const |
| virtual unsigned int | get_height () const |
| virtual unsigned int | get_num_frames () const |
| retval: A pointer that points to the beginning of the target pixel data. | |
| 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 |
| virtual bool | is_indexed () const |
| virtual void | set_palette (CL_Palette *palette) |
| virtual CL_Palette* | get_palette () const |
| virtual void | set_src_colorkey (unsigned int transcol) |
| virtual bool | uses_src_colorkey () const |
| retval: The y-offset of the surface data. | |
| virtual unsigned int | get_src_colorkey () const |
| virtual void* | get_data () const |
| virtual void | lock () |
| retval: True if stored in video memory, false otherwise. | |
| virtual void | unlock () |
Static Public Methods | |
| 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) |
Private Attributes | |
| int | width |
| int | height |
| int | no_sprs |
| int | transcol |
| int | red_mask |
| int | green_mask |
| int | blue_mask |
| int | alpha_mask |
| EPixelFormat | pixelformat |
| unsigned char* | data |
| int | bpp |
| bool | use_transcol |
Definition at line 27 of file canvas.h.
|
|
param: width - the width of the surface to be createdparam: height - the height of the surface to be createdparam: no_sprs - the number of sprites the surface will haveparam: red_mask - the bit mask for redparam: blue_mask - the bit mask for blueparam: green_mask - the bit mask for greenparam: alpha_mask - the bit mask for the alpha param: use_transcol - whether the surface should use source key transparancyparam: transcol - the (optional) source key color.
Definition at line 87 of file canvas.h. Referenced by create(). |
|
|
param: width - the width of the surface to be createdparam: height - the height of the surface to be createdparam: no_sprs - the number of sprites the surface will haveparam: red_mask - the bit mask for redparam: blue_mask - the bit mask for blueparam: green_mask - the bit mask for greenparam: alpha_mask - the bit mask for the alpha param: use_transcol - whether the surface should use source key transparancyparam: transcol - the (optional) source key color.
|
|
|
Definition at line 51 of file canvas.h. Referenced by toluaI_CL_Canvas_create0(). |
|
|
Reimplemented from CL_Target. Definition at line 152 of file canvas.h. Referenced by toluaI_CL_Canvas_get_alpha_mask0(). |
|
|
Reimplemented from CL_Target. Definition at line 149 of file canvas.h. Referenced by toluaI_CL_Canvas_get_blue_mask0(). |
|
|
Reimplemented from CL_Target. Definition at line 177 of file canvas.h. Referenced by toluaI_CL_Canvas_get_data0(). |
|
|
Reimplemented from CL_Target. Definition at line 146 of file canvas.h. Referenced by toluaI_CL_Canvas_get_green_mask0(). |
|
|
Reimplemented from CL_Target. Definition at line 137 of file canvas.h. Referenced by toluaI_CL_Canvas_get_height0(). |
|
|
retval: A pointer that points to the beginning of the target pixel data.
Reimplemented from CL_Target. Definition at line 140 of file canvas.h. Referenced by toluaI_CL_Canvas_get_num_frames0(). |
|
|
Reimplemented from CL_Target. Definition at line 166 of file canvas.h. Referenced by toluaI_CL_Canvas_get_palette0(). |
|
|
Reimplemented from CL_Target. Definition at line 155 of file canvas.h. Referenced by toluaI_CL_Canvas_get_pitch0(). |
|
|
Reimplemented from CL_Target. Definition at line 143 of file canvas.h. Referenced by toluaI_CL_Canvas_get_red_mask0(). |
|
|
Reimplemented from CL_SurfaceProvider. Definition at line 174 of file canvas.h. Referenced by toluaI_CL_Canvas_get_src_colorkey0(). |
|
|
Reimplemented from CL_Target. Definition at line 134 of file canvas.h. Referenced by toluaI_CL_Canvas_get_width0(). |
|
|
Reimplemented from CL_Target. Definition at line 158 of file canvas.h. Referenced by toluaI_CL_Canvas_is_indexed0(). |
|
|
retval: True if stored in video memory, false otherwise.
Reimplemented from CL_Target. Definition at line 182 of file canvas.h. Referenced by toluaI_CL_Canvas_lock0(). |
|
|
Definition at line 163 of file canvas.h. Referenced by toluaI_CL_Canvas_set_palette0(). |
|
|
Definition at line 170 of file canvas.h. Referenced by toluaI_CL_Canvas_set_src_colorkey0(). |
|
|
Reimplemented from CL_Target. Definition at line 186 of file canvas.h. Referenced by toluaI_CL_Canvas_unlock0(). |
|
|
retval: The y-offset of the surface data.
Reimplemented from CL_SurfaceProvider. Definition at line 173 of file canvas.h. Referenced by toluaI_CL_Canvas_uses_src_colorkey0(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001