1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<xml>
<head>
<title>Core Resources</title>
</head>
<body>
<p>ClanLib got the following core resource types:</p>
<h3><string> resource</h3>
<pre>
<string name="my_string" value="value" />
</pre>
<p>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.</p>
<h3><integer> resource</h3>
<pre>
<integer name="my_integer" value="value" />
</pre>
<p>Integer resources work the same way a string resources, except they
contain integer values instead of string values and are retrieved using
CL_Integer.</p>
<h3><float> resource</h3>
<pre>
<float name="my_float" value="value" />
</pre>
<p>Float resources work the same way a string resources, except they
contain float values instead of string values and are retrieved using
CL_Float.</p>
<h3><boolean> resource</h3>
<pre>
<boolean name="my_boolean" value="value" />
</pre>
<p>Boolean resources work just like the integer resource, but for booleans
and via CL_Boolean instead.</p>
<h3><raw> resource</h3>
<pre>
<raw name="my_raw" file="filename" />
</pre>
<p>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.</p>
</body>
</xml>
|