CL_EmptySurfaceProvider::CL_EmptySurfaceProvider
Syntax
CL_EmptySurfaceProvider(
int _width,
int _height,
int _no_sprs,
int _trans_col,
EPixelFormat type=PAL8);
Parameters
_width | - | The width of the surface in pixels |
_height | - | The height of the surface in pixels |
_no_sprs | - | The number of subsprites the image contains, should be at least 1 or greater |
_trans_col | - | The color index of the color which should be masked transparent, but PAL8 isn't supported at the moment so say -1 here. |
pixelformat | - | Storage format for the color values of the pixel (RGBA8888, ...) |
Return value
none
Description
Creates an empty surface provider, allocates the needed memory and clears all pixels to 0 (transparent)
Back to index
|