diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html | 727 |
1 files changed, 727 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html new file mode 100644 index 0000000..d7efa02 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html | |||
@@ -0,0 +1,727 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | <title>plugins</title> | ||
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> | ||
7 | <link rel="start" href="index.html" title="libg3d Reference Manual"> | ||
8 | <link rel="up" href="ch02.html" title="Plugin interface"> | ||
9 | <link rel="prev" href="ch02.html" title="Plugin interface"> | ||
10 | <link rel="next" href="libg3d-stream.html" title="stream"> | ||
11 | <meta name="generator" content="GTK-Doc V1.10 (XML mode)"> | ||
12 | <link rel="stylesheet" href="style.css" type="text/css"> | ||
13 | <link rel="chapter" href="ch01.html" title="Application interface"> | ||
14 | <link rel="chapter" href="ch02.html" title="Plugin interface"> | ||
15 | </head> | ||
16 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | ||
17 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> | ||
18 | <tr valign="middle"> | ||
19 | <td><a accesskey="p" href="ch02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> | ||
21 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
22 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
23 | <td><a accesskey="n" href="libg3d-stream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> | ||
24 | </tr> | ||
25 | <tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-plugins.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-plugins.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-plugins"></a><div class="titlepage"></div> | ||
31 | <div class="refnamediv"><table width="100%"><tr> | ||
32 | <td valign="top"> | ||
33 | <h2><span class="refentrytitle"><a name="libg3d-plugins.top_of_page"></a>plugins</span></h2> | ||
34 | <p>plugins — G3DPlugin interface</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-plugins.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/plugins.h> | ||
43 | |||
44 | enum <a class="link" href="libg3d-plugins.html#G3DPluginType" title="enum G3DPluginType">G3DPluginType</a>; | ||
45 | <a | ||
46 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
47 | >gpointer</a> (<a class="link" href="libg3d-plugins.html#G3DPluginInitFunc" title="G3DPluginInitFunc ()">*G3DPluginInitFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
48 | void (<a class="link" href="libg3d-plugins.html#G3DPluginCleanupFunc" title="G3DPluginCleanupFunc ()">*G3DPluginCleanupFunc</a>) (<a | ||
49 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
50 | >gpointer</a> user_data); | ||
51 | <a | ||
52 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
53 | >gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFunc" title="G3DPluginLoadModelFunc ()">*G3DPluginLoadModelFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
54 | const <a | ||
55 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
56 | >gchar</a> *filename, | ||
57 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
60 | >gpointer</a> user_data); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
63 | >gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc" title="G3DPluginLoadModelFromStreamFunc ()">*G3DPluginLoadModelFromStreamFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
64 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
65 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
66 | <a | ||
67 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
68 | >gpointer</a> user_data); | ||
69 | <a | ||
70 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
71 | >gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageFunc" title="G3DPluginLoadImageFunc ()">*G3DPluginLoadImageFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
72 | const <a | ||
73 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
74 | >gchar</a> *filename, | ||
75 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
76 | <a | ||
77 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
78 | >gpointer</a> user_data); | ||
79 | <a | ||
80 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
81 | >gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageStreamFunc" title="G3DPluginLoadImageStreamFunc ()">*G3DPluginLoadImageStreamFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
82 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
83 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
84 | <a | ||
85 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
86 | >gpointer</a> user_data); | ||
87 | <a | ||
88 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
89 | >gchar</a>* (<a class="link" href="libg3d-plugins.html#G3DPluginGetDescFunc" title="G3DPluginGetDescFunc ()">*G3DPluginGetDescFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
90 | <a | ||
91 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
92 | >gchar</a>** (<a class="link" href="libg3d-plugins.html#G3DPluginGetExtFunc" title="G3DPluginGetExtFunc ()">*G3DPluginGetExtFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
93 | <a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin">G3DPlugin</a>; | ||
94 | <a | ||
95 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
96 | >gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-init" title="g3d_plugins_init ()">g3d_plugins_init</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
97 | void <a class="link" href="libg3d-plugins.html#g3d-plugins-cleanup" title="g3d_plugins_cleanup ()">g3d_plugins_cleanup</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
98 | <a | ||
99 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
100 | >gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-model" title="g3d_plugins_load_model ()">g3d_plugins_load_model</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
101 | const <a | ||
102 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
103 | >gchar</a> *filename, | ||
104 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
105 | <a | ||
106 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
107 | >gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-model-from-stream" title="g3d_plugins_load_model_from_stream ()">g3d_plugins_load_model_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
108 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
109 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
110 | <a | ||
111 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
112 | >gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-image" title="g3d_plugins_load_image ()">g3d_plugins_load_image</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
113 | const <a | ||
114 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
115 | >gchar</a> *filename, | ||
116 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image); | ||
117 | <a | ||
118 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
119 | >gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-image-from-stream" title="g3d_plugins_load_image_from_stream ()">g3d_plugins_load_image_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
120 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
121 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image); | ||
122 | <a | ||
123 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
124 | >gchar</a>** <a class="link" href="libg3d-plugins.html#g3d-plugins-get-image-extensions" title="g3d_plugins_get_image_extensions ()">g3d_plugins_get_image_extensions</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
125 | </pre> | ||
126 | </div> | ||
127 | <div class="refsect1" lang="en"> | ||
128 | <a name="libg3d-plugins.description"></a><h2>Description</h2> | ||
129 | <p> | ||
130 | Direct interaction with the plugin system is normally not needed when using | ||
131 | libg3d. It may be required when writing a plugin which should load a | ||
132 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> or a <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> with another plugin.</p> | ||
133 | <p> | ||
134 | |||
135 | </p> | ||
136 | </div> | ||
137 | <div class="refsect1" lang="en"> | ||
138 | <a name="libg3d-plugins.details"></a><h2>Details</h2> | ||
139 | <div class="refsect2" lang="en"> | ||
140 | <a name="G3DPluginType"></a><h3>enum G3DPluginType</h3> | ||
141 | <pre class="programlisting">typedef enum { | ||
142 | G3D_PLUGIN_UNKNOWN = 0x00, | ||
143 | G3D_PLUGIN_IMPORT, | ||
144 | G3D_PLUGIN_IMAGE | ||
145 | } G3DPluginType; | ||
146 | </pre> | ||
147 | <p> | ||
148 | Type of plugin.</p> | ||
149 | <p> | ||
150 | |||
151 | </p> | ||
152 | <div class="variablelist"><table border="0"> | ||
153 | <col align="left" valign="top"> | ||
154 | <tbody> | ||
155 | <tr> | ||
156 | <td><p><a name="G3D-PLUGIN-UNKNOWN:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_UNKNOWN</code></span></p></td> | ||
157 | <td> unknown plugin type | ||
158 | </td> | ||
159 | </tr> | ||
160 | <tr> | ||
161 | <td><p><a name="G3D-PLUGIN-IMPORT:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMPORT</code></span></p></td> | ||
162 | <td> model import plugin | ||
163 | </td> | ||
164 | </tr> | ||
165 | <tr> | ||
166 | <td><p><a name="G3D-PLUGIN-IMAGE:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMAGE</code></span></p></td> | ||
167 | <td> image loading plugin | ||
168 | </td> | ||
169 | </tr> | ||
170 | </tbody> | ||
171 | </table></div> | ||
172 | </div> | ||
173 | <hr> | ||
174 | <div class="refsect2" lang="en"> | ||
175 | <a name="G3DPluginInitFunc"></a><h3>G3DPluginInitFunc ()</h3> | ||
176 | <pre class="programlisting"><a | ||
177 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
178 | >gpointer</a> (*G3DPluginInitFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
179 | <p> | ||
180 | Prototype for <code class="function">plugin_init()</code>.</p> | ||
181 | <p> | ||
182 | |||
183 | </p> | ||
184 | <div class="variablelist"><table border="0"> | ||
185 | <col align="left" valign="top"> | ||
186 | <tbody> | ||
187 | <tr> | ||
188 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
189 | <td> the context | ||
190 | </td> | ||
191 | </tr> | ||
192 | <tr> | ||
193 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
194 | <td> opaque plugin data. | ||
195 | </td> | ||
196 | </tr> | ||
197 | </tbody> | ||
198 | </table></div> | ||
199 | </div> | ||
200 | <hr> | ||
201 | <div class="refsect2" lang="en"> | ||
202 | <a name="G3DPluginCleanupFunc"></a><h3>G3DPluginCleanupFunc ()</h3> | ||
203 | <pre class="programlisting">void (*G3DPluginCleanupFunc) (<a | ||
204 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
205 | >gpointer</a> user_data);</pre> | ||
206 | <p> | ||
207 | Prototype for <code class="function">plugin_cleanup()</code>.</p> | ||
208 | <p> | ||
209 | |||
210 | </p> | ||
211 | <div class="variablelist"><table border="0"> | ||
212 | <col align="left" valign="top"> | ||
213 | <tbody><tr> | ||
214 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
215 | <td> opaque plugin data | ||
216 | </td> | ||
217 | </tr></tbody> | ||
218 | </table></div> | ||
219 | </div> | ||
220 | <hr> | ||
221 | <div class="refsect2" lang="en"> | ||
222 | <a name="G3DPluginLoadModelFunc"></a><h3>G3DPluginLoadModelFunc ()</h3> | ||
223 | <pre class="programlisting"><a | ||
224 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
225 | >gboolean</a> (*G3DPluginLoadModelFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
226 | const <a | ||
227 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
228 | >gchar</a> *filename, | ||
229 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
230 | <a | ||
231 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
232 | >gpointer</a> user_data);</pre> | ||
233 | <p> | ||
234 | Prototype for <code class="function">plugin_load_model()</code>.</p> | ||
235 | <p> | ||
236 | |||
237 | </p> | ||
238 | <div class="variablelist"><table border="0"> | ||
239 | <col align="left" valign="top"> | ||
240 | <tbody> | ||
241 | <tr> | ||
242 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
243 | <td> the context | ||
244 | </td> | ||
245 | </tr> | ||
246 | <tr> | ||
247 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
248 | <td> file name of model | ||
249 | </td> | ||
250 | </tr> | ||
251 | <tr> | ||
252 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
253 | <td> the model structure to fill | ||
254 | </td> | ||
255 | </tr> | ||
256 | <tr> | ||
257 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
258 | <td> opaque plugin data | ||
259 | </td> | ||
260 | </tr> | ||
261 | <tr> | ||
262 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
263 | <td> TRUE on success, FALSE else. | ||
264 | </td> | ||
265 | </tr> | ||
266 | </tbody> | ||
267 | </table></div> | ||
268 | </div> | ||
269 | <hr> | ||
270 | <div class="refsect2" lang="en"> | ||
271 | <a name="G3DPluginLoadModelFromStreamFunc"></a><h3>G3DPluginLoadModelFromStreamFunc ()</h3> | ||
272 | <pre class="programlisting"><a | ||
273 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
274 | >gboolean</a> (*G3DPluginLoadModelFromStreamFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
275 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
276 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
277 | <a | ||
278 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
279 | >gpointer</a> user_data);</pre> | ||
280 | <p> | ||
281 | Prototype for <code class="function">plugin_load_model_from_stream()</code>.</p> | ||
282 | <p> | ||
283 | |||
284 | </p> | ||
285 | <div class="variablelist"><table border="0"> | ||
286 | <col align="left" valign="top"> | ||
287 | <tbody> | ||
288 | <tr> | ||
289 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
290 | <td> the context | ||
291 | </td> | ||
292 | </tr> | ||
293 | <tr> | ||
294 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
295 | <td> the stream to load from | ||
296 | </td> | ||
297 | </tr> | ||
298 | <tr> | ||
299 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
300 | <td> the model structure to fill | ||
301 | </td> | ||
302 | </tr> | ||
303 | <tr> | ||
304 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
305 | <td> opaque plugin data | ||
306 | </td> | ||
307 | </tr> | ||
308 | <tr> | ||
309 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
310 | <td> TRUE on success, FALSE else. | ||
311 | </td> | ||
312 | </tr> | ||
313 | </tbody> | ||
314 | </table></div> | ||
315 | </div> | ||
316 | <hr> | ||
317 | <div class="refsect2" lang="en"> | ||
318 | <a name="G3DPluginLoadImageFunc"></a><h3>G3DPluginLoadImageFunc ()</h3> | ||
319 | <pre class="programlisting"><a | ||
320 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
321 | >gboolean</a> (*G3DPluginLoadImageFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
322 | const <a | ||
323 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
324 | >gchar</a> *filename, | ||
325 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
326 | <a | ||
327 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
328 | >gpointer</a> user_data);</pre> | ||
329 | <p> | ||
330 | Prototype for <code class="function">plugin_load_image()</code>.</p> | ||
331 | <p> | ||
332 | |||
333 | </p> | ||
334 | <div class="variablelist"><table border="0"> | ||
335 | <col align="left" valign="top"> | ||
336 | <tbody> | ||
337 | <tr> | ||
338 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
339 | <td> the context | ||
340 | </td> | ||
341 | </tr> | ||
342 | <tr> | ||
343 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
344 | <td> file name of image | ||
345 | </td> | ||
346 | </tr> | ||
347 | <tr> | ||
348 | <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td> | ||
349 | <td> image structure to fill | ||
350 | </td> | ||
351 | </tr> | ||
352 | <tr> | ||
353 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
354 | <td> opaque plugin data | ||
355 | </td> | ||
356 | </tr> | ||
357 | <tr> | ||
358 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
359 | <td> TRUE on success, FALSE else. | ||
360 | </td> | ||
361 | </tr> | ||
362 | </tbody> | ||
363 | </table></div> | ||
364 | </div> | ||
365 | <hr> | ||
366 | <div class="refsect2" lang="en"> | ||
367 | <a name="G3DPluginLoadImageStreamFunc"></a><h3>G3DPluginLoadImageStreamFunc ()</h3> | ||
368 | <pre class="programlisting"><a | ||
369 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
370 | >gboolean</a> (*G3DPluginLoadImageStreamFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
371 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
372 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
373 | <a | ||
374 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
375 | >gpointer</a> user_data);</pre> | ||
376 | <p> | ||
377 | Prototype for <code class="function">plugin_load_image_from_stream()</code>.</p> | ||
378 | <p> | ||
379 | |||
380 | </p> | ||
381 | <div class="variablelist"><table border="0"> | ||
382 | <col align="left" valign="top"> | ||
383 | <tbody> | ||
384 | <tr> | ||
385 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
386 | <td> the context | ||
387 | </td> | ||
388 | </tr> | ||
389 | <tr> | ||
390 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
391 | <td> the stream to load from | ||
392 | </td> | ||
393 | </tr> | ||
394 | <tr> | ||
395 | <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td> | ||
396 | <td> image structure to fill | ||
397 | </td> | ||
398 | </tr> | ||
399 | <tr> | ||
400 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
401 | <td> opaque plugin data | ||
402 | </td> | ||
403 | </tr> | ||
404 | <tr> | ||
405 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
406 | <td> TRUE on success, FALSE else. | ||
407 | </td> | ||
408 | </tr> | ||
409 | </tbody> | ||
410 | </table></div> | ||
411 | </div> | ||
412 | <hr> | ||
413 | <div class="refsect2" lang="en"> | ||
414 | <a name="G3DPluginGetDescFunc"></a><h3>G3DPluginGetDescFunc ()</h3> | ||
415 | <pre class="programlisting"><a | ||
416 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
417 | >gchar</a>* (*G3DPluginGetDescFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
418 | <p> | ||
419 | Prototype for <code class="function">plugin_description()</code>.</p> | ||
420 | <p> | ||
421 | |||
422 | </p> | ||
423 | <div class="variablelist"><table border="0"> | ||
424 | <col align="left" valign="top"> | ||
425 | <tbody> | ||
426 | <tr> | ||
427 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
428 | <td> the context | ||
429 | </td> | ||
430 | </tr> | ||
431 | <tr> | ||
432 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
433 | <td> a newly-allocated string containing the description of the plugin. | ||
434 | </td> | ||
435 | </tr> | ||
436 | </tbody> | ||
437 | </table></div> | ||
438 | </div> | ||
439 | <hr> | ||
440 | <div class="refsect2" lang="en"> | ||
441 | <a name="G3DPluginGetExtFunc"></a><h3>G3DPluginGetExtFunc ()</h3> | ||
442 | <pre class="programlisting"><a | ||
443 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
444 | >gchar</a>** (*G3DPluginGetExtFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
445 | <p> | ||
446 | Prototype for <code class="function">plugin_extensions()</code>.</p> | ||
447 | <p> | ||
448 | |||
449 | </p> | ||
450 | <div class="variablelist"><table border="0"> | ||
451 | <col align="left" valign="top"> | ||
452 | <tbody> | ||
453 | <tr> | ||
454 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
455 | <td> the context | ||
456 | </td> | ||
457 | </tr> | ||
458 | <tr> | ||
459 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
460 | <td> NULL-terminated list of file extensions supported by this plugin. | ||
461 | Free with <a | ||
462 | href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev" | ||
463 | ><code class="function">g_strfreev()</code></a>. | ||
464 | </td> | ||
465 | </tr> | ||
466 | </tbody> | ||
467 | </table></div> | ||
468 | </div> | ||
469 | <hr> | ||
470 | <div class="refsect2" lang="en"> | ||
471 | <a name="G3DPlugin"></a><h3>G3DPlugin</h3> | ||
472 | <pre class="programlisting">typedef struct { | ||
473 | } G3DPlugin; | ||
474 | </pre> | ||
475 | <p> | ||
476 | A libg3d plugin.</p> | ||
477 | <p> | ||
478 | |||
479 | </p> | ||
480 | </div> | ||
481 | <hr> | ||
482 | <div class="refsect2" lang="en"> | ||
483 | <a name="g3d-plugins-init"></a><h3>g3d_plugins_init ()</h3> | ||
484 | <pre class="programlisting"><a | ||
485 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
486 | >gboolean</a> g3d_plugins_init (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
487 | <p> | ||
488 | Initializes the plugin system. This is implicitly done when using | ||
489 | <a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()"><code class="function">g3d_context_new()</code></a>.</p> | ||
490 | <p> | ||
491 | |||
492 | </p> | ||
493 | <div class="variablelist"><table border="0"> | ||
494 | <col align="left" valign="top"> | ||
495 | <tbody> | ||
496 | <tr> | ||
497 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
498 | <td> a valid <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> | ||
499 | </td> | ||
500 | </tr> | ||
501 | <tr> | ||
502 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
503 | <td> TRUE on success, FALSE else. | ||
504 | </td> | ||
505 | </tr> | ||
506 | </tbody> | ||
507 | </table></div> | ||
508 | </div> | ||
509 | <hr> | ||
510 | <div class="refsect2" lang="en"> | ||
511 | <a name="g3d-plugins-cleanup"></a><h3>g3d_plugins_cleanup ()</h3> | ||
512 | <pre class="programlisting">void g3d_plugins_cleanup (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
513 | <p> | ||
514 | Clean up the plugin system. Usually done by <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()"><code class="function">g3d_context_free()</code></a>.</p> | ||
515 | <p> | ||
516 | |||
517 | </p> | ||
518 | <div class="variablelist"><table border="0"> | ||
519 | <col align="left" valign="top"> | ||
520 | <tbody><tr> | ||
521 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
522 | <td> a valid context | ||
523 | </td> | ||
524 | </tr></tbody> | ||
525 | </table></div> | ||
526 | </div> | ||
527 | <hr> | ||
528 | <div class="refsect2" lang="en"> | ||
529 | <a name="g3d-plugins-load-model"></a><h3>g3d_plugins_load_model ()</h3> | ||
530 | <pre class="programlisting"><a | ||
531 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
532 | >gboolean</a> g3d_plugins_load_model (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
533 | const <a | ||
534 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
535 | >gchar</a> *filename, | ||
536 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
537 | <p> | ||
538 | Try to load a model from file using import plugins.</p> | ||
539 | <p> | ||
540 | |||
541 | </p> | ||
542 | <div class="variablelist"><table border="0"> | ||
543 | <col align="left" valign="top"> | ||
544 | <tbody> | ||
545 | <tr> | ||
546 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
547 | <td> a valid context | ||
548 | </td> | ||
549 | </tr> | ||
550 | <tr> | ||
551 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
552 | <td> file name of model to load | ||
553 | </td> | ||
554 | </tr> | ||
555 | <tr> | ||
556 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
557 | <td> model structure to fill | ||
558 | </td> | ||
559 | </tr> | ||
560 | <tr> | ||
561 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
562 | <td> TRUE on success, FALSE else. | ||
563 | </td> | ||
564 | </tr> | ||
565 | </tbody> | ||
566 | </table></div> | ||
567 | </div> | ||
568 | <hr> | ||
569 | <div class="refsect2" lang="en"> | ||
570 | <a name="g3d-plugins-load-model-from-stream"></a><h3>g3d_plugins_load_model_from_stream ()</h3> | ||
571 | <pre class="programlisting"><a | ||
572 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
573 | >gboolean</a> g3d_plugins_load_model_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
574 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
575 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
576 | <p> | ||
577 | Try to load a model from stream using import plugins.</p> | ||
578 | <p> | ||
579 | |||
580 | </p> | ||
581 | <div class="variablelist"><table border="0"> | ||
582 | <col align="left" valign="top"> | ||
583 | <tbody> | ||
584 | <tr> | ||
585 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
586 | <td> a valid context | ||
587 | </td> | ||
588 | </tr> | ||
589 | <tr> | ||
590 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
591 | <td> stream to load model from | ||
592 | </td> | ||
593 | </tr> | ||
594 | <tr> | ||
595 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
596 | <td> model structure to fill | ||
597 | </td> | ||
598 | </tr> | ||
599 | <tr> | ||
600 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
601 | <td> TRUE on success, FALSE else. | ||
602 | </td> | ||
603 | </tr> | ||
604 | </tbody> | ||
605 | </table></div> | ||
606 | </div> | ||
607 | <hr> | ||
608 | <div class="refsect2" lang="en"> | ||
609 | <a name="g3d-plugins-load-image"></a><h3>g3d_plugins_load_image ()</h3> | ||
610 | <pre class="programlisting"><a | ||
611 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
612 | >gboolean</a> g3d_plugins_load_image (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
613 | const <a | ||
614 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
615 | >gchar</a> *filename, | ||
616 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);</pre> | ||
617 | <p> | ||
618 | Try to load an image from file using import plugins.</p> | ||
619 | <p> | ||
620 | |||
621 | </p> | ||
622 | <div class="variablelist"><table border="0"> | ||
623 | <col align="left" valign="top"> | ||
624 | <tbody> | ||
625 | <tr> | ||
626 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
627 | <td> a valid context | ||
628 | </td> | ||
629 | </tr> | ||
630 | <tr> | ||
631 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
632 | <td> file name of image to load | ||
633 | </td> | ||
634 | </tr> | ||
635 | <tr> | ||
636 | <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td> | ||
637 | <td> image structure to fill | ||
638 | </td> | ||
639 | </tr> | ||
640 | <tr> | ||
641 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
642 | <td> TRUE on success, FALSE else. | ||
643 | </td> | ||
644 | </tr> | ||
645 | </tbody> | ||
646 | </table></div> | ||
647 | </div> | ||
648 | <hr> | ||
649 | <div class="refsect2" lang="en"> | ||
650 | <a name="g3d-plugins-load-image-from-stream"></a><h3>g3d_plugins_load_image_from_stream ()</h3> | ||
651 | <pre class="programlisting"><a | ||
652 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
653 | >gboolean</a> g3d_plugins_load_image_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
654 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
655 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);</pre> | ||
656 | <p> | ||
657 | Try to load an image from stream using import plugins.</p> | ||
658 | <p> | ||
659 | |||
660 | </p> | ||
661 | <div class="variablelist"><table border="0"> | ||
662 | <col align="left" valign="top"> | ||
663 | <tbody> | ||
664 | <tr> | ||
665 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
666 | <td> a valid context | ||
667 | </td> | ||
668 | </tr> | ||
669 | <tr> | ||
670 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
671 | <td> stream to load image from | ||
672 | </td> | ||
673 | </tr> | ||
674 | <tr> | ||
675 | <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td> | ||
676 | <td> image structure to fill | ||
677 | </td> | ||
678 | </tr> | ||
679 | <tr> | ||
680 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
681 | <td> TRUE on success, FALSE else. | ||
682 | </td> | ||
683 | </tr> | ||
684 | </tbody> | ||
685 | </table></div> | ||
686 | </div> | ||
687 | <hr> | ||
688 | <div class="refsect2" lang="en"> | ||
689 | <a name="g3d-plugins-get-image-extensions"></a><h3>g3d_plugins_get_image_extensions ()</h3> | ||
690 | <pre class="programlisting"><a | ||
691 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
692 | >gchar</a>** g3d_plugins_get_image_extensions (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
693 | <p> | ||
694 | Get the supported image type extensions.</p> | ||
695 | <p> | ||
696 | |||
697 | </p> | ||
698 | <div class="variablelist"><table border="0"> | ||
699 | <col align="left" valign="top"> | ||
700 | <tbody> | ||
701 | <tr> | ||
702 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
703 | <td> a valid context | ||
704 | </td> | ||
705 | </tr> | ||
706 | <tr> | ||
707 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
708 | <td> NULL-terminated list of image file extensions supported by this | ||
709 | plugin. Free with <a | ||
710 | href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev" | ||
711 | ><code class="function">g_strfreev()</code></a>. | ||
712 | </td> | ||
713 | </tr> | ||
714 | </tbody> | ||
715 | </table></div> | ||
716 | </div> | ||
717 | </div> | ||
718 | <div class="refsect1" lang="en"> | ||
719 | <a name="libg3d-plugins.see-also"></a><h2>See Also</h2> | ||
720 | <a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin"><span class="type">G3DPlugin</span></a> | ||
721 | </div> | ||
722 | </div> | ||
723 | <div class="footer"> | ||
724 | <hr> | ||
725 | Generated by GTK-Doc V1.10</div> | ||
726 | </body> | ||
727 | </html> | ||