![]() | |
![]() | ![]() |
CL_EmptySurfaceProviderEmpty/canvas surface provider. Parents: public CL_SurfaceProvider_Generic DescriptionIts usefull for the creation of static surface at runtime (for example gradients, etc.). It is not intendend to be used for dynamic surfaces (ie which will be regenerated every frame). To create a surface, first create a new EmptySurfaceProvider, than lock() the provider, write your data to the pointer returned by get_surface_data(), unlock() the provider and call CL_Surface::create(provider) to generate a the surface. Class membersstatic CL_Surface *create( int width, int height, int no_sprs, int trans_col = -1, EPixelFormat pixelformat=PAL8) See Also
|