Reference

CL_ResourceSource_Surface(3)

Plugin interface for surface resources.

NAME

CL_ResourceSource_Surface - Plugin interface for surface resources.

DESCRIPTION

CL_ResourceSource_Surface is a plugin interface for the surface resource type.

Applications and libraries can inherit this class to add their own customized surface sources. Just as any other plugin in ClanLib, the application or library has to keep one global instance of each plugin - otherwise the resource manager will not be able to use the new resource source.

CLASS MEMBERS

CL_ResourceSource_Surface()
virtual ~CL_ResourceSource_Surface()
virtual const char *get_name()
virtual bool can_create(
 std::string file_extension,
CL_ResourceOptions *options)

virtual CL_SurfaceProvider *create(
 std::string filename,
CL_ResourceOptions *options,
CL_ResourceManager *parent)

MEMBERS WITH DESCRIPTIONS

CL_ResourceSource_Surface()
Description:

virtual ~CL_ResourceSource_Surface()
Description:

virtual const char *get_name()
Description:

virtual bool can_create(
 std::string file_extension,
CL_ResourceOptions *options)

Description:

virtual CL_SurfaceProvider *create(
 std::string filename,
CL_ResourceOptions *options,
CL_ResourceManager *parent)

Description:

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.