#

## Core Resources

ClanLib got the following core resource types:

### <string> resource

    <string name="my_string" value="value" />

String resources allow an application to easilly use text strings inside the program specified in a resource file. CL_String::load is used to extract the value specified in a string resource.

### <integer> resource

    <integer name="my_integer" value="value" />

Integer resources work the same way a string resources, except they contain integer values instead of string values and are retrieved using CL_Integer.

### <float> resource

    <float name="my_float" value="value" />

Float resources work the same way a string resources, except they contain float values instead of string values and are retrieved using CL_Float.

### <boolean> resource

    <boolean name="my_boolean" value="value" />

Boolean resources work just like the integer resource, but for booleans and via CL_Boolean instead.

### <raw> resource

    <raw name="my_raw" file="filename" />

The raw resource is a way to access a file via the resource system. A <raw> resource is accessed inside ClanLib using the CL_Raw class. In CL_Raw the file is accessable as a std::vector<unsigned char> (binary array). Alternatively the data can be used as an input source by constructing a CL_InputSource_Raw object.

Questions or comments, write to the ClanLib mailing list.