Provides the image needed by CL_Surface.
Description
The CL_SurfaceProvider is the interface CL_Surface uses to retrieve the
image when needed. Because the surface provider is independent of the
display targets pixel format, it is quite easy to write your own surface
provider. ClanLib Layer 2 also provides a set of surface providers
including PCX, PNG and Targa image loaders.
Class members
virtual ~CL_SurfaceProvider()
virtual int get_pitch()
virtual int get_translate_x()
virtual int get_translate_y()
virtual int get_width()
virtual int get_height()
virtual int get_no_sprs()
virtual EPixelFormat get_pixel_format()
virtual CL_Palette *get_palette()
virtual int get_transcol()
virtual void *get_surface_data()
virtual void lock()
virtual void unlock()
int get_bytes_pr_pixel()
bool pixel_transparent(
int x,
int y,
int spr_no=0)
See Also
CL_Surface | - | Surface class in ClanLib. |
Back to index
|