File: core_resources.xml

package info (click to toggle)
clanlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 28,372 kB
  • ctags: 16,520
  • sloc: cpp: 101,145; sh: 8,752; xml: 6,410; makefile: 1,740; ansic: 463; perl: 424; php: 247
file content (63 lines) | stat: -rw-r--r-- 1,565 bytes parent folder | download | duplicates (7)
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>&lt;string&gt; resource</h3>

<pre>
&lt;string name="my_string" value="value" /&gt;
</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>&lt;integer&gt; resource</h3>

<pre>
&lt;integer name="my_integer" value="value" /&gt;
</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>&lt;float&gt; resource</h3>

<pre>
&lt;float name="my_float" value="value" /&gt;
</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>&lt;boolean&gt; resource</h3>

<pre>
&lt;boolean name="my_boolean" value="value" /&gt;
</pre>

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

<h3>&lt;raw&gt; resource</h3>

<pre>
&lt;raw name="my_raw" file="filename" /&gt;
</pre>

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

</body>
</xml>