# Core Resources

ClanLib got the following core resource types:

### &ltstring> 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.

### &ltinteger> 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.

### &ltfloat> 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.

### &ltboolean> resource

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

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

### &ltraw> 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.