This file is indexed.

/usr/share/gtk-doc/html/libg3d/libg3d-plugins.html is in libg3d-doc 0.0.8-17ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>plugins</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="libg3d Reference Manual">
<link rel="up" href="ch02.html" title="Plugin interface">
<link rel="prev" href="ch02.html" title="Plugin interface">
<link rel="next" href="libg3d-stream.html" title="stream">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ch02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libg3d Reference Manual</th>
<td><a accesskey="n" href="libg3d-stream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libg3d-plugins.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libg3d-plugins.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libg3d-plugins"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libg3d-plugins.top_of_page"></a>plugins</span></h2>
<p>plugins — G3DPlugin interface</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libg3d-plugins.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;g3d/plugins.h&gt;

enum                <a class="link" href="libg3d-plugins.html#G3DPluginType" title="enum G3DPluginType">G3DPluginType</a>;
<span class="returnvalue">gpointer</span>            (<a class="link" href="libg3d-plugins.html#G3DPluginInitFunc" title="G3DPluginInitFunc ()">*G3DPluginInitFunc</a>)                (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                (<a class="link" href="libg3d-plugins.html#G3DPluginCleanupFunc" title="G3DPluginCleanupFunc ()">*G3DPluginCleanupFunc</a>)             (<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<span class="returnvalue">gboolean</span>            (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFunc" title="G3DPluginLoadModelFunc ()">*G3DPluginLoadModelFunc</a>)           (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<span class="returnvalue">gboolean</span>            (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc" title="G3DPluginLoadModelFromStreamFunc ()">*G3DPluginLoadModelFromStreamFunc</a>) (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<span class="returnvalue">gboolean</span>            (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageFunc" title="G3DPluginLoadImageFunc ()">*G3DPluginLoadImageFunc</a>)           (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<span class="returnvalue">gboolean</span>            (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageStreamFunc" title="G3DPluginLoadImageStreamFunc ()">*G3DPluginLoadImageStreamFunc</a>)     (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
<span class="returnvalue">gchar</span> *             (<a class="link" href="libg3d-plugins.html#G3DPluginGetDescFunc" title="G3DPluginGetDescFunc ()">*G3DPluginGetDescFunc</a>)             (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
<span class="returnvalue">gchar</span> **            (<a class="link" href="libg3d-plugins.html#G3DPluginGetExtFunc" title="G3DPluginGetExtFunc ()">*G3DPluginGetExtFunc</a>)              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
                    <a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin">G3DPlugin</a>;
<span class="returnvalue">gboolean</span>            <a class="link" href="libg3d-plugins.html#g3d-plugins-init" title="g3d_plugins_init ()">g3d_plugins_init</a>                    (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libg3d-plugins.html#g3d-plugins-cleanup" title="g3d_plugins_cleanup ()">g3d_plugins_cleanup</a>                 (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libg3d-plugins.html#g3d-plugins-load-model" title="g3d_plugins_load_model ()">g3d_plugins_load_model</a>              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>);
<span class="returnvalue">gboolean</span>            <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>  (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libg3d-plugins.html#g3d-plugins-load-image" title="g3d_plugins_load_image ()">g3d_plugins_load_image</a>              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>);
<span class="returnvalue">gboolean</span>            <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>  (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>);
<span class="returnvalue">gchar</span> **            <a class="link" href="libg3d-plugins.html#g3d-plugins-get-image-extensions" title="g3d_plugins_get_image_extensions ()">g3d_plugins_get_image_extensions</a>    (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libg3d-plugins.description"></a><h2>Description</h2>
<p>
Direct interaction with the plugin system is normally not needed when using
libg3d. It may be required when writing a plugin which should load a
<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>
</div>
<div class="refsect1">
<a name="libg3d-plugins.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="G3DPluginType"></a><h3>enum G3DPluginType</h3>
<pre class="programlisting">typedef enum {
	G3D_PLUGIN_UNKNOWN = 0x00,
	G3D_PLUGIN_IMPORT,
	G3D_PLUGIN_IMAGE
} G3DPluginType;
</pre>
<p>
Type of plugin.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="G3D-PLUGIN-UNKNOWN:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_UNKNOWN</code></span></p></td>
<td>unknown plugin type
</td>
</tr>
<tr>
<td><p><a name="G3D-PLUGIN-IMPORT:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMPORT</code></span></p></td>
<td>model import plugin
</td>
</tr>
<tr>
<td><p><a name="G3D-PLUGIN-IMAGE:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMAGE</code></span></p></td>
<td>image loading plugin
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginInitFunc"></a><h3>G3DPluginInitFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span>            (*G3DPluginInitFunc)                (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_init()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>opaque plugin data.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginCleanupFunc"></a><h3>G3DPluginCleanupFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                (*G3DPluginCleanupFunc)             (<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_cleanup()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>opaque plugin data</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginLoadModelFunc"></a><h3>G3DPluginLoadModelFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*G3DPluginLoadModelFunc)           (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_load_model()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file name of model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the model structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>opaque plugin data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginLoadModelFromStreamFunc"></a><h3>G3DPluginLoadModelFromStreamFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*G3DPluginLoadModelFromStreamFunc) (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_load_model_from_stream()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
<td>the stream to load from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the model structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>opaque plugin data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginLoadImageFunc"></a><h3>G3DPluginLoadImageFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*G3DPluginLoadImageFunc)           (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_load_image()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file name of image</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>opaque plugin data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginLoadImageStreamFunc"></a><h3>G3DPluginLoadImageStreamFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*G3DPluginLoadImageStreamFunc)     (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_load_image_from_stream()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
<td>the stream to load from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>opaque plugin data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginGetDescFunc"></a><h3>G3DPluginGetDescFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *             (*G3DPluginGetDescFunc)             (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_description()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-allocated string containing the description of the plugin.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPluginGetExtFunc"></a><h3>G3DPluginGetExtFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> **            (*G3DPluginGetExtFunc)              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
Prototype for <code class="function">plugin_extensions()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the context</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>NULL-terminated list of file extensions supported by this plugin.
Free with <code class="function">g_strfreev()</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="G3DPlugin"></a><h3>G3DPlugin</h3>
<pre class="programlisting">typedef struct {
} G3DPlugin;
</pre>
<p>
A libg3d plugin.
</p>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-init"></a><h3>g3d_plugins_init ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            g3d_plugins_init                    (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
Initializes the plugin system. This is implicitly done when using
<a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()"><code class="function">g3d_context_new()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-cleanup"></a><h3>g3d_plugins_cleanup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g3d_plugins_cleanup                 (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
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>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-load-model"></a><h3>g3d_plugins_load_model ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            g3d_plugins_load_model              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>);</pre>
<p>
Try to load a model from file using import plugins.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file name of model to load</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>model structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-load-model-from-stream"></a><h3>g3d_plugins_load_model_from_stream ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            g3d_plugins_load_model_from_stream  (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> *model</code></em>);</pre>
<p>
Try to load a model from stream using import plugins.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
<td>stream to load model from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>model structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-load-image"></a><h3>g3d_plugins_load_image ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            g3d_plugins_load_image              (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>);</pre>
<p>
Try to load an image from file using import plugins.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file name of image to load</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-load-image-from-stream"></a><h3>g3d_plugins_load_image_from_stream ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            g3d_plugins_load_image_from_stream  (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> *stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> *image</code></em>);</pre>
<p>
Try to load an image from stream using import plugins.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
<td>stream to load image from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image structure to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE else.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g3d-plugins-get-image-extensions"></a><h3>g3d_plugins_get_image_extensions ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> **            g3d_plugins_get_image_extensions    (<em class="parameter"><code><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> *context</code></em>);</pre>
<p>
Get the supported image type extensions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a valid context</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>NULL-terminated list of image file extensions supported by this
plugin. Free with <code class="function">g_strfreev()</code>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libg3d-plugins.see-also"></a><h2>See Also</h2>
<a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin"><span class="type">G3DPlugin</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>