![]() | |
![]() | ![]() |
CL_SurfaceProviderThe image source interface. Parents: public CL_Target Description
This is the interface used by a surface to load an image. For more information about the relationship between a surface and its provider, please the CL_Surface class description. The surface provider interface extends the renderer target interface with some blitting related functions. Currently, this is translation of the image and colorkey transparency. ClanLib includes a large range of surface providers that can load an image from various sources: PCX, TGA, PNG and so on. If you want to be able to load your (newly created) surface provider as a resource, you have to implement the CL_ResourceSource_Surface as well. Class membersstatic CL_SurfaceProvider *load( const char *resource_id, CL_ResourceManager *manager) See AlsoNone |