Home | All Classes | Grouped Classes | Index | Search
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:
Constructs a resource data object. |
Attributes:
Get Resource object. |
Operations:
Called first time CL_Resource::load() is called on the resource. | |
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.