Home | All Classes | Grouped Classes | Index | Search

Class CL_ResourceType

Resource type handler class. More...

Derived from: none
Derived by: none
Group: Core (Resources)

#include <ClanLib/core.h>

Construction:

CL_ResourceType

Constructs and registers a resource type.

Attributes:

get_type

Returns the resource type name.

resource_types static

Global static list of all registered resource types.

Operations:

connect_data

Connect resource data to resource.

Detailed description:

CL_ResourceType interface is used to attach resource data to a resource of a given resource type.

When a CL_ResourceType object is constructed, it will register itself as a handler for the given resource type, and when a resource file is loaded, the resource manager will ask the CL_ResourceType object to connect CL_ResourceData objects to matching resources.



Questions or comments, write to the
ClanLib mailing list.