ClanSoft logo
ClanSoft logo

    CL_SurfaceProvider

The 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 members

static CL_SurfaceProvider *load(
         const char *resource_id,
        CL_ResourceManager *manager)
virtual ~CL_SurfaceProvider()
virtual int get_translate_x()
virtual int get_translate_y()
virtual bool uses_src_colorkey()
virtual unsigned int get_src_colorkey()

See Also

None


Back to index



This page was built using the Perceps documentation system.