Home | All Classes | Grouped Classes | Index | Search

Class CL_ResourceData

Data object attached to a resource. More...

Derived from: none
Derived by: CL_ResourceData_Boolean CL_ResourceData_Float CL_ResourceData_Integer CL_ResourceData_Raw CL_ResourceData_String
Group: Core (Resources)

#include <ClanLib/core.h>

Construction:

CL_ResourceData

Constructs a resource data object.

Attributes:

get_resource

Get Resource object.

Operations:

on_load

Called first time CL_Resource::load() is called on the resource.

on_unload

Called last time CL_Resource::unload() is called on the resource.

Detailed description:

!group=Core/Resources! !header=core.h!

The CL_ResourceData class represents a data object connected to a resource. A resource can have one or more of these data objects attached, and they can be retrieved by making a call to CL_Resource::get_data.

Resource data objects are used to contain extra data associated with a certain resource. For instance, the surface resource has an object attached by the name "surface" that contain the loaded surface's data.



Questions or comments, write to the
ClanLib mailing list.