diff options
Diffstat (limited to '')
26 files changed, 8513 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html new file mode 100644 index 0000000..4df5d39 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html | |||
@@ -0,0 +1,55 @@ | |||
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>Application interface</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="index.html" title="libg3d Reference Manual"> | ||
9 | <link rel="prev" href="index.html" title="libg3d Reference Manual"> | ||
10 | <link rel="next" href="libg3d-types.html" title="types"> | ||
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"><tr valign="middle"> | ||
18 | <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
19 | <td> </td> | ||
20 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
21 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
22 | <td><a accesskey="n" href="libg3d-types.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> | ||
23 | </tr></table> | ||
24 | <div class="chapter" lang="en"> | ||
25 | <div class="titlepage"><div><div><h2 class="title"> | ||
26 | <a name="id2500287"></a>Application interface</h2></div></div></div> | ||
27 | <div class="toc"><dl> | ||
28 | <dt> | ||
29 | <span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span> | ||
30 | </dt> | ||
31 | <dt> | ||
32 | <span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span> | ||
33 | </dt> | ||
34 | <dt> | ||
35 | <span class="refentrytitle"><a href="libg3d-model.html">model</a></span><span class="refpurpose"> — Model manipulation functions</span> | ||
36 | </dt> | ||
37 | <dt> | ||
38 | <span class="refentrytitle"><a href="libg3d-object.html">object</a></span><span class="refpurpose"> — Object manipulation</span> | ||
39 | </dt> | ||
40 | <dt> | ||
41 | <span class="refentrytitle"><a href="libg3d-face.html">face</a></span><span class="refpurpose"> — Face manipulation</span> | ||
42 | </dt> | ||
43 | <dt> | ||
44 | <span class="refentrytitle"><a href="libg3d-material.html">material</a></span><span class="refpurpose"> — Material generation and manipulation</span> | ||
45 | </dt> | ||
46 | <dt> | ||
47 | <span class="refentrytitle"><a href="libg3d-texture.html">texture</a></span><span class="refpurpose"> — Texture loading and manipulation</span> | ||
48 | </dt> | ||
49 | </dl></div> | ||
50 | </div> | ||
51 | <div class="footer"> | ||
52 | <hr> | ||
53 | Generated by GTK-Doc V1.10</div> | ||
54 | </body> | ||
55 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html new file mode 100644 index 0000000..2a8bc7d --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html | |||
@@ -0,0 +1,58 @@ | |||
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>Plugin interface</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="index.html" title="libg3d Reference Manual"> | ||
9 | <link rel="prev" href="libg3d-texture.html" title="texture"> | ||
10 | <link rel="next" href="libg3d-plugins.html" title="plugins"> | ||
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"><tr valign="middle"> | ||
18 | <td><a accesskey="p" href="libg3d-texture.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
19 | <td> </td> | ||
20 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
21 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
22 | <td><a accesskey="n" href="libg3d-plugins.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> | ||
23 | </tr></table> | ||
24 | <div class="chapter" lang="en"> | ||
25 | <div class="titlepage"><div><div><h2 class="title"> | ||
26 | <a name="id2501204"></a>Plugin interface</h2></div></div></div> | ||
27 | <div class="toc"><dl> | ||
28 | <dt> | ||
29 | <span class="refentrytitle"><a href="libg3d-plugins.html">plugins</a></span><span class="refpurpose"> — G3DPlugin interface</span> | ||
30 | </dt> | ||
31 | <dt> | ||
32 | <span class="refentrytitle"><a href="libg3d-stream.html">stream</a></span><span class="refpurpose"> — I/O abstraction layer for plugins</span> | ||
33 | </dt> | ||
34 | <dt> | ||
35 | <span class="refentrytitle"><a href="libg3d-iff.html">iff</a></span><span class="refpurpose"> — IFF file helper functions</span> | ||
36 | </dt> | ||
37 | <dt> | ||
38 | <span class="refentrytitle"><a href="libg3d-read.html">read</a></span><span class="refpurpose"> — file reading abstraction (deprecated)</span> | ||
39 | </dt> | ||
40 | <dt> | ||
41 | <span class="refentrytitle"><a href="libg3d-primitive.html">primitive</a></span><span class="refpurpose"> — 3D primitive generation functions</span> | ||
42 | </dt> | ||
43 | <dt> | ||
44 | <span class="refentrytitle"><a href="libg3d-matrix.html">matrix</a></span><span class="refpurpose"> — Matrix manipulation and calculation</span> | ||
45 | </dt> | ||
46 | <dt> | ||
47 | <span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span> | ||
48 | </dt> | ||
49 | <dt> | ||
50 | <span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span> | ||
51 | </dt> | ||
52 | </dl></div> | ||
53 | </div> | ||
54 | <div class="footer"> | ||
55 | <hr> | ||
56 | Generated by GTK-Doc V1.10</div> | ||
57 | </body> | ||
58 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png new file mode 100644 index 0000000..1700361 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html new file mode 100644 index 0000000..b368808 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html | |||
@@ -0,0 +1,85 @@ | |||
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>libg3d Reference Manual</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="next" href="ch01.html" title="Application interface"> | ||
9 | <meta name="generator" content="GTK-Doc V1.10 (XML mode)"> | ||
10 | <link rel="stylesheet" href="style.css" type="text/css"> | ||
11 | <link rel="chapter" href="ch01.html" title="Application interface"> | ||
12 | <link rel="chapter" href="ch02.html" title="Plugin interface"> | ||
13 | </head> | ||
14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | ||
15 | <div class="book" lang="en"> | ||
16 | <div class="titlepage"> | ||
17 | <div> | ||
18 | <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libg3d Reference Manual</p></th></tr></table></div> | ||
19 | <div><p class="releaseinfo"> | ||
20 | for libg3d 0.0.7 | ||
21 | The latest version of this documentation can be found on-line at | ||
22 | <a class="ulink" href="http://automagically.de/libg3d/index.html" target="_top">http://automagically.de/libg3d/</a>. | ||
23 | </p></div> | ||
24 | </div> | ||
25 | <hr> | ||
26 | </div> | ||
27 | <div class="toc"><dl> | ||
28 | <dt><span class="chapter"><a href="ch01.html">Application interface</a></span></dt> | ||
29 | <dd><dl> | ||
30 | <dt> | ||
31 | <span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span> | ||
32 | </dt> | ||
33 | <dt> | ||
34 | <span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span> | ||
35 | </dt> | ||
36 | <dt> | ||
37 | <span class="refentrytitle"><a href="libg3d-model.html">model</a></span><span class="refpurpose"> — Model manipulation functions</span> | ||
38 | </dt> | ||
39 | <dt> | ||
40 | <span class="refentrytitle"><a href="libg3d-object.html">object</a></span><span class="refpurpose"> — Object manipulation</span> | ||
41 | </dt> | ||
42 | <dt> | ||
43 | <span class="refentrytitle"><a href="libg3d-face.html">face</a></span><span class="refpurpose"> — Face manipulation</span> | ||
44 | </dt> | ||
45 | <dt> | ||
46 | <span class="refentrytitle"><a href="libg3d-material.html">material</a></span><span class="refpurpose"> — Material generation and manipulation</span> | ||
47 | </dt> | ||
48 | <dt> | ||
49 | <span class="refentrytitle"><a href="libg3d-texture.html">texture</a></span><span class="refpurpose"> — Texture loading and manipulation</span> | ||
50 | </dt> | ||
51 | </dl></dd> | ||
52 | <dt><span class="chapter"><a href="ch02.html">Plugin interface</a></span></dt> | ||
53 | <dd><dl> | ||
54 | <dt> | ||
55 | <span class="refentrytitle"><a href="libg3d-plugins.html">plugins</a></span><span class="refpurpose"> — G3DPlugin interface</span> | ||
56 | </dt> | ||
57 | <dt> | ||
58 | <span class="refentrytitle"><a href="libg3d-stream.html">stream</a></span><span class="refpurpose"> — I/O abstraction layer for plugins</span> | ||
59 | </dt> | ||
60 | <dt> | ||
61 | <span class="refentrytitle"><a href="libg3d-iff.html">iff</a></span><span class="refpurpose"> — IFF file helper functions</span> | ||
62 | </dt> | ||
63 | <dt> | ||
64 | <span class="refentrytitle"><a href="libg3d-read.html">read</a></span><span class="refpurpose"> — file reading abstraction (deprecated)</span> | ||
65 | </dt> | ||
66 | <dt> | ||
67 | <span class="refentrytitle"><a href="libg3d-primitive.html">primitive</a></span><span class="refpurpose"> — 3D primitive generation functions</span> | ||
68 | </dt> | ||
69 | <dt> | ||
70 | <span class="refentrytitle"><a href="libg3d-matrix.html">matrix</a></span><span class="refpurpose"> — Matrix manipulation and calculation</span> | ||
71 | </dt> | ||
72 | <dt> | ||
73 | <span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span> | ||
74 | </dt> | ||
75 | <dt> | ||
76 | <span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span> | ||
77 | </dt> | ||
78 | </dl></dd> | ||
79 | </dl></div> | ||
80 | </div> | ||
81 | <div class="footer"> | ||
82 | <hr> | ||
83 | Generated by GTK-Doc V1.10</div> | ||
84 | </body> | ||
85 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml new file mode 100644 index 0000000..a233041 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml | |||
@@ -0,0 +1,242 @@ | |||
1 | <ONLINE href="http://automagically.de/libg3d/index.html"> | ||
2 | <ANCHOR id="libg3d-types" href="libg3d/libg3d-types.html"> | ||
3 | <ANCHOR id="libg3d-types.synopsis" href="libg3d/libg3d-types.html#libg3d-types.synopsis"> | ||
4 | <ANCHOR id="libg3d-types.description" href="libg3d/libg3d-types.html#libg3d-types.description"> | ||
5 | <ANCHOR id="libg3d-types.details" href="libg3d/libg3d-types.html#libg3d-types.details"> | ||
6 | <ANCHOR id="G3DSingle" href="libg3d/libg3d-types.html#G3DSingle"> | ||
7 | <ANCHOR id="G3DDouble" href="libg3d/libg3d-types.html#G3DDouble"> | ||
8 | <ANCHOR id="G3DFloat" href="libg3d/libg3d-types.html#G3DFloat"> | ||
9 | <ANCHOR id="G3D-FLOAT-IS-DOUBLE:CAPS" href="libg3d/libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS"> | ||
10 | <ANCHOR id="libg3d-context" href="libg3d/libg3d-context.html"> | ||
11 | <ANCHOR id="libg3d-context.synopsis" href="libg3d/libg3d-context.html#libg3d-context.synopsis"> | ||
12 | <ANCHOR id="libg3d-context.description" href="libg3d/libg3d-context.html#libg3d-context.description"> | ||
13 | <ANCHOR id="libg3d-context.details" href="libg3d/libg3d-context.html#libg3d-context.details"> | ||
14 | <ANCHOR id="G3DContext" href="libg3d/libg3d-context.html#G3DContext"> | ||
15 | <ANCHOR id="g3d-context-new" href="libg3d/libg3d-context.html#g3d-context-new"> | ||
16 | <ANCHOR id="g3d-context-free" href="libg3d/libg3d-context.html#g3d-context-free"> | ||
17 | <ANCHOR id="G3DSetBgColorFunc" href="libg3d/libg3d-context.html#G3DSetBgColorFunc"> | ||
18 | <ANCHOR id="G3DUpdateInterfaceFunc" href="libg3d/libg3d-context.html#G3DUpdateInterfaceFunc"> | ||
19 | <ANCHOR id="G3DUpdateProgressBarFunc" href="libg3d/libg3d-context.html#G3DUpdateProgressBarFunc"> | ||
20 | <ANCHOR id="g3d-context-update-interface" href="libg3d/libg3d-context.html#g3d-context-update-interface"> | ||
21 | <ANCHOR id="g3d-context-set-update-interface-func" href="libg3d/libg3d-context.html#g3d-context-set-update-interface-func"> | ||
22 | <ANCHOR id="g3d-context-update-progress-bar" href="libg3d/libg3d-context.html#g3d-context-update-progress-bar"> | ||
23 | <ANCHOR id="g3d-context-set-update-progress-bar-func" href="libg3d/libg3d-context.html#g3d-context-set-update-progress-bar-func"> | ||
24 | <ANCHOR id="g3d-context-set-bgcolor" href="libg3d/libg3d-context.html#g3d-context-set-bgcolor"> | ||
25 | <ANCHOR id="g3d-context-set-set-bgcolor-func" href="libg3d/libg3d-context.html#g3d-context-set-set-bgcolor-func"> | ||
26 | <ANCHOR id="libg3d-context.see-also" href="libg3d/libg3d-context.html#libg3d-context.see-also"> | ||
27 | <ANCHOR id="libg3d-model" href="libg3d/libg3d-model.html"> | ||
28 | <ANCHOR id="libg3d-model.synopsis" href="libg3d/libg3d-model.html#libg3d-model.synopsis"> | ||
29 | <ANCHOR id="libg3d-model.description" href="libg3d/libg3d-model.html#libg3d-model.description"> | ||
30 | <ANCHOR id="libg3d-model.details" href="libg3d/libg3d-model.html#libg3d-model.details"> | ||
31 | <ANCHOR id="G3D-MODEL-CENTER:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-CENTER:CAPS"> | ||
32 | <ANCHOR id="G3D-MODEL-NOCHECK:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-NOCHECK:CAPS"> | ||
33 | <ANCHOR id="G3D-MODEL-OPTIMIZE:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS"> | ||
34 | <ANCHOR id="G3D-MODEL-SCALE:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-SCALE:CAPS"> | ||
35 | <ANCHOR id="G3DModel" href="libg3d/libg3d-model.html#G3DModel"> | ||
36 | <ANCHOR id="g3d-model-new" href="libg3d/libg3d-model.html#g3d-model-new"> | ||
37 | <ANCHOR id="g3d-model-load" href="libg3d/libg3d-model.html#g3d-model-load"> | ||
38 | <ANCHOR id="g3d-model-load-full" href="libg3d/libg3d-model.html#g3d-model-load-full"> | ||
39 | <ANCHOR id="g3d-model-check" href="libg3d/libg3d-model.html#g3d-model-check"> | ||
40 | <ANCHOR id="g3d-model-center" href="libg3d/libg3d-model.html#g3d-model-center"> | ||
41 | <ANCHOR id="g3d-model-transform" href="libg3d/libg3d-model.html#g3d-model-transform"> | ||
42 | <ANCHOR id="g3d-model-clear" href="libg3d/libg3d-model.html#g3d-model-clear"> | ||
43 | <ANCHOR id="g3d-model-free" href="libg3d/libg3d-model.html#g3d-model-free"> | ||
44 | <ANCHOR id="g3d-model-get-object-by-name" href="libg3d/libg3d-model.html#g3d-model-get-object-by-name"> | ||
45 | <ANCHOR id="libg3d-object" href="libg3d/libg3d-object.html"> | ||
46 | <ANCHOR id="libg3d-object.synopsis" href="libg3d/libg3d-object.html#libg3d-object.synopsis"> | ||
47 | <ANCHOR id="libg3d-object.description" href="libg3d/libg3d-object.html#libg3d-object.description"> | ||
48 | <ANCHOR id="libg3d-object.details" href="libg3d/libg3d-object.html#libg3d-object.details"> | ||
49 | <ANCHOR id="G3DObject" href="libg3d/libg3d-object.html#G3DObject"> | ||
50 | <ANCHOR id="G3DTransformation" href="libg3d/libg3d-object.html#G3DTransformation"> | ||
51 | <ANCHOR id="g3d-object-free" href="libg3d/libg3d-object.html#g3d-object-free"> | ||
52 | <ANCHOR id="g3d-object-radius" href="libg3d/libg3d-object.html#g3d-object-radius"> | ||
53 | <ANCHOR id="g3d-object-scale" href="libg3d/libg3d-object.html#g3d-object-scale"> | ||
54 | <ANCHOR id="g3d-object-transform" href="libg3d/libg3d-object.html#g3d-object-transform"> | ||
55 | <ANCHOR id="g3d-object-transform-normals" href="libg3d/libg3d-object.html#g3d-object-transform-normals"> | ||
56 | <ANCHOR id="g3d-object-duplicate" href="libg3d/libg3d-object.html#g3d-object-duplicate"> | ||
57 | <ANCHOR id="g3d-object-optimize" href="libg3d/libg3d-object.html#g3d-object-optimize"> | ||
58 | <ANCHOR id="g3d-object-smooth" href="libg3d/libg3d-object.html#g3d-object-smooth"> | ||
59 | <ANCHOR id="g3d-object-merge" href="libg3d/libg3d-object.html#g3d-object-merge"> | ||
60 | <ANCHOR id="libg3d-face" href="libg3d/libg3d-face.html"> | ||
61 | <ANCHOR id="libg3d-face.synopsis" href="libg3d/libg3d-face.html#libg3d-face.synopsis"> | ||
62 | <ANCHOR id="libg3d-face.description" href="libg3d/libg3d-face.html#libg3d-face.description"> | ||
63 | <ANCHOR id="libg3d-face.details" href="libg3d/libg3d-face.html#libg3d-face.details"> | ||
64 | <ANCHOR id="G3D-FLAG-MAT-TWOSIDE:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS"> | ||
65 | <ANCHOR id="G3D-FLAG-FAC-NORMALS:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS"> | ||
66 | <ANCHOR id="G3D-FLAG-FAC-TEXMAP:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS"> | ||
67 | <ANCHOR id="G3DFace" href="libg3d/libg3d-face.html#G3DFace"> | ||
68 | <ANCHOR id="g3d-face-get-normal" href="libg3d/libg3d-face.html#g3d-face-get-normal"> | ||
69 | <ANCHOR id="g3d-face-free" href="libg3d/libg3d-face.html#g3d-face-free"> | ||
70 | <ANCHOR id="libg3d-material" href="libg3d/libg3d-material.html"> | ||
71 | <ANCHOR id="libg3d-material.synopsis" href="libg3d/libg3d-material.html#libg3d-material.synopsis"> | ||
72 | <ANCHOR id="libg3d-material.description" href="libg3d/libg3d-material.html#libg3d-material.description"> | ||
73 | <ANCHOR id="libg3d-material.details" href="libg3d/libg3d-material.html#libg3d-material.details"> | ||
74 | <ANCHOR id="G3DMaterial" href="libg3d/libg3d-material.html#G3DMaterial"> | ||
75 | <ANCHOR id="g3d-material-new" href="libg3d/libg3d-material.html#g3d-material-new"> | ||
76 | <ANCHOR id="g3d-material-free" href="libg3d/libg3d-material.html#g3d-material-free"> | ||
77 | <ANCHOR id="libg3d-texture" href="libg3d/libg3d-texture.html"> | ||
78 | <ANCHOR id="libg3d-texture.synopsis" href="libg3d/libg3d-texture.html#libg3d-texture.synopsis"> | ||
79 | <ANCHOR id="libg3d-texture.description" href="libg3d/libg3d-texture.html#libg3d-texture.description"> | ||
80 | <ANCHOR id="libg3d-texture.details" href="libg3d/libg3d-texture.html#libg3d-texture.details"> | ||
81 | <ANCHOR id="G3D-FLAG-IMG-GREYSCALE:CAPS" href="libg3d/libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS"> | ||
82 | <ANCHOR id="G3DTexEnv" href="libg3d/libg3d-texture.html#G3DTexEnv"> | ||
83 | <ANCHOR id="G3DImage" href="libg3d/libg3d-texture.html#G3DImage"> | ||
84 | <ANCHOR id="g3d-texture-load-cached" href="libg3d/libg3d-texture.html#g3d-texture-load-cached"> | ||
85 | <ANCHOR id="g3d-texture-load-from-stream" href="libg3d/libg3d-texture.html#g3d-texture-load-from-stream"> | ||
86 | <ANCHOR id="g3d-texture-load" href="libg3d/libg3d-texture.html#g3d-texture-load"> | ||
87 | <ANCHOR id="g3d-texture-free" href="libg3d/libg3d-texture.html#g3d-texture-free"> | ||
88 | <ANCHOR id="g3d-texture-prepare" href="libg3d/libg3d-texture.html#g3d-texture-prepare"> | ||
89 | <ANCHOR id="g3d-texture-flip-y" href="libg3d/libg3d-texture.html#g3d-texture-flip-y"> | ||
90 | <ANCHOR id="g3d-texture-merge-alpha" href="libg3d/libg3d-texture.html#g3d-texture-merge-alpha"> | ||
91 | <ANCHOR id="libg3d-plugins" href="libg3d/libg3d-plugins.html"> | ||
92 | <ANCHOR id="libg3d-plugins.synopsis" href="libg3d/libg3d-plugins.html#libg3d-plugins.synopsis"> | ||
93 | <ANCHOR id="libg3d-plugins.description" href="libg3d/libg3d-plugins.html#libg3d-plugins.description"> | ||
94 | <ANCHOR id="libg3d-plugins.details" href="libg3d/libg3d-plugins.html#libg3d-plugins.details"> | ||
95 | <ANCHOR id="G3DPluginType" href="libg3d/libg3d-plugins.html#G3DPluginType"> | ||
96 | <ANCHOR id="G3DPluginInitFunc" href="libg3d/libg3d-plugins.html#G3DPluginInitFunc"> | ||
97 | <ANCHOR id="G3DPluginCleanupFunc" href="libg3d/libg3d-plugins.html#G3DPluginCleanupFunc"> | ||
98 | <ANCHOR id="G3DPluginLoadModelFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadModelFunc"> | ||
99 | <ANCHOR id="G3DPluginLoadModelFromStreamFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc"> | ||
100 | <ANCHOR id="G3DPluginLoadImageFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadImageFunc"> | ||
101 | <ANCHOR id="G3DPluginLoadImageStreamFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadImageStreamFunc"> | ||
102 | <ANCHOR id="G3DPluginGetDescFunc" href="libg3d/libg3d-plugins.html#G3DPluginGetDescFunc"> | ||
103 | <ANCHOR id="G3DPluginGetExtFunc" href="libg3d/libg3d-plugins.html#G3DPluginGetExtFunc"> | ||
104 | <ANCHOR id="G3DPlugin" href="libg3d/libg3d-plugins.html#G3DPlugin"> | ||
105 | <ANCHOR id="g3d-plugins-init" href="libg3d/libg3d-plugins.html#g3d-plugins-init"> | ||
106 | <ANCHOR id="g3d-plugins-cleanup" href="libg3d/libg3d-plugins.html#g3d-plugins-cleanup"> | ||
107 | <ANCHOR id="g3d-plugins-load-model" href="libg3d/libg3d-plugins.html#g3d-plugins-load-model"> | ||
108 | <ANCHOR id="g3d-plugins-load-model-from-stream" href="libg3d/libg3d-plugins.html#g3d-plugins-load-model-from-stream"> | ||
109 | <ANCHOR id="g3d-plugins-load-image" href="libg3d/libg3d-plugins.html#g3d-plugins-load-image"> | ||
110 | <ANCHOR id="g3d-plugins-load-image-from-stream" href="libg3d/libg3d-plugins.html#g3d-plugins-load-image-from-stream"> | ||
111 | <ANCHOR id="g3d-plugins-get-image-extensions" href="libg3d/libg3d-plugins.html#g3d-plugins-get-image-extensions"> | ||
112 | <ANCHOR id="libg3d-plugins.see-also" href="libg3d/libg3d-plugins.html#libg3d-plugins.see-also"> | ||
113 | <ANCHOR id="libg3d-stream" href="libg3d/libg3d-stream.html"> | ||
114 | <ANCHOR id="libg3d-stream.synopsis" href="libg3d/libg3d-stream.html#libg3d-stream.synopsis"> | ||
115 | <ANCHOR id="libg3d-stream.description" href="libg3d/libg3d-stream.html#libg3d-stream.description"> | ||
116 | <ANCHOR id="libg3d-stream.details" href="libg3d/libg3d-stream.html#libg3d-stream.details"> | ||
117 | <ANCHOR id="G3DStream" href="libg3d/libg3d-stream.html#G3DStream"> | ||
118 | <ANCHOR id="g3d-stream-open-file" href="libg3d/libg3d-stream.html#g3d-stream-open-file"> | ||
119 | <ANCHOR id="g3d-stream-open-structured-file" href="libg3d/libg3d-stream.html#g3d-stream-open-structured-file"> | ||
120 | <ANCHOR id="g3d-stream-open-structured-file-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-structured-file-from-stream"> | ||
121 | <ANCHOR id="g3d-stream-open-zip" href="libg3d/libg3d-stream.html#g3d-stream-open-zip"> | ||
122 | <ANCHOR id="g3d-stream-open-zip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-zip-from-stream"> | ||
123 | <ANCHOR id="g3d-stream-open-gzip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-gzip-from-stream"> | ||
124 | <ANCHOR id="g3d-stream-from-buffer" href="libg3d/libg3d-stream.html#g3d-stream-from-buffer"> | ||
125 | <ANCHOR id="g3d-stream-zlib-inflate-stream" href="libg3d/libg3d-stream.html#g3d-stream-zlib-inflate-stream"> | ||
126 | <ANCHOR id="g3d-stream-new-custom" href="libg3d/libg3d-stream.html#g3d-stream-new-custom"> | ||
127 | <ANCHOR id="g3d-stream-close" href="libg3d/libg3d-stream.html#g3d-stream-close"> | ||
128 | <ANCHOR id="g3d-stream-skip" href="libg3d/libg3d-stream.html#g3d-stream-skip"> | ||
129 | <ANCHOR id="g3d-stream-seek" href="libg3d/libg3d-stream.html#g3d-stream-seek"> | ||
130 | <ANCHOR id="g3d-stream-tell" href="libg3d/libg3d-stream.html#g3d-stream-tell"> | ||
131 | <ANCHOR id="g3d-stream-size" href="libg3d/libg3d-stream.html#g3d-stream-size"> | ||
132 | <ANCHOR id="g3d-stream-eof" href="libg3d/libg3d-stream.html#g3d-stream-eof"> | ||
133 | <ANCHOR id="g3d-stream-is-seekable" href="libg3d/libg3d-stream.html#g3d-stream-is-seekable"> | ||
134 | <ANCHOR id="g3d-stream-get-uri" href="libg3d/libg3d-stream.html#g3d-stream-get-uri"> | ||
135 | <ANCHOR id="g3d-stream-line" href="libg3d/libg3d-stream.html#g3d-stream-line"> | ||
136 | <ANCHOR id="g3d-stream-read" href="libg3d/libg3d-stream.html#g3d-stream-read"> | ||
137 | <ANCHOR id="g3d-stream-read-line" href="libg3d/libg3d-stream.html#g3d-stream-read-line"> | ||
138 | <ANCHOR id="g3d-stream-read-int8" href="libg3d/libg3d-stream.html#g3d-stream-read-int8"> | ||
139 | <ANCHOR id="g3d-stream-read-int16-be" href="libg3d/libg3d-stream.html#g3d-stream-read-int16-be"> | ||
140 | <ANCHOR id="g3d-stream-read-int16-le" href="libg3d/libg3d-stream.html#g3d-stream-read-int16-le"> | ||
141 | <ANCHOR id="g3d-stream-read-int32-be" href="libg3d/libg3d-stream.html#g3d-stream-read-int32-be"> | ||
142 | <ANCHOR id="g3d-stream-read-int32-le" href="libg3d/libg3d-stream.html#g3d-stream-read-int32-le"> | ||
143 | <ANCHOR id="g3d-stream-read-float-be" href="libg3d/libg3d-stream.html#g3d-stream-read-float-be"> | ||
144 | <ANCHOR id="g3d-stream-read-float-le" href="libg3d/libg3d-stream.html#g3d-stream-read-float-le"> | ||
145 | <ANCHOR id="g3d-stream-read-double-be" href="libg3d/libg3d-stream.html#g3d-stream-read-double-be"> | ||
146 | <ANCHOR id="g3d-stream-read-double-le" href="libg3d/libg3d-stream.html#g3d-stream-read-double-le"> | ||
147 | <ANCHOR id="g3d-stream-read-cstr" href="libg3d/libg3d-stream.html#g3d-stream-read-cstr"> | ||
148 | <ANCHOR id="G3DStreamCloseFunc" href="libg3d/libg3d-stream.html#G3DStreamCloseFunc"> | ||
149 | <ANCHOR id="G3DStreamEofFunc" href="libg3d/libg3d-stream.html#G3DStreamEofFunc"> | ||
150 | <ANCHOR id="G3DStreamReadFunc" href="libg3d/libg3d-stream.html#G3DStreamReadFunc"> | ||
151 | <ANCHOR id="G3DStreamReadLineFunc" href="libg3d/libg3d-stream.html#G3DStreamReadLineFunc"> | ||
152 | <ANCHOR id="G3DStreamSeekFunc" href="libg3d/libg3d-stream.html#G3DStreamSeekFunc"> | ||
153 | <ANCHOR id="G3DStreamSizeFunc" href="libg3d/libg3d-stream.html#G3DStreamSizeFunc"> | ||
154 | <ANCHOR id="G3DStreamTellFunc" href="libg3d/libg3d-stream.html#G3DStreamTellFunc"> | ||
155 | <ANCHOR id="libg3d-stream.see-also" href="libg3d/libg3d-stream.html#libg3d-stream.see-also"> | ||
156 | <ANCHOR id="libg3d-iff" href="libg3d/libg3d-iff.html"> | ||
157 | <ANCHOR id="libg3d-iff.synopsis" href="libg3d/libg3d-iff.html#libg3d-iff.synopsis"> | ||
158 | <ANCHOR id="libg3d-iff.description" href="libg3d/libg3d-iff.html#libg3d-iff.description"> | ||
159 | <ANCHOR id="libg3d-iff.details" href="libg3d/libg3d-iff.html#libg3d-iff.details"> | ||
160 | <ANCHOR id="G3D-IFF-PAD1:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD1:CAPS"> | ||
161 | <ANCHOR id="G3D-IFF-PAD2:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD2:CAPS"> | ||
162 | <ANCHOR id="G3D-IFF-PAD4:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD4:CAPS"> | ||
163 | <ANCHOR id="G3D-IFF-PAD8:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD8:CAPS"> | ||
164 | <ANCHOR id="G3D-IFF-LE:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-LE:CAPS"> | ||
165 | <ANCHOR id="G3D-IFF-LEN16:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-LEN16:CAPS"> | ||
166 | <ANCHOR id="G3D-IFF-SUBCHUNK-LEN16:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS"> | ||
167 | <ANCHOR id="G3D-IFF-MKID:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-MKID:CAPS"> | ||
168 | <ANCHOR id="g3d-iff-check" href="libg3d/libg3d-iff.html#g3d-iff-check"> | ||
169 | <ANCHOR id="g3d-iff-read-chunk" href="libg3d/libg3d-iff.html#g3d-iff-read-chunk"> | ||
170 | <ANCHOR id="g3d-iff-handle-chunk" href="libg3d/libg3d-iff.html#g3d-iff-handle-chunk"> | ||
171 | <ANCHOR id="g3d-iff-chunk-matches" href="libg3d/libg3d-iff.html#g3d-iff-chunk-matches"> | ||
172 | <ANCHOR id="g3d-iff-read-ctnr" href="libg3d/libg3d-iff.html#g3d-iff-read-ctnr"> | ||
173 | <ANCHOR id="g3d-iff-id-to-text" href="libg3d/libg3d-iff.html#g3d-iff-id-to-text"> | ||
174 | <ANCHOR id="g3d-iff-open" href="libg3d/libg3d-iff.html#g3d-iff-open"> | ||
175 | <ANCHOR id="g3d-iff-readchunk" href="libg3d/libg3d-iff.html#g3d-iff-readchunk"> | ||
176 | <ANCHOR id="G3DIffChunkCallback" href="libg3d/libg3d-iff.html#G3DIffChunkCallback"> | ||
177 | <ANCHOR id="g3d-iff-chunk-callback" href="libg3d/libg3d-iff.html#g3d-iff-chunk-callback"> | ||
178 | <ANCHOR id="G3DIffChunkInfo" href="libg3d/libg3d-iff.html#G3DIffChunkInfo"> | ||
179 | <ANCHOR id="g3d-iff-chunk-info" href="libg3d/libg3d-iff.html#g3d-iff-chunk-info"> | ||
180 | <ANCHOR id="G3DIffGlobal" href="libg3d/libg3d-iff.html#G3DIffGlobal"> | ||
181 | <ANCHOR id="g3d-iff-gdata" href="libg3d/libg3d-iff.html#g3d-iff-gdata"> | ||
182 | <ANCHOR id="G3DIffLocal" href="libg3d/libg3d-iff.html#G3DIffLocal"> | ||
183 | <ANCHOR id="g3d-iff-ldata" href="libg3d/libg3d-iff.html#g3d-iff-ldata"> | ||
184 | <ANCHOR id="libg3d-read" href="libg3d/libg3d-read.html"> | ||
185 | <ANCHOR id="libg3d-read.synopsis" href="libg3d/libg3d-read.html#libg3d-read.synopsis"> | ||
186 | <ANCHOR id="libg3d-read.description" href="libg3d/libg3d-read.html#libg3d-read.description"> | ||
187 | <ANCHOR id="libg3d-read.details" href="libg3d/libg3d-read.html#libg3d-read.details"> | ||
188 | <ANCHOR id="g3d-read-int8" href="libg3d/libg3d-read.html#g3d-read-int8"> | ||
189 | <ANCHOR id="g3d-read-int16-be" href="libg3d/libg3d-read.html#g3d-read-int16-be"> | ||
190 | <ANCHOR id="g3d-read-int16-le" href="libg3d/libg3d-read.html#g3d-read-int16-le"> | ||
191 | <ANCHOR id="g3d-read-int32-be" href="libg3d/libg3d-read.html#g3d-read-int32-be"> | ||
192 | <ANCHOR id="g3d-read-int32-le" href="libg3d/libg3d-read.html#g3d-read-int32-le"> | ||
193 | <ANCHOR id="g3d-read-float-be" href="libg3d/libg3d-read.html#g3d-read-float-be"> | ||
194 | <ANCHOR id="g3d-read-float-le" href="libg3d/libg3d-read.html#g3d-read-float-le"> | ||
195 | <ANCHOR id="g3d-read-double-be" href="libg3d/libg3d-read.html#g3d-read-double-be"> | ||
196 | <ANCHOR id="g3d-read-double-le" href="libg3d/libg3d-read.html#g3d-read-double-le"> | ||
197 | <ANCHOR id="g3d-read-cstr" href="libg3d/libg3d-read.html#g3d-read-cstr"> | ||
198 | <ANCHOR id="libg3d-read.see-also" href="libg3d/libg3d-read.html#libg3d-read.see-also"> | ||
199 | <ANCHOR id="libg3d-primitive" href="libg3d/libg3d-primitive.html"> | ||
200 | <ANCHOR id="libg3d-primitive.synopsis" href="libg3d/libg3d-primitive.html#libg3d-primitive.synopsis"> | ||
201 | <ANCHOR id="libg3d-primitive.description" href="libg3d/libg3d-primitive.html#libg3d-primitive.description"> | ||
202 | <ANCHOR id="libg3d-primitive.details" href="libg3d/libg3d-primitive.html#libg3d-primitive.details"> | ||
203 | <ANCHOR id="g3d-primitive-cube" href="libg3d/libg3d-primitive.html#g3d-primitive-cube"> | ||
204 | <ANCHOR id="g3d-primitive-box" href="libg3d/libg3d-primitive.html#g3d-primitive-box"> | ||
205 | <ANCHOR id="g3d-primitive-box-strip-2d" href="libg3d/libg3d-primitive.html#g3d-primitive-box-strip-2d"> | ||
206 | <ANCHOR id="g3d-primitive-mesh" href="libg3d/libg3d-primitive.html#g3d-primitive-mesh"> | ||
207 | <ANCHOR id="g3d-primitive-cylinder" href="libg3d/libg3d-primitive.html#g3d-primitive-cylinder"> | ||
208 | <ANCHOR id="g3d-primitive-tube" href="libg3d/libg3d-primitive.html#g3d-primitive-tube"> | ||
209 | <ANCHOR id="g3d-primitive-sphere" href="libg3d/libg3d-primitive.html#g3d-primitive-sphere"> | ||
210 | <ANCHOR id="libg3d-matrix" href="libg3d/libg3d-matrix.html"> | ||
211 | <ANCHOR id="libg3d-matrix.synopsis" href="libg3d/libg3d-matrix.html#libg3d-matrix.synopsis"> | ||
212 | <ANCHOR id="libg3d-matrix.description" href="libg3d/libg3d-matrix.html#libg3d-matrix.description"> | ||
213 | <ANCHOR id="libg3d-matrix.details" href="libg3d/libg3d-matrix.html#libg3d-matrix.details"> | ||
214 | <ANCHOR id="G3DMatrix" href="libg3d/libg3d-matrix.html#G3DMatrix"> | ||
215 | <ANCHOR id="g3d-matrix-identity" href="libg3d/libg3d-matrix.html#g3d-matrix-identity"> | ||
216 | <ANCHOR id="g3d-matrix-multiply" href="libg3d/libg3d-matrix.html#g3d-matrix-multiply"> | ||
217 | <ANCHOR id="g3d-matrix-translate" href="libg3d/libg3d-matrix.html#g3d-matrix-translate"> | ||
218 | <ANCHOR id="g3d-matrix-rotate" href="libg3d/libg3d-matrix.html#g3d-matrix-rotate"> | ||
219 | <ANCHOR id="g3d-matrix-rotate-xyz" href="libg3d/libg3d-matrix.html#g3d-matrix-rotate-xyz"> | ||
220 | <ANCHOR id="g3d-matrix-scale" href="libg3d/libg3d-matrix.html#g3d-matrix-scale"> | ||
221 | <ANCHOR id="g3d-matrix-transpose" href="libg3d/libg3d-matrix.html#g3d-matrix-transpose"> | ||
222 | <ANCHOR id="g3d-matrix-determinant" href="libg3d/libg3d-matrix.html#g3d-matrix-determinant"> | ||
223 | <ANCHOR id="g3d-matrix-dump" href="libg3d/libg3d-matrix.html#g3d-matrix-dump"> | ||
224 | <ANCHOR id="libg3d-vector" href="libg3d/libg3d-vector.html"> | ||
225 | <ANCHOR id="libg3d-vector.synopsis" href="libg3d/libg3d-vector.html#libg3d-vector.synopsis"> | ||
226 | <ANCHOR id="libg3d-vector.description" href="libg3d/libg3d-vector.html#libg3d-vector.description"> | ||
227 | <ANCHOR id="libg3d-vector.details" href="libg3d/libg3d-vector.html#libg3d-vector.details"> | ||
228 | <ANCHOR id="G3DVector" href="libg3d/libg3d-vector.html#G3DVector"> | ||
229 | <ANCHOR id="g3d-vector-normal" href="libg3d/libg3d-vector.html#g3d-vector-normal"> | ||
230 | <ANCHOR id="g3d-vector-unify" href="libg3d/libg3d-vector.html#g3d-vector-unify"> | ||
231 | <ANCHOR id="g3d-vector-transform" href="libg3d/libg3d-vector.html#g3d-vector-transform"> | ||
232 | <ANCHOR id="libg3d-quat" href="libg3d/libg3d-quat.html"> | ||
233 | <ANCHOR id="libg3d-quat.synopsis" href="libg3d/libg3d-quat.html#libg3d-quat.synopsis"> | ||
234 | <ANCHOR id="libg3d-quat.description" href="libg3d/libg3d-quat.html#libg3d-quat.description"> | ||
235 | <ANCHOR id="libg3d-quat.details" href="libg3d/libg3d-quat.html#libg3d-quat.details"> | ||
236 | <ANCHOR id="G3DQuat" href="libg3d/libg3d-quat.html#G3DQuat"> | ||
237 | <ANCHOR id="g3d-quat-add" href="libg3d/libg3d-quat.html#g3d-quat-add"> | ||
238 | <ANCHOR id="g3d-quat-normalize" href="libg3d/libg3d-quat.html#g3d-quat-normalize"> | ||
239 | <ANCHOR id="g3d-quat-rotate" href="libg3d/libg3d-quat.html#g3d-quat-rotate"> | ||
240 | <ANCHOR id="g3d-quat-to-matrix" href="libg3d/libg3d-quat.html#g3d-quat-to-matrix"> | ||
241 | <ANCHOR id="g3d-quat-to-rotation-xyz" href="libg3d/libg3d-quat.html#g3d-quat-to-rotation-xyz"> | ||
242 | <ANCHOR id="g3d-quat-trackball" href="libg3d/libg3d-quat.html#g3d-quat-trackball"> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png new file mode 100644 index 0000000..2d05b3d --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html new file mode 100644 index 0000000..2a5c229 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html | |||
@@ -0,0 +1,531 @@ | |||
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>context</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-types.html" title="types"> | ||
10 | <link rel="next" href="libg3d-model.html" title="model"> | ||
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="libg3d-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-model.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-context.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-context.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-context"></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-context.top_of_page"></a>context</span></h2> | ||
34 | <p>context — Libg3d initialization and configuration</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-context.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/g3d.h> | ||
43 | |||
44 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>; | ||
45 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* <a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()">g3d_context_new</a> (void); | ||
46 | void <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()">g3d_context_free</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
47 | <a | ||
48 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
49 | >gboolean</a> (<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">*G3DSetBgColorFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
50 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
51 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
52 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a, | ||
53 | <a | ||
54 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
55 | >gpointer</a> user_data); | ||
56 | <a | ||
57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
58 | >gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">*G3DUpdateInterfaceFunc</a>) (<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-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">*G3DUpdateProgressBarFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
64 | <a | ||
65 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
66 | >gboolean</a> show, | ||
67 | <a | ||
68 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
69 | >gpointer</a> user_data); | ||
70 | <a | ||
71 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
72 | >gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-interface" title="g3d_context_update_interface ()">g3d_context_update_interface</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context); | ||
73 | void <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()">g3d_context_set_update_interface_func</a> | ||
74 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
75 | <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func, | ||
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-context.html#g3d-context-update-progress-bar" title="g3d_context_update_progress_bar ()">g3d_context_update_progress_bar</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
82 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
83 | <a | ||
84 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
85 | >gboolean</a> visibility); | ||
86 | void <a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()">g3d_context_set_update_progress_bar_func</a> | ||
87 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
88 | <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func, | ||
89 | <a | ||
90 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
91 | >gpointer</a> user_data); | ||
92 | <a | ||
93 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
94 | >gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-set-bgcolor" title="g3d_context_set_bgcolor ()">g3d_context_set_bgcolor</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
95 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
96 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
97 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
98 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a); | ||
99 | void <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()">g3d_context_set_set_bgcolor_func</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
100 | <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func, | ||
101 | <a | ||
102 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
103 | >gpointer</a> user_data); | ||
104 | </pre> | ||
105 | </div> | ||
106 | <div class="refsect1" lang="en"> | ||
107 | <a name="libg3d-context.description"></a><h2>Description</h2> | ||
108 | <p> | ||
109 | All state information is saved in the context. It also serves as an | ||
110 | interface to the application.</p> | ||
111 | <p> | ||
112 | |||
113 | </p> | ||
114 | </div> | ||
115 | <div class="refsect1" lang="en"> | ||
116 | <a name="libg3d-context.details"></a><h2>Details</h2> | ||
117 | <div class="refsect2" lang="en"> | ||
118 | <a name="G3DContext"></a><h3>G3DContext</h3> | ||
119 | <pre class="programlisting">typedef struct { | ||
120 | } G3DContext; | ||
121 | </pre> | ||
122 | <p> | ||
123 | Internal stuff for libg3d.</p> | ||
124 | <p> | ||
125 | |||
126 | </p> | ||
127 | </div> | ||
128 | <hr> | ||
129 | <div class="refsect2" lang="en"> | ||
130 | <a name="g3d-context-new"></a><h3>g3d_context_new ()</h3> | ||
131 | <pre class="programlisting"><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* g3d_context_new (void);</pre> | ||
132 | <p> | ||
133 | Create a new context. This initializes the library (and also the | ||
134 | plugin system so this has not to be done seperately).</p> | ||
135 | <p> | ||
136 | |||
137 | </p> | ||
138 | <div class="variablelist"><table border="0"> | ||
139 | <col align="left" valign="top"> | ||
140 | <tbody><tr> | ||
141 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
142 | <td> a valid context, or NULL on failure. | ||
143 | </td> | ||
144 | </tr></tbody> | ||
145 | </table></div> | ||
146 | </div> | ||
147 | <hr> | ||
148 | <div class="refsect2" lang="en"> | ||
149 | <a name="g3d-context-free"></a><h3>g3d_context_free ()</h3> | ||
150 | <pre class="programlisting">void g3d_context_free (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
151 | <p> | ||
152 | Cleans up the context and the plugin system and frees all reserved | ||
153 | memory.</p> | ||
154 | <p> | ||
155 | |||
156 | </p> | ||
157 | <div class="variablelist"><table border="0"> | ||
158 | <col align="left" valign="top"> | ||
159 | <tbody><tr> | ||
160 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
161 | <td> the context to free | ||
162 | </td> | ||
163 | </tr></tbody> | ||
164 | </table></div> | ||
165 | </div> | ||
166 | <hr> | ||
167 | <div class="refsect2" lang="en"> | ||
168 | <a name="G3DSetBgColorFunc"></a><h3>G3DSetBgColorFunc ()</h3> | ||
169 | <pre class="programlisting"><a | ||
170 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
171 | >gboolean</a> (*G3DSetBgColorFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
172 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
173 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
174 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a, | ||
175 | <a | ||
176 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
177 | >gpointer</a> user_data);</pre> | ||
178 | <p> | ||
179 | Background color setting callback.</p> | ||
180 | <p> | ||
181 | |||
182 | </p> | ||
183 | <div class="variablelist"><table border="0"> | ||
184 | <col align="left" valign="top"> | ||
185 | <tbody> | ||
186 | <tr> | ||
187 | <td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td> | ||
188 | <td> red component | ||
189 | </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td> | ||
193 | <td> green component | ||
194 | </td> | ||
195 | </tr> | ||
196 | <tr> | ||
197 | <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td> | ||
198 | <td> blue component | ||
199 | </td> | ||
200 | </tr> | ||
201 | <tr> | ||
202 | <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td> | ||
203 | <td> alpha component | ||
204 | </td> | ||
205 | </tr> | ||
206 | <tr> | ||
207 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
208 | <td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()"><code class="function">g3d_context_set_set_bgcolor_func()</code></a> | ||
209 | </td> | ||
210 | </tr> | ||
211 | <tr> | ||
212 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
213 | <td> TRUE on success, FALSE else. | ||
214 | </td> | ||
215 | </tr> | ||
216 | </tbody> | ||
217 | </table></div> | ||
218 | </div> | ||
219 | <hr> | ||
220 | <div class="refsect2" lang="en"> | ||
221 | <a name="G3DUpdateInterfaceFunc"></a><h3>G3DUpdateInterfaceFunc ()</h3> | ||
222 | <pre class="programlisting"><a | ||
223 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
224 | >gboolean</a> (*G3DUpdateInterfaceFunc) (<a | ||
225 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
226 | >gpointer</a> user_data);</pre> | ||
227 | <p> | ||
228 | Interface updating callback.</p> | ||
229 | <p> | ||
230 | |||
231 | </p> | ||
232 | <div class="variablelist"><table border="0"> | ||
233 | <col align="left" valign="top"> | ||
234 | <tbody> | ||
235 | <tr> | ||
236 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
237 | <td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()"><code class="function">g3d_context_set_update_interface_func()</code></a> | ||
238 | </td> | ||
239 | </tr> | ||
240 | <tr> | ||
241 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
242 | <td> TRUE on success, FALSE else. | ||
243 | </td> | ||
244 | </tr> | ||
245 | </tbody> | ||
246 | </table></div> | ||
247 | </div> | ||
248 | <hr> | ||
249 | <div class="refsect2" lang="en"> | ||
250 | <a name="G3DUpdateProgressBarFunc"></a><h3>G3DUpdateProgressBarFunc ()</h3> | ||
251 | <pre class="programlisting"><a | ||
252 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
253 | >gboolean</a> (*G3DUpdateProgressBarFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
254 | <a | ||
255 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
256 | >gboolean</a> show, | ||
257 | <a | ||
258 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
259 | >gpointer</a> user_data);</pre> | ||
260 | <p> | ||
261 | Progress updating callback.</p> | ||
262 | <p> | ||
263 | |||
264 | </p> | ||
265 | <div class="variablelist"><table border="0"> | ||
266 | <col align="left" valign="top"> | ||
267 | <tbody> | ||
268 | <tr> | ||
269 | <td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td> | ||
270 | <td> progress of plugin operation | ||
271 | </td> | ||
272 | </tr> | ||
273 | <tr> | ||
274 | <td><p><span class="term"><em class="parameter"><code>show</code></em> :</span></p></td> | ||
275 | <td> <a | ||
276 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS" | ||
277 | ><span class="type">TRUE</span></a> if the progress bar should be visible, <a | ||
278 | href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS" | ||
279 | ><span class="type">FALSE</span></a> else | ||
280 | </td> | ||
281 | </tr> | ||
282 | <tr> | ||
283 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
284 | <td> opaque data as given to | ||
285 | <a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()"><code class="function">g3d_context_set_update_progress_bar_func()</code></a> | ||
286 | </td> | ||
287 | </tr> | ||
288 | <tr> | ||
289 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
290 | <td> TRUE on success, FALSE else. | ||
291 | </td> | ||
292 | </tr> | ||
293 | </tbody> | ||
294 | </table></div> | ||
295 | </div> | ||
296 | <hr> | ||
297 | <div class="refsect2" lang="en"> | ||
298 | <a name="g3d-context-update-interface"></a><h3>g3d_context_update_interface ()</h3> | ||
299 | <pre class="programlisting"><a | ||
300 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
301 | >gboolean</a> g3d_context_update_interface (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre> | ||
302 | <p> | ||
303 | Try to update the interface. This will call a function registered with | ||
304 | <em class="parameter"><code>g3d_context_set_update_interface_func</code></em>.</p> | ||
305 | <p> | ||
306 | |||
307 | </p> | ||
308 | <div class="variablelist"><table border="0"> | ||
309 | <col align="left" valign="top"> | ||
310 | <tbody> | ||
311 | <tr> | ||
312 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
313 | <td> a valid context | ||
314 | </td> | ||
315 | </tr> | ||
316 | <tr> | ||
317 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
318 | <td> TRUE on success, FALSE else | ||
319 | </td> | ||
320 | </tr> | ||
321 | </tbody> | ||
322 | </table></div> | ||
323 | </div> | ||
324 | <hr> | ||
325 | <div class="refsect2" lang="en"> | ||
326 | <a name="g3d-context-set-update-interface-func"></a><h3>g3d_context_set_update_interface_func ()</h3> | ||
327 | <pre class="programlisting">void g3d_context_set_update_interface_func | ||
328 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
329 | <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func, | ||
330 | <a | ||
331 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
332 | >gpointer</a> user_data);</pre> | ||
333 | <p> | ||
334 | Registers a callback function for updating the interface.</p> | ||
335 | <p> | ||
336 | |||
337 | </p> | ||
338 | <div class="variablelist"><table border="0"> | ||
339 | <col align="left" valign="top"> | ||
340 | <tbody> | ||
341 | <tr> | ||
342 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
343 | <td> a valid context | ||
344 | </td> | ||
345 | </tr> | ||
346 | <tr> | ||
347 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
348 | <td> the callback function | ||
349 | </td> | ||
350 | </tr> | ||
351 | <tr> | ||
352 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
353 | <td> user-defined opaque pointer | ||
354 | </td> | ||
355 | </tr> | ||
356 | </tbody> | ||
357 | </table></div> | ||
358 | </div> | ||
359 | <hr> | ||
360 | <div class="refsect2" lang="en"> | ||
361 | <a name="g3d-context-update-progress-bar"></a><h3>g3d_context_update_progress_bar ()</h3> | ||
362 | <pre class="programlisting"><a | ||
363 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
364 | >gboolean</a> g3d_context_update_progress_bar (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
365 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage, | ||
366 | <a | ||
367 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
368 | >gboolean</a> visibility);</pre> | ||
369 | <p> | ||
370 | Try to update the progress bar.</p> | ||
371 | <p> | ||
372 | |||
373 | </p> | ||
374 | <div class="variablelist"><table border="0"> | ||
375 | <col align="left" valign="top"> | ||
376 | <tbody> | ||
377 | <tr> | ||
378 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
379 | <td> a valid context | ||
380 | </td> | ||
381 | </tr> | ||
382 | <tr> | ||
383 | <td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td> | ||
384 | <td> the percentage to set on the progress bar | ||
385 | </td> | ||
386 | </tr> | ||
387 | <tr> | ||
388 | <td><p><span class="term"><em class="parameter"><code>visibility</code></em> :</span></p></td> | ||
389 | <td> show or hide the progress bar | ||
390 | </td> | ||
391 | </tr> | ||
392 | <tr> | ||
393 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
394 | <td> TRUE on success, FALSE else | ||
395 | </td> | ||
396 | </tr> | ||
397 | </tbody> | ||
398 | </table></div> | ||
399 | </div> | ||
400 | <hr> | ||
401 | <div class="refsect2" lang="en"> | ||
402 | <a name="g3d-context-set-update-progress-bar-func"></a><h3>g3d_context_set_update_progress_bar_func ()</h3> | ||
403 | <pre class="programlisting">void g3d_context_set_update_progress_bar_func | ||
404 | (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
405 | <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func, | ||
406 | <a | ||
407 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
408 | >gpointer</a> user_data);</pre> | ||
409 | <p> | ||
410 | Registers a callback function for updating the progress bar.</p> | ||
411 | <p> | ||
412 | |||
413 | </p> | ||
414 | <div class="variablelist"><table border="0"> | ||
415 | <col align="left" valign="top"> | ||
416 | <tbody> | ||
417 | <tr> | ||
418 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
419 | <td> a valid context | ||
420 | </td> | ||
421 | </tr> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
424 | <td> the callback function | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
429 | <td> user-defined opaque pointer | ||
430 | </td> | ||
431 | </tr> | ||
432 | </tbody> | ||
433 | </table></div> | ||
434 | </div> | ||
435 | <hr> | ||
436 | <div class="refsect2" lang="en"> | ||
437 | <a name="g3d-context-set-bgcolor"></a><h3>g3d_context_set_bgcolor ()</h3> | ||
438 | <pre class="programlisting"><a | ||
439 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
440 | >gboolean</a> g3d_context_set_bgcolor (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
441 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r, | ||
442 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g, | ||
443 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b, | ||
444 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);</pre> | ||
445 | <p> | ||
446 | Try to set the background color. This will call a function registered | ||
447 | with <em class="parameter"><code>g3d_context_set_set_bgcolor_func</code></em>.</p> | ||
448 | <p> | ||
449 | |||
450 | </p> | ||
451 | <div class="variablelist"><table border="0"> | ||
452 | <col align="left" valign="top"> | ||
453 | <tbody> | ||
454 | <tr> | ||
455 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
456 | <td> a valid context | ||
457 | </td> | ||
458 | </tr> | ||
459 | <tr> | ||
460 | <td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td> | ||
461 | <td> red component (range: 0.0 .. 1.0) | ||
462 | </td> | ||
463 | </tr> | ||
464 | <tr> | ||
465 | <td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td> | ||
466 | <td> green component (range: 0.0 .. 1.0) | ||
467 | </td> | ||
468 | </tr> | ||
469 | <tr> | ||
470 | <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td> | ||
471 | <td> green component (range: 0.0 .. 1.0) | ||
472 | </td> | ||
473 | </tr> | ||
474 | <tr> | ||
475 | <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td> | ||
476 | <td> alpha component | ||
477 | </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
481 | <td> TRUE on success, FALSE else | ||
482 | </td> | ||
483 | </tr> | ||
484 | </tbody> | ||
485 | </table></div> | ||
486 | </div> | ||
487 | <hr> | ||
488 | <div class="refsect2" lang="en"> | ||
489 | <a name="g3d-context-set-set-bgcolor-func"></a><h3>g3d_context_set_set_bgcolor_func ()</h3> | ||
490 | <pre class="programlisting">void g3d_context_set_set_bgcolor_func (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
491 | <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func, | ||
492 | <a | ||
493 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
494 | >gpointer</a> user_data);</pre> | ||
495 | <p> | ||
496 | Registers a callback function for setting the background color.</p> | ||
497 | <p> | ||
498 | |||
499 | </p> | ||
500 | <div class="variablelist"><table border="0"> | ||
501 | <col align="left" valign="top"> | ||
502 | <tbody> | ||
503 | <tr> | ||
504 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
505 | <td> a valid context | ||
506 | </td> | ||
507 | </tr> | ||
508 | <tr> | ||
509 | <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td> | ||
510 | <td> the callback function | ||
511 | </td> | ||
512 | </tr> | ||
513 | <tr> | ||
514 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> | ||
515 | <td> user-defined opaque pointer | ||
516 | </td> | ||
517 | </tr> | ||
518 | </tbody> | ||
519 | </table></div> | ||
520 | </div> | ||
521 | </div> | ||
522 | <div class="refsect1" lang="en"> | ||
523 | <a name="libg3d-context.see-also"></a><h2>See Also</h2> | ||
524 | <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a> | ||
525 | </div> | ||
526 | </div> | ||
527 | <div class="footer"> | ||
528 | <hr> | ||
529 | Generated by GTK-Doc V1.10</div> | ||
530 | </body> | ||
531 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html new file mode 100644 index 0000000..5ae49f3 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html | |||
@@ -0,0 +1,255 @@ | |||
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>face</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-object.html" title="object"> | ||
10 | <link rel="next" href="libg3d-material.html" title="material"> | ||
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="libg3d-object.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-material.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-face.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-face.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-face"></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-face.top_of_page"></a>face</span></h2> | ||
34 | <p>face — Face manipulation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-face.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/face.h> | ||
43 | |||
44 | #define <a class="link" href="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS" title="G3D_FLAG_MAT_TWOSIDE">G3D_FLAG_MAT_TWOSIDE</a> | ||
45 | #define <a class="link" href="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS" title="G3D_FLAG_FAC_NORMALS">G3D_FLAG_FAC_NORMALS</a> | ||
46 | #define <a class="link" href="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS" title="G3D_FLAG_FAC_TEXMAP">G3D_FLAG_FAC_TEXMAP</a> | ||
47 | <a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a>; | ||
48 | <a | ||
49 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
50 | >gboolean</a> <a class="link" href="libg3d-face.html#g3d-face-get-normal" title="g3d_face_get_normal ()">g3d_face_get_normal</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face, | ||
51 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
52 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
53 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
54 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz); | ||
55 | void <a class="link" href="libg3d-face.html#g3d-face-free" title="g3d_face_free ()">g3d_face_free</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face); | ||
56 | </pre> | ||
57 | </div> | ||
58 | <div class="refsect1" lang="en"> | ||
59 | <a name="libg3d-face.description"></a><h2>Description</h2> | ||
60 | <p> | ||
61 | A face is plane bordered by at least 3 vertices.</p> | ||
62 | <p> | ||
63 | |||
64 | </p> | ||
65 | </div> | ||
66 | <div class="refsect1" lang="en"> | ||
67 | <a name="libg3d-face.details"></a><h2>Details</h2> | ||
68 | <div class="refsect2" lang="en"> | ||
69 | <a name="G3D-FLAG-MAT-TWOSIDE:CAPS"></a><h3>G3D_FLAG_MAT_TWOSIDE</h3> | ||
70 | <pre class="programlisting">#define G3D_FLAG_MAT_TWOSIDE (1L << 0) | ||
71 | </pre> | ||
72 | <p> | ||
73 | Faces using this material should be rendered two-sided as the direction | ||
74 | is unknown.</p> | ||
75 | <p> | ||
76 | |||
77 | </p> | ||
78 | </div> | ||
79 | <hr> | ||
80 | <div class="refsect2" lang="en"> | ||
81 | <a name="G3D-FLAG-FAC-NORMALS:CAPS"></a><h3>G3D_FLAG_FAC_NORMALS</h3> | ||
82 | <pre class="programlisting">#define G3D_FLAG_FAC_NORMALS (1L << 0) | ||
83 | </pre> | ||
84 | <p> | ||
85 | The face has custom normals.</p> | ||
86 | <p> | ||
87 | |||
88 | </p> | ||
89 | </div> | ||
90 | <hr> | ||
91 | <div class="refsect2" lang="en"> | ||
92 | <a name="G3D-FLAG-FAC-TEXMAP:CAPS"></a><h3>G3D_FLAG_FAC_TEXMAP</h3> | ||
93 | <pre class="programlisting">#define G3D_FLAG_FAC_TEXMAP (1L << 1) | ||
94 | </pre> | ||
95 | <p> | ||
96 | The face has a texture map and texture coordinates.</p> | ||
97 | <p> | ||
98 | |||
99 | </p> | ||
100 | </div> | ||
101 | <hr> | ||
102 | <div class="refsect2" lang="en"> | ||
103 | <a name="G3DFace"></a><h3>G3DFace</h3> | ||
104 | <pre class="programlisting">typedef struct { | ||
105 | guint32 vertex_count; | ||
106 | guint32 *vertex_indices; | ||
107 | |||
108 | G3DMaterial *material; | ||
109 | |||
110 | guint32 flags; | ||
111 | |||
112 | G3DVector *normals; | ||
113 | |||
114 | G3DImage *tex_image; | ||
115 | guint32 tex_vertex_count; | ||
116 | G3DVector *tex_vertex_data; | ||
117 | } G3DFace; | ||
118 | </pre> | ||
119 | <p> | ||
120 | An object representing a surface.</p> | ||
121 | <p> | ||
122 | |||
123 | </p> | ||
124 | <div class="variablelist"><table border="0"> | ||
125 | <col align="left" valign="top"> | ||
126 | <tbody> | ||
127 | <tr> | ||
128 | <td><p><span class="term"><a | ||
129 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
130 | >guint32</a> <em class="structfield"><code>vertex_count</code></em>;</span></p></td> | ||
131 | <td> number of vertices | ||
132 | </td> | ||
133 | </tr> | ||
134 | <tr> | ||
135 | <td><p><span class="term"><a | ||
136 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
137 | >guint32</a> *<em class="structfield"><code>vertex_indices</code></em>;</span></p></td> | ||
138 | <td> indices of vertices in <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject"><span class="type">G3DObject</span></a> | ||
139 | </td> | ||
140 | </tr> | ||
141 | <tr> | ||
142 | <td><p><span class="term"><a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *<em class="structfield"><code>material</code></em>;</span></p></td> | ||
143 | <td> material to use for surface | ||
144 | </td> | ||
145 | </tr> | ||
146 | <tr> | ||
147 | <td><p><span class="term"><a | ||
148 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
149 | >guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td> | ||
150 | <td> flags | ||
151 | </td> | ||
152 | </tr> | ||
153 | <tr> | ||
154 | <td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>normals</code></em>;</span></p></td> | ||
155 | <td> optional normal array (one vector - 3 <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector"><span class="type">G3DVector</span></a> values - for each | ||
156 | vertex) | ||
157 | </td> | ||
158 | </tr> | ||
159 | <tr> | ||
160 | <td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *<em class="structfield"><code>tex_image</code></em>;</span></p></td> | ||
161 | <td> optional texture image | ||
162 | </td> | ||
163 | </tr> | ||
164 | <tr> | ||
165 | <td><p><span class="term"><a | ||
166 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
167 | >guint32</a> <em class="structfield"><code>tex_vertex_count</code></em>;</span></p></td> | ||
168 | <td> number of texture vertices, should be 0 or match | ||
169 | vertex_count | ||
170 | </td> | ||
171 | </tr> | ||
172 | <tr> | ||
173 | <td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>tex_vertex_data</code></em>;</span></p></td> | ||
174 | <td> array of texture vertices | ||
175 | </td> | ||
176 | </tr> | ||
177 | </tbody> | ||
178 | </table></div> | ||
179 | </div> | ||
180 | <hr> | ||
181 | <div class="refsect2" lang="en"> | ||
182 | <a name="g3d-face-get-normal"></a><h3>g3d_face_get_normal ()</h3> | ||
183 | <pre class="programlisting"><a | ||
184 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
185 | >gboolean</a> g3d_face_get_normal (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face, | ||
186 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
187 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
188 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
189 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre> | ||
190 | <p> | ||
191 | calculates the normal of a face.</p> | ||
192 | <p> | ||
193 | |||
194 | </p> | ||
195 | <div class="variablelist"><table border="0"> | ||
196 | <col align="left" valign="top"> | ||
197 | <tbody> | ||
198 | <tr> | ||
199 | <td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td> | ||
200 | <td> face to calculate normal of | ||
201 | </td> | ||
202 | </tr> | ||
203 | <tr> | ||
204 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
205 | <td> object containing vertices of face | ||
206 | </td> | ||
207 | </tr> | ||
208 | <tr> | ||
209 | <td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td> | ||
210 | <td> x component of resulting normal | ||
211 | </td> | ||
212 | </tr> | ||
213 | <tr> | ||
214 | <td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td> | ||
215 | <td> y component of resulting normal | ||
216 | </td> | ||
217 | </tr> | ||
218 | <tr> | ||
219 | <td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td> | ||
220 | <td> z component of resulting normal | ||
221 | </td> | ||
222 | </tr> | ||
223 | <tr> | ||
224 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
225 | <td> TRUE on success, FALSE else | ||
226 | </td> | ||
227 | </tr> | ||
228 | </tbody> | ||
229 | </table></div> | ||
230 | </div> | ||
231 | <hr> | ||
232 | <div class="refsect2" lang="en"> | ||
233 | <a name="g3d-face-free"></a><h3>g3d_face_free ()</h3> | ||
234 | <pre class="programlisting">void g3d_face_free (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face);</pre> | ||
235 | <p> | ||
236 | Frees all memory allocated for this face.</p> | ||
237 | <p> | ||
238 | |||
239 | </p> | ||
240 | <div class="variablelist"><table border="0"> | ||
241 | <col align="left" valign="top"> | ||
242 | <tbody><tr> | ||
243 | <td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td> | ||
244 | <td> the face to free | ||
245 | </td> | ||
246 | </tr></tbody> | ||
247 | </table></div> | ||
248 | </div> | ||
249 | </div> | ||
250 | </div> | ||
251 | <div class="footer"> | ||
252 | <hr> | ||
253 | Generated by GTK-Doc V1.10</div> | ||
254 | </body> | ||
255 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html new file mode 100644 index 0000000..69e560e --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html | |||
@@ -0,0 +1,872 @@ | |||
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>iff</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="libg3d-stream.html" title="stream"> | ||
10 | <link rel="next" href="libg3d-read.html" title="read"> | ||
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="libg3d-stream.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-read.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-iff.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-iff.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-iff"></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-iff.top_of_page"></a>iff</span></h2> | ||
34 | <p>iff — IFF file helper functions</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-iff.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/iff.h> | ||
43 | |||
44 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD1:CAPS" title="G3D_IFF_PAD1">G3D_IFF_PAD1</a> | ||
45 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD2:CAPS" title="G3D_IFF_PAD2">G3D_IFF_PAD2</a> | ||
46 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD4:CAPS" title="G3D_IFF_PAD4">G3D_IFF_PAD4</a> | ||
47 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD8:CAPS" title="G3D_IFF_PAD8">G3D_IFF_PAD8</a> | ||
48 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-LE:CAPS" title="G3D_IFF_LE">G3D_IFF_LE</a> | ||
49 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-LEN16:CAPS" title="G3D_IFF_LEN16">G3D_IFF_LEN16</a> | ||
50 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS" title="G3D_IFF_SUBCHUNK_LEN16">G3D_IFF_SUBCHUNK_LEN16</a> | ||
51 | #define <a class="link" href="libg3d-iff.html#G3D-IFF-MKID:CAPS" title="G3D_IFF_MKID()">G3D_IFF_MKID</a> (a,b,c,d) | ||
52 | <a | ||
53 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
54 | >gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-check" title="g3d_iff_check ()">g3d_iff_check</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
55 | <a | ||
56 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
57 | >guint32</a> *id, | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
60 | >gsize</a> *len); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
63 | >gsize</a> <a class="link" href="libg3d-iff.html#g3d-iff-read-chunk" title="g3d_iff_read_chunk ()">g3d_iff_read_chunk</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
64 | <a | ||
65 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
66 | >guint32</a> *id, | ||
67 | <a | ||
68 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
69 | >gsize</a> *len, | ||
70 | <a | ||
71 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
72 | >guint32</a> flags); | ||
73 | <a | ||
74 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
75 | >gpointer</a> <a class="link" href="libg3d-iff.html#g3d-iff-handle-chunk" title="g3d_iff_handle_chunk ()">g3d_iff_handle_chunk</a> (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
76 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *plocal, | ||
77 | <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks, | ||
78 | <a | ||
79 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
80 | >guint32</a> flags); | ||
81 | <a | ||
82 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
83 | >gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-chunk-matches" title="g3d_iff_chunk_matches ()">g3d_iff_chunk_matches</a> (<a | ||
84 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
85 | >guint32</a> id, | ||
86 | <a | ||
87 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
88 | >gchar</a> *tid); | ||
89 | <a | ||
90 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
91 | >gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-read-ctnr" title="g3d_iff_read_ctnr ()">g3d_iff_read_ctnr</a> (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
92 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local, | ||
93 | <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks, | ||
94 | <a | ||
95 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
96 | >guint32</a> flags); | ||
97 | <a | ||
98 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
99 | >gchar</a>* <a class="link" href="libg3d-iff.html#g3d-iff-id-to-text" title="g3d_iff_id_to_text ()">g3d_iff_id_to_text</a> (<a | ||
100 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
101 | >guint32</a> id); | ||
102 | FILE* <a class="link" href="libg3d-iff.html#g3d-iff-open" title="g3d_iff_open ()">g3d_iff_open</a> (const <a | ||
103 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
104 | >gchar</a> *filename, | ||
105 | <a | ||
106 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
107 | >guint32</a> *id, | ||
108 | <a | ||
109 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
110 | >guint32</a> *len); | ||
111 | int <a class="link" href="libg3d-iff.html#g3d-iff-readchunk" title="g3d_iff_readchunk ()">g3d_iff_readchunk</a> (FILE *f, | ||
112 | <a | ||
113 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
114 | >guint32</a> *id, | ||
115 | <a | ||
116 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
117 | >guint32</a> *len, | ||
118 | <a | ||
119 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
120 | >guint32</a> flags); | ||
121 | <a | ||
122 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
123 | >gboolean</a> (<a class="link" href="libg3d-iff.html#G3DIffChunkCallback" title="G3DIffChunkCallback ()">*G3DIffChunkCallback</a>) (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
124 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local); | ||
125 | #define <a class="link" href="libg3d-iff.html#g3d-iff-chunk-callback" title="g3d_iff_chunk_callback">g3d_iff_chunk_callback</a> | ||
126 | <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a>; | ||
127 | #define <a class="link" href="libg3d-iff.html#g3d-iff-chunk-info" title="g3d_iff_chunk_info">g3d_iff_chunk_info</a> | ||
128 | <a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a>; | ||
129 | #define <a class="link" href="libg3d-iff.html#g3d-iff-gdata" title="g3d_iff_gdata">g3d_iff_gdata</a> | ||
130 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a>; | ||
131 | #define <a class="link" href="libg3d-iff.html#g3d-iff-ldata" title="g3d_iff_ldata">g3d_iff_ldata</a> | ||
132 | </pre> | ||
133 | </div> | ||
134 | <div class="refsect1" lang="en"> | ||
135 | <a name="libg3d-iff.description"></a><h2>Description</h2> | ||
136 | <p> | ||
137 | These are helper functions to read data from the Interchange File Format | ||
138 | (IFF).</p> | ||
139 | <p> | ||
140 | |||
141 | </p> | ||
142 | </div> | ||
143 | <div class="refsect1" lang="en"> | ||
144 | <a name="libg3d-iff.details"></a><h2>Details</h2> | ||
145 | <div class="refsect2" lang="en"> | ||
146 | <a name="G3D-IFF-PAD1:CAPS"></a><h3>G3D_IFF_PAD1</h3> | ||
147 | <pre class="programlisting">#define G3D_IFF_PAD1 0x01 | ||
148 | </pre> | ||
149 | <p> | ||
150 | No padding is done after chunks.</p> | ||
151 | <p> | ||
152 | |||
153 | </p> | ||
154 | </div> | ||
155 | <hr> | ||
156 | <div class="refsect2" lang="en"> | ||
157 | <a name="G3D-IFF-PAD2:CAPS"></a><h3>G3D_IFF_PAD2</h3> | ||
158 | <pre class="programlisting">#define G3D_IFF_PAD2 0x02 | ||
159 | </pre> | ||
160 | <p> | ||
161 | Chunks are 2-byte aligned</p> | ||
162 | <p> | ||
163 | |||
164 | </p> | ||
165 | </div> | ||
166 | <hr> | ||
167 | <div class="refsect2" lang="en"> | ||
168 | <a name="G3D-IFF-PAD4:CAPS"></a><h3>G3D_IFF_PAD4</h3> | ||
169 | <pre class="programlisting">#define G3D_IFF_PAD4 0x04 | ||
170 | </pre> | ||
171 | <p> | ||
172 | Chunks are 4-byte aligned</p> | ||
173 | <p> | ||
174 | |||
175 | </p> | ||
176 | </div> | ||
177 | <hr> | ||
178 | <div class="refsect2" lang="en"> | ||
179 | <a name="G3D-IFF-PAD8:CAPS"></a><h3>G3D_IFF_PAD8</h3> | ||
180 | <pre class="programlisting">#define G3D_IFF_PAD8 0x08 | ||
181 | </pre> | ||
182 | <p> | ||
183 | Chunks are 8-byte aligned</p> | ||
184 | <p> | ||
185 | |||
186 | </p> | ||
187 | </div> | ||
188 | <hr> | ||
189 | <div class="refsect2" lang="en"> | ||
190 | <a name="G3D-IFF-LE:CAPS"></a><h3>G3D_IFF_LE</h3> | ||
191 | <pre class="programlisting">#define G3D_IFF_LE 0x40 /* little endian */ | ||
192 | </pre> | ||
193 | <p> | ||
194 | The file has little-endian data.</p> | ||
195 | <p> | ||
196 | |||
197 | </p> | ||
198 | </div> | ||
199 | <hr> | ||
200 | <div class="refsect2" lang="en"> | ||
201 | <a name="G3D-IFF-LEN16:CAPS"></a><h3>G3D_IFF_LEN16</h3> | ||
202 | <pre class="programlisting">#define G3D_IFF_LEN16 0x20 | ||
203 | </pre> | ||
204 | <p> | ||
205 | All chunks have 16-bit sizes.</p> | ||
206 | <p> | ||
207 | |||
208 | </p> | ||
209 | </div> | ||
210 | <hr> | ||
211 | <div class="refsect2" lang="en"> | ||
212 | <a name="G3D-IFF-SUBCHUNK-LEN16:CAPS"></a><h3>G3D_IFF_SUBCHUNK_LEN16</h3> | ||
213 | <pre class="programlisting">#define G3D_IFF_SUBCHUNK_LEN16 0x10 | ||
214 | </pre> | ||
215 | <p> | ||
216 | All chunks except the toplevel ones have 16-bit sizes.</p> | ||
217 | <p> | ||
218 | |||
219 | </p> | ||
220 | </div> | ||
221 | <hr> | ||
222 | <div class="refsect2" lang="en"> | ||
223 | <a name="G3D-IFF-MKID:CAPS"></a><h3>G3D_IFF_MKID()</h3> | ||
224 | <pre class="programlisting">#define G3D_IFF_MKID(a,b,c,d)</pre> | ||
225 | <p> | ||
226 | Generate an IFF chunk identifier from character representation, e.g. | ||
227 | G3D_IFF_MKID('F','O','R','M').</p> | ||
228 | <p> | ||
229 | |||
230 | </p> | ||
231 | <div class="variablelist"><table border="0"> | ||
232 | <col align="left" valign="top"> | ||
233 | <tbody> | ||
234 | <tr> | ||
235 | <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td> | ||
236 | <td> first byte | ||
237 | </td> | ||
238 | </tr> | ||
239 | <tr> | ||
240 | <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td> | ||
241 | <td> second byte | ||
242 | </td> | ||
243 | </tr> | ||
244 | <tr> | ||
245 | <td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td> | ||
246 | <td> third byte | ||
247 | </td> | ||
248 | </tr> | ||
249 | <tr> | ||
250 | <td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td> | ||
251 | <td> fourth byte | ||
252 | </td> | ||
253 | </tr> | ||
254 | </tbody> | ||
255 | </table></div> | ||
256 | </div> | ||
257 | <hr> | ||
258 | <div class="refsect2" lang="en"> | ||
259 | <a name="g3d-iff-check"></a><h3>g3d_iff_check ()</h3> | ||
260 | <pre class="programlisting"><a | ||
261 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
262 | >gboolean</a> g3d_iff_check (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
263 | <a | ||
264 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
265 | >guint32</a> *id, | ||
266 | <a | ||
267 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
268 | >gsize</a> *len);</pre> | ||
269 | <p> | ||
270 | Checks a stream for a valid IFF signature and reads the top level container.</p> | ||
271 | <p> | ||
272 | |||
273 | </p> | ||
274 | <div class="variablelist"><table border="0"> | ||
275 | <col align="left" valign="top"> | ||
276 | <tbody> | ||
277 | <tr> | ||
278 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
279 | <td> stream containing IFF file to check | ||
280 | </td> | ||
281 | </tr> | ||
282 | <tr> | ||
283 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
284 | <td> top level ID (out) | ||
285 | </td> | ||
286 | </tr> | ||
287 | <tr> | ||
288 | <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> | ||
289 | <td> length of top level container (out) | ||
290 | </td> | ||
291 | </tr> | ||
292 | <tr> | ||
293 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
294 | <td> TRUE on success (valid IFF), FALSE else | ||
295 | </td> | ||
296 | </tr> | ||
297 | </tbody> | ||
298 | </table></div> | ||
299 | </div> | ||
300 | <hr> | ||
301 | <div class="refsect2" lang="en"> | ||
302 | <a name="g3d-iff-read-chunk"></a><h3>g3d_iff_read_chunk ()</h3> | ||
303 | <pre class="programlisting"><a | ||
304 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
305 | >gsize</a> g3d_iff_read_chunk (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
306 | <a | ||
307 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
308 | >guint32</a> *id, | ||
309 | <a | ||
310 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
311 | >gsize</a> *len, | ||
312 | <a | ||
313 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
314 | >guint32</a> flags);</pre> | ||
315 | <p> | ||
316 | Reads one chunk header from an IFF file.</p> | ||
317 | <p> | ||
318 | |||
319 | </p> | ||
320 | <div class="variablelist"><table border="0"> | ||
321 | <col align="left" valign="top"> | ||
322 | <tbody> | ||
323 | <tr> | ||
324 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
325 | <td> stream to read from | ||
326 | </td> | ||
327 | </tr> | ||
328 | <tr> | ||
329 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
330 | <td> ID of chunk (out) | ||
331 | </td> | ||
332 | </tr> | ||
333 | <tr> | ||
334 | <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> | ||
335 | <td> length of chunk (excluding header) (out) | ||
336 | </td> | ||
337 | </tr> | ||
338 | <tr> | ||
339 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
340 | <td> flags | ||
341 | </td> | ||
342 | </tr> | ||
343 | <tr> | ||
344 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
345 | <td> real length of chunk including header and possible padding byte | ||
346 | </td> | ||
347 | </tr> | ||
348 | </tbody> | ||
349 | </table></div> | ||
350 | </div> | ||
351 | <hr> | ||
352 | <div class="refsect2" lang="en"> | ||
353 | <a name="g3d-iff-handle-chunk"></a><h3>g3d_iff_handle_chunk ()</h3> | ||
354 | <pre class="programlisting"><a | ||
355 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
356 | >gpointer</a> g3d_iff_handle_chunk (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
357 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *plocal, | ||
358 | <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks, | ||
359 | <a | ||
360 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
361 | >guint32</a> flags);</pre> | ||
362 | <p> | ||
363 | Handle an IFF chunk based on chunk description.</p> | ||
364 | <p> | ||
365 | |||
366 | </p> | ||
367 | <div class="variablelist"><table border="0"> | ||
368 | <col align="left" valign="top"> | ||
369 | <tbody> | ||
370 | <tr> | ||
371 | <td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td> | ||
372 | <td> global data | ||
373 | </td> | ||
374 | </tr> | ||
375 | <tr> | ||
376 | <td><p><span class="term"><em class="parameter"><code>plocal</code></em> :</span></p></td> | ||
377 | <td> local data of parent chunk, must not be NULL | ||
378 | </td> | ||
379 | </tr> | ||
380 | <tr> | ||
381 | <td><p><span class="term"><em class="parameter"><code>chunks</code></em> :</span></p></td> | ||
382 | <td> chunk description list | ||
383 | </td> | ||
384 | </tr> | ||
385 | <tr> | ||
386 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
387 | <td> IFF flags | ||
388 | </td> | ||
389 | </tr> | ||
390 | <tr> | ||
391 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
392 | <td> level object for siblings, may be NULL. | ||
393 | </td> | ||
394 | </tr> | ||
395 | </tbody> | ||
396 | </table></div> | ||
397 | </div> | ||
398 | <hr> | ||
399 | <div class="refsect2" lang="en"> | ||
400 | <a name="g3d-iff-chunk-matches"></a><h3>g3d_iff_chunk_matches ()</h3> | ||
401 | <pre class="programlisting"><a | ||
402 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
403 | >gboolean</a> g3d_iff_chunk_matches (<a | ||
404 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
405 | >guint32</a> id, | ||
406 | <a | ||
407 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
408 | >gchar</a> *tid);</pre> | ||
409 | <p> | ||
410 | Check whether <em class="parameter"><code>id</code></em> and <em class="parameter"><code>tid</code></em> match.</p> | ||
411 | <p> | ||
412 | |||
413 | </p> | ||
414 | <div class="variablelist"><table border="0"> | ||
415 | <col align="left" valign="top"> | ||
416 | <tbody> | ||
417 | <tr> | ||
418 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
419 | <td> IFF identifier | ||
420 | </td> | ||
421 | </tr> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>tid</code></em> :</span></p></td> | ||
424 | <td> textual representation of identifier | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
429 | <td> TRUE on match, FALSE else. | ||
430 | </td> | ||
431 | </tr> | ||
432 | </tbody> | ||
433 | </table></div> | ||
434 | </div> | ||
435 | <hr> | ||
436 | <div class="refsect2" lang="en"> | ||
437 | <a name="g3d-iff-read-ctnr"></a><h3>g3d_iff_read_ctnr ()</h3> | ||
438 | <pre class="programlisting"><a | ||
439 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
440 | >gboolean</a> g3d_iff_read_ctnr (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
441 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local, | ||
442 | <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks, | ||
443 | <a | ||
444 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
445 | >guint32</a> flags);</pre> | ||
446 | <p> | ||
447 | Read subchunks in current chunk and handle them appropriately.</p> | ||
448 | <p> | ||
449 | |||
450 | </p> | ||
451 | <div class="variablelist"><table border="0"> | ||
452 | <col align="left" valign="top"> | ||
453 | <tbody> | ||
454 | <tr> | ||
455 | <td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td> | ||
456 | <td> global data | ||
457 | </td> | ||
458 | </tr> | ||
459 | <tr> | ||
460 | <td><p><span class="term"><em class="parameter"><code>local</code></em> :</span></p></td> | ||
461 | <td> local data of current chunk, must not be NULL | ||
462 | </td> | ||
463 | </tr> | ||
464 | <tr> | ||
465 | <td><p><span class="term"><em class="parameter"><code>chunks</code></em> :</span></p></td> | ||
466 | <td> chunk description list | ||
467 | </td> | ||
468 | </tr> | ||
469 | <tr> | ||
470 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
471 | <td> IFF flags | ||
472 | </td> | ||
473 | </tr> | ||
474 | <tr> | ||
475 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
476 | <td> TRUE on success, FALSE else. | ||
477 | </td> | ||
478 | </tr> | ||
479 | </tbody> | ||
480 | </table></div> | ||
481 | </div> | ||
482 | <hr> | ||
483 | <div class="refsect2" lang="en"> | ||
484 | <a name="g3d-iff-id-to-text"></a><h3>g3d_iff_id_to_text ()</h3> | ||
485 | <pre class="programlisting"><a | ||
486 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
487 | >gchar</a>* g3d_iff_id_to_text (<a | ||
488 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
489 | >guint32</a> id);</pre> | ||
490 | <p> | ||
491 | Get the text representation of an IFF chunk identifier.</p> | ||
492 | <p> | ||
493 | |||
494 | </p> | ||
495 | <div class="variablelist"><table border="0"> | ||
496 | <col align="left" valign="top"> | ||
497 | <tbody> | ||
498 | <tr> | ||
499 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
500 | <td> an IFF identifier | ||
501 | </td> | ||
502 | </tr> | ||
503 | <tr> | ||
504 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
505 | <td> a newly allocated string containing the text identifier. | ||
506 | </td> | ||
507 | </tr> | ||
508 | </tbody> | ||
509 | </table></div> | ||
510 | </div> | ||
511 | <hr> | ||
512 | <div class="refsect2" lang="en"> | ||
513 | <a name="g3d-iff-open"></a><h3>g3d_iff_open ()</h3> | ||
514 | <pre class="programlisting">FILE* g3d_iff_open (const <a | ||
515 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
516 | >gchar</a> *filename, | ||
517 | <a | ||
518 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
519 | >guint32</a> *id, | ||
520 | <a | ||
521 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
522 | >guint32</a> *len);</pre> | ||
523 | <p> | ||
524 | Opens an IFF file, checks it and reads its top level container.</p> | ||
525 | <p> | ||
526 | |||
527 | </p> | ||
528 | <div class="variablelist"><table border="0"> | ||
529 | <col align="left" valign="top"> | ||
530 | <tbody> | ||
531 | <tr> | ||
532 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
533 | <td> file name of IFF file | ||
534 | </td> | ||
535 | </tr> | ||
536 | <tr> | ||
537 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
538 | <td> top level ID (out) | ||
539 | </td> | ||
540 | </tr> | ||
541 | <tr> | ||
542 | <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> | ||
543 | <td> length of top level container (out) | ||
544 | </td> | ||
545 | </tr> | ||
546 | <tr> | ||
547 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
548 | <td> the file pointer of open file or NULL in case of an error | ||
549 | </td> | ||
550 | </tr> | ||
551 | </tbody> | ||
552 | </table></div> | ||
553 | </div> | ||
554 | <hr> | ||
555 | <div class="refsect2" lang="en"> | ||
556 | <a name="g3d-iff-readchunk"></a><h3>g3d_iff_readchunk ()</h3> | ||
557 | <pre class="programlisting">int g3d_iff_readchunk (FILE *f, | ||
558 | <a | ||
559 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
560 | >guint32</a> *id, | ||
561 | <a | ||
562 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
563 | >guint32</a> *len, | ||
564 | <a | ||
565 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
566 | >guint32</a> flags);</pre> | ||
567 | <p> | ||
568 | Reads one chunk header from an IFF file.</p> | ||
569 | <p> | ||
570 | |||
571 | </p> | ||
572 | <div class="variablelist"><table border="0"> | ||
573 | <col align="left" valign="top"> | ||
574 | <tbody> | ||
575 | <tr> | ||
576 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
577 | <td> the open IFF file pointer | ||
578 | </td> | ||
579 | </tr> | ||
580 | <tr> | ||
581 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
582 | <td> ID of chunk (out) | ||
583 | </td> | ||
584 | </tr> | ||
585 | <tr> | ||
586 | <td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td> | ||
587 | <td> length of chunk (excluding header) (out) | ||
588 | </td> | ||
589 | </tr> | ||
590 | <tr> | ||
591 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
592 | <td> flags | ||
593 | </td> | ||
594 | </tr> | ||
595 | <tr> | ||
596 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
597 | <td> real length of chunk including header and possible padding byte | ||
598 | </td> | ||
599 | </tr> | ||
600 | </tbody> | ||
601 | </table></div> | ||
602 | </div> | ||
603 | <hr> | ||
604 | <div class="refsect2" lang="en"> | ||
605 | <a name="G3DIffChunkCallback"></a><h3>G3DIffChunkCallback ()</h3> | ||
606 | <pre class="programlisting"><a | ||
607 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
608 | >gboolean</a> (*G3DIffChunkCallback) (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global, | ||
609 | <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local);</pre> | ||
610 | <p> | ||
611 | IFF callback function prototype.</p> | ||
612 | <p> | ||
613 | |||
614 | </p> | ||
615 | <div class="variablelist"><table border="0"> | ||
616 | <col align="left" valign="top"> | ||
617 | <tbody> | ||
618 | <tr> | ||
619 | <td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td> | ||
620 | <td> the global data | ||
621 | </td> | ||
622 | </tr> | ||
623 | <tr> | ||
624 | <td><p><span class="term"><em class="parameter"><code>local</code></em> :</span></p></td> | ||
625 | <td> the local data | ||
626 | </td> | ||
627 | </tr> | ||
628 | <tr> | ||
629 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
630 | <td> TRUE on success, FALSE else. | ||
631 | </td> | ||
632 | </tr> | ||
633 | </tbody> | ||
634 | </table></div> | ||
635 | </div> | ||
636 | <hr> | ||
637 | <div class="refsect2" lang="en"> | ||
638 | <a name="g3d-iff-chunk-callback"></a><h3>g3d_iff_chunk_callback</h3> | ||
639 | <pre class="programlisting">#define g3d_iff_chunk_callback G3DIffChunkCallback | ||
640 | </pre> | ||
641 | <p> | ||
642 | IFF chunk callback (deprecated).</p> | ||
643 | <p> | ||
644 | |||
645 | </p> | ||
646 | </div> | ||
647 | <hr> | ||
648 | <div class="refsect2" lang="en"> | ||
649 | <a name="G3DIffChunkInfo"></a><h3>G3DIffChunkInfo</h3> | ||
650 | <pre class="programlisting">typedef struct { | ||
651 | gchar *id; | ||
652 | gchar *description; | ||
653 | gboolean container; | ||
654 | G3DIffChunkCallback callback; | ||
655 | } G3DIffChunkInfo; | ||
656 | </pre> | ||
657 | <p> | ||
658 | A chunk type description.</p> | ||
659 | <p> | ||
660 | |||
661 | </p> | ||
662 | <div class="variablelist"><table border="0"> | ||
663 | <col align="left" valign="top"> | ||
664 | <tbody> | ||
665 | <tr> | ||
666 | <td><p><span class="term"><a | ||
667 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
668 | >gchar</a> *<em class="structfield"><code>id</code></em>;</span></p></td> | ||
669 | <td> identifier of chunk | ||
670 | </td> | ||
671 | </tr> | ||
672 | <tr> | ||
673 | <td><p><span class="term"><a | ||
674 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
675 | >gchar</a> *<em class="structfield"><code>description</code></em>;</span></p></td> | ||
676 | <td> human-readable description of chunk type | ||
677 | </td> | ||
678 | </tr> | ||
679 | <tr> | ||
680 | <td><p><span class="term"><a | ||
681 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
682 | >gboolean</a> <em class="structfield"><code>container</code></em>;</span></p></td> | ||
683 | <td> TRUE if this chunk contains sub-chunks | ||
684 | </td> | ||
685 | </tr> | ||
686 | <tr> | ||
687 | <td><p><span class="term"><a class="link" href="libg3d-iff.html#G3DIffChunkCallback" title="G3DIffChunkCallback ()">G3DIffChunkCallback</a> <em class="structfield"><code>callback</code></em>;</span></p></td> | ||
688 | <td> function to be called if such a chunk is found | ||
689 | </td> | ||
690 | </tr> | ||
691 | </tbody> | ||
692 | </table></div> | ||
693 | </div> | ||
694 | <hr> | ||
695 | <div class="refsect2" lang="en"> | ||
696 | <a name="g3d-iff-chunk-info"></a><h3>g3d_iff_chunk_info</h3> | ||
697 | <pre class="programlisting">#define g3d_iff_chunk_info G3DIffChunkInfo | ||
698 | </pre> | ||
699 | <p> | ||
700 | IFF chunk description (deprecated).</p> | ||
701 | <p> | ||
702 | |||
703 | </p> | ||
704 | </div> | ||
705 | <hr> | ||
706 | <div class="refsect2" lang="en"> | ||
707 | <a name="G3DIffGlobal"></a><h3>G3DIffGlobal</h3> | ||
708 | <pre class="programlisting">typedef struct { | ||
709 | G3DContext *context; | ||
710 | G3DModel *model; | ||
711 | G3DStream *stream; | ||
712 | guint32 flags; | ||
713 | gpointer user_data; | ||
714 | FILE *f; | ||
715 | long int max_fpos; | ||
716 | } G3DIffGlobal; | ||
717 | </pre> | ||
718 | <p> | ||
719 | The plugin-global data to be given to IFF callback functions.</p> | ||
720 | <p> | ||
721 | |||
722 | </p> | ||
723 | <div class="variablelist"><table border="0"> | ||
724 | <col align="left" valign="top"> | ||
725 | <tbody> | ||
726 | <tr> | ||
727 | <td><p><span class="term"><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *<em class="structfield"><code>context</code></em>;</span></p></td> | ||
728 | <td> a valid context | ||
729 | </td> | ||
730 | </tr> | ||
731 | <tr> | ||
732 | <td><p><span class="term"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *<em class="structfield"><code>model</code></em>;</span></p></td> | ||
733 | <td> a model | ||
734 | </td> | ||
735 | </tr> | ||
736 | <tr> | ||
737 | <td><p><span class="term"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *<em class="structfield"><code>stream</code></em>;</span></p></td> | ||
738 | <td> the stream to read model from | ||
739 | </td> | ||
740 | </tr> | ||
741 | <tr> | ||
742 | <td><p><span class="term"><a | ||
743 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
744 | >guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td> | ||
745 | <td> IFF flags | ||
746 | </td> | ||
747 | </tr> | ||
748 | <tr> | ||
749 | <td><p><span class="term"><a | ||
750 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
751 | >gpointer</a> <em class="structfield"><code>user_data</code></em>;</span></p></td> | ||
752 | <td> to be used by plugin | ||
753 | </td> | ||
754 | </tr> | ||
755 | <tr> | ||
756 | <td><p><span class="term">FILE *<em class="structfield"><code>f</code></em>;</span></p></td> | ||
757 | <td> file to read model from (DEPRECATED) | ||
758 | </td> | ||
759 | </tr> | ||
760 | <tr> | ||
761 | <td><p><span class="term">long int <em class="structfield"><code>max_fpos</code></em>;</span></p></td> | ||
762 | <td> maximum file position (DEPRECATED) | ||
763 | </td> | ||
764 | </tr> | ||
765 | </tbody> | ||
766 | </table></div> | ||
767 | </div> | ||
768 | <hr> | ||
769 | <div class="refsect2" lang="en"> | ||
770 | <a name="g3d-iff-gdata"></a><h3>g3d_iff_gdata</h3> | ||
771 | <pre class="programlisting">#define g3d_iff_gdata G3DIffGlobal | ||
772 | </pre> | ||
773 | <p> | ||
774 | IFF global data (deprecated).</p> | ||
775 | <p> | ||
776 | |||
777 | </p> | ||
778 | </div> | ||
779 | <hr> | ||
780 | <div class="refsect2" lang="en"> | ||
781 | <a name="G3DIffLocal"></a><h3>G3DIffLocal</h3> | ||
782 | <pre class="programlisting">typedef struct { | ||
783 | guint32 id; | ||
784 | guint32 parent_id; | ||
785 | gpointer object; | ||
786 | gint32 level; | ||
787 | gpointer level_object; | ||
788 | gint32 nb; | ||
789 | gboolean finalize; | ||
790 | } G3DIffLocal; | ||
791 | </pre> | ||
792 | <p> | ||
793 | The function-local data for IFF callback functions.</p> | ||
794 | <p> | ||
795 | |||
796 | </p> | ||
797 | <div class="variablelist"><table border="0"> | ||
798 | <col align="left" valign="top"> | ||
799 | <tbody> | ||
800 | <tr> | ||
801 | <td><p><span class="term"><a | ||
802 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
803 | >guint32</a> <em class="structfield"><code>id</code></em>;</span></p></td> | ||
804 | <td> chunk identifier | ||
805 | </td> | ||
806 | </tr> | ||
807 | <tr> | ||
808 | <td><p><span class="term"><a | ||
809 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
810 | >guint32</a> <em class="structfield"><code>parent_id</code></em>;</span></p></td> | ||
811 | <td> parent chunk identifier | ||
812 | </td> | ||
813 | </tr> | ||
814 | <tr> | ||
815 | <td><p><span class="term"><a | ||
816 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
817 | >gpointer</a> <em class="structfield"><code>object</code></em>;</span></p></td> | ||
818 | <td> an object set by parent callbacks, may be NULL | ||
819 | </td> | ||
820 | </tr> | ||
821 | <tr> | ||
822 | <td><p><span class="term"><a | ||
823 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
824 | >gint32</a> <em class="structfield"><code>level</code></em>;</span></p></td> | ||
825 | <td> level of chunk | ||
826 | </td> | ||
827 | </tr> | ||
828 | <tr> | ||
829 | <td><p><span class="term"><a | ||
830 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
831 | >gpointer</a> <em class="structfield"><code>level_object</code></em>;</span></p></td> | ||
832 | <td> object shared by callbacks on the same level, may be NULL | ||
833 | </td> | ||
834 | </tr> | ||
835 | <tr> | ||
836 | <td><p><span class="term"><a | ||
837 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
838 | >gint32</a> <em class="structfield"><code>nb</code></em>;</span></p></td> | ||
839 | <td> number of bytes remaining in chunk, has to be decremented after | ||
840 | correctly after reading from stream | ||
841 | </td> | ||
842 | </tr> | ||
843 | <tr> | ||
844 | <td><p><span class="term"><a | ||
845 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
846 | >gboolean</a> <em class="structfield"><code>finalize</code></em>;</span></p></td> | ||
847 | <td> for container chunks the callback function is called before | ||
848 | and after processing possible sub-chunks, the second time <em class="parameter"><code>finalize</code></em> is set | ||
849 | to TRUE | ||
850 | </td> | ||
851 | </tr> | ||
852 | </tbody> | ||
853 | </table></div> | ||
854 | </div> | ||
855 | <hr> | ||
856 | <div class="refsect2" lang="en"> | ||
857 | <a name="g3d-iff-ldata"></a><h3>g3d_iff_ldata</h3> | ||
858 | <pre class="programlisting">#define g3d_iff_ldata G3DIffLocal | ||
859 | </pre> | ||
860 | <p> | ||
861 | IFF local data (deprecated).</p> | ||
862 | <p> | ||
863 | |||
864 | </p> | ||
865 | </div> | ||
866 | </div> | ||
867 | </div> | ||
868 | <div class="footer"> | ||
869 | <hr> | ||
870 | Generated by GTK-Doc V1.10</div> | ||
871 | </body> | ||
872 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html new file mode 100644 index 0000000..e4afa07 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html | |||
@@ -0,0 +1,174 @@ | |||
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>material</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-face.html" title="face"> | ||
10 | <link rel="next" href="libg3d-texture.html" title="texture"> | ||
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="libg3d-face.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-texture.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-material.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-material.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-material"></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-material.top_of_page"></a>material</span></h2> | ||
34 | <p>material — Material generation and manipulation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-material.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/material.h> | ||
43 | |||
44 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>; | ||
45 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>* <a class="link" href="libg3d-material.html#g3d-material-new" title="g3d_material_new ()">g3d_material_new</a> (void); | ||
46 | void <a class="link" href="libg3d-material.html#g3d-material-free" title="g3d_material_free ()">g3d_material_free</a> (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
47 | </pre> | ||
48 | </div> | ||
49 | <div class="refsect1" lang="en"> | ||
50 | <a name="libg3d-material.description"></a><h2>Description</h2> | ||
51 | <p> | ||
52 | A material contains all color, shading and texture information for a | ||
53 | <a class="link" href="libg3d-face.html#G3DFace" title="G3DFace"><span class="type">G3DFace</span></a>.</p> | ||
54 | <p> | ||
55 | |||
56 | </p> | ||
57 | </div> | ||
58 | <div class="refsect1" lang="en"> | ||
59 | <a name="libg3d-material.details"></a><h2>Details</h2> | ||
60 | <div class="refsect2" lang="en"> | ||
61 | <a name="G3DMaterial"></a><h3>G3DMaterial</h3> | ||
62 | <pre class="programlisting">typedef struct { | ||
63 | gchar *name; | ||
64 | G3DFloat r, g, b, a; | ||
65 | G3DFloat shininess; | ||
66 | G3DFloat specular[4]; | ||
67 | guint32 flags; | ||
68 | |||
69 | G3DImage *tex_image; | ||
70 | } G3DMaterial; | ||
71 | </pre> | ||
72 | <p> | ||
73 | A material object.</p> | ||
74 | <p> | ||
75 | |||
76 | </p> | ||
77 | <div class="variablelist"><table border="0"> | ||
78 | <col align="left" valign="top"> | ||
79 | <tbody> | ||
80 | <tr> | ||
81 | <td><p><span class="term"><a | ||
82 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
83 | >gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td> | ||
84 | <td> name of material | ||
85 | </td> | ||
86 | </tr> | ||
87 | <tr> | ||
88 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>r</code></em>;</span></p></td> | ||
89 | <td> red component of color | ||
90 | </td> | ||
91 | </tr> | ||
92 | <tr> | ||
93 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>g</code></em>;</span></p></td> | ||
94 | <td> green component of color | ||
95 | </td> | ||
96 | </tr> | ||
97 | <tr> | ||
98 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>b</code></em>;</span></p></td> | ||
99 | <td> blue component of color | ||
100 | </td> | ||
101 | </tr> | ||
102 | <tr> | ||
103 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>a</code></em>;</span></p></td> | ||
104 | <td> alpha component of color | ||
105 | </td> | ||
106 | </tr> | ||
107 | <tr> | ||
108 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>shininess</code></em>;</span></p></td> | ||
109 | <td> shiny color | ||
110 | </td> | ||
111 | </tr> | ||
112 | <tr> | ||
113 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>specular</code></em>[4];</span></p></td> | ||
114 | <td> specular color | ||
115 | </td> | ||
116 | </tr> | ||
117 | <tr> | ||
118 | <td><p><span class="term"><a | ||
119 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
120 | >guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td> | ||
121 | <td> flags | ||
122 | </td> | ||
123 | </tr> | ||
124 | <tr> | ||
125 | <td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *<em class="structfield"><code>tex_image</code></em>;</span></p></td> | ||
126 | <td> texture image (optional, may be NULL) | ||
127 | </td> | ||
128 | </tr> | ||
129 | </tbody> | ||
130 | </table></div> | ||
131 | </div> | ||
132 | <hr> | ||
133 | <div class="refsect2" lang="en"> | ||
134 | <a name="g3d-material-new"></a><h3>g3d_material_new ()</h3> | ||
135 | <pre class="programlisting"><a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>* g3d_material_new (void);</pre> | ||
136 | <p> | ||
137 | Generates a new material with a default color.</p> | ||
138 | <p> | ||
139 | |||
140 | </p> | ||
141 | <div class="variablelist"><table border="0"> | ||
142 | <col align="left" valign="top"> | ||
143 | <tbody><tr> | ||
144 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
145 | <td> the new material or NULL on error | ||
146 | </td> | ||
147 | </tr></tbody> | ||
148 | </table></div> | ||
149 | </div> | ||
150 | <hr> | ||
151 | <div class="refsect2" lang="en"> | ||
152 | <a name="g3d-material-free"></a><h3>g3d_material_free ()</h3> | ||
153 | <pre class="programlisting">void g3d_material_free (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
154 | <p> | ||
155 | Frees all memory allocated for that material.</p> | ||
156 | <p> | ||
157 | |||
158 | </p> | ||
159 | <div class="variablelist"><table border="0"> | ||
160 | <col align="left" valign="top"> | ||
161 | <tbody><tr> | ||
162 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
163 | <td> the material to free | ||
164 | </td> | ||
165 | </tr></tbody> | ||
166 | </table></div> | ||
167 | </div> | ||
168 | </div> | ||
169 | </div> | ||
170 | <div class="footer"> | ||
171 | <hr> | ||
172 | Generated by GTK-Doc V1.10</div> | ||
173 | </body> | ||
174 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html new file mode 100644 index 0000000..2ffe686 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html | |||
@@ -0,0 +1,450 @@ | |||
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>matrix</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="libg3d-primitive.html" title="primitive"> | ||
10 | <link rel="next" href="libg3d-vector.html" title="vector"> | ||
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="libg3d-primitive.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-vector.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-matrix.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-matrix.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-matrix"></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-matrix.top_of_page"></a>matrix</span></h2> | ||
34 | <p>matrix — Matrix manipulation and calculation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-matrix.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/matrix.h> | ||
43 | |||
44 | typedef <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a>; | ||
45 | <a | ||
46 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
47 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-identity" title="g3d_matrix_identity ()">g3d_matrix_identity</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
48 | <a | ||
49 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
50 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-multiply" title="g3d_matrix_multiply ()">g3d_matrix_multiply</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m1, | ||
51 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m2, | ||
52 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm); | ||
53 | <a | ||
54 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
55 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-translate" title="g3d_matrix_translate ()">g3d_matrix_translate</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x, | ||
56 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y, | ||
57 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z, | ||
58 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm); | ||
59 | <a | ||
60 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
61 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-rotate" title="g3d_matrix_rotate ()">g3d_matrix_rotate</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle, | ||
62 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax, | ||
63 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay, | ||
64 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az, | ||
65 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm); | ||
66 | <a | ||
67 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
68 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-rotate-xyz" title="g3d_matrix_rotate_xyz ()">g3d_matrix_rotate_xyz</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rx, | ||
69 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ry, | ||
70 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rz, | ||
71 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm); | ||
72 | <a | ||
73 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
74 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-scale" title="g3d_matrix_scale ()">g3d_matrix_scale</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x, | ||
75 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y, | ||
76 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z, | ||
77 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm); | ||
78 | <a | ||
79 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
80 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-transpose" title="g3d_matrix_transpose ()">g3d_matrix_transpose</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
81 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-determinant" title="g3d_matrix_determinant ()">g3d_matrix_determinant</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
82 | <a | ||
83 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
84 | >gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-dump" title="g3d_matrix_dump ()">g3d_matrix_dump</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
85 | </pre> | ||
86 | </div> | ||
87 | <div class="refsect1" lang="en"> | ||
88 | <a name="libg3d-matrix.description"></a><h2>Description</h2> | ||
89 | <p> | ||
90 | Matrices in libg3d have the following layout: | ||
91 | </p> | ||
92 | <p> | ||
93 | G3DMatrix matrix[16]: | ||
94 | </p> | ||
95 | <p> | ||
96 | matrix[col * 4 + row] = f;</p> | ||
97 | <p> | ||
98 | |||
99 | </p> | ||
100 | </div> | ||
101 | <div class="refsect1" lang="en"> | ||
102 | <a name="libg3d-matrix.details"></a><h2>Details</h2> | ||
103 | <div class="refsect2" lang="en"> | ||
104 | <a name="G3DMatrix"></a><h3>G3DMatrix</h3> | ||
105 | <pre class="programlisting">typedef G3DFloat G3DMatrix; | ||
106 | </pre> | ||
107 | <p> | ||
108 | Matrix element type.</p> | ||
109 | <p> | ||
110 | |||
111 | </p> | ||
112 | </div> | ||
113 | <hr> | ||
114 | <div class="refsect2" lang="en"> | ||
115 | <a name="g3d-matrix-identity"></a><h3>g3d_matrix_identity ()</h3> | ||
116 | <pre class="programlisting"><a | ||
117 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
118 | >gboolean</a> g3d_matrix_identity (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
119 | <p> | ||
120 | Sets the given matrix to the identity matrix.</p> | ||
121 | <p> | ||
122 | |||
123 | </p> | ||
124 | <div class="variablelist"><table border="0"> | ||
125 | <col align="left" valign="top"> | ||
126 | <tbody> | ||
127 | <tr> | ||
128 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
129 | <td> 4x4 matrix (float[16]) | ||
130 | </td> | ||
131 | </tr> | ||
132 | <tr> | ||
133 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
134 | <td> TRUE on success, FALSE else | ||
135 | </td> | ||
136 | </tr> | ||
137 | </tbody> | ||
138 | </table></div> | ||
139 | </div> | ||
140 | <hr> | ||
141 | <div class="refsect2" lang="en"> | ||
142 | <a name="g3d-matrix-multiply"></a><h3>g3d_matrix_multiply ()</h3> | ||
143 | <pre class="programlisting"><a | ||
144 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
145 | >gboolean</a> g3d_matrix_multiply (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m1, | ||
146 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m2, | ||
147 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre> | ||
148 | <p> | ||
149 | Multiplies the matrixes.</p> | ||
150 | <p> | ||
151 | |||
152 | </p> | ||
153 | <div class="variablelist"><table border="0"> | ||
154 | <col align="left" valign="top"> | ||
155 | <tbody> | ||
156 | <tr> | ||
157 | <td><p><span class="term"><em class="parameter"><code>m1</code></em> :</span></p></td> | ||
158 | <td> first matrix | ||
159 | </td> | ||
160 | </tr> | ||
161 | <tr> | ||
162 | <td><p><span class="term"><em class="parameter"><code>m2</code></em> :</span></p></td> | ||
163 | <td> second matrix | ||
164 | </td> | ||
165 | </tr> | ||
166 | <tr> | ||
167 | <td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td> | ||
168 | <td> resulting matrix | ||
169 | </td> | ||
170 | </tr> | ||
171 | <tr> | ||
172 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
173 | <td> TRUE on success, FALSE else | ||
174 | </td> | ||
175 | </tr> | ||
176 | </tbody> | ||
177 | </table></div> | ||
178 | </div> | ||
179 | <hr> | ||
180 | <div class="refsect2" lang="en"> | ||
181 | <a name="g3d-matrix-translate"></a><h3>g3d_matrix_translate ()</h3> | ||
182 | <pre class="programlisting"><a | ||
183 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
184 | >gboolean</a> g3d_matrix_translate (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x, | ||
185 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y, | ||
186 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z, | ||
187 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre> | ||
188 | <p> | ||
189 | Adds a translation to the the matrix.</p> | ||
190 | <p> | ||
191 | |||
192 | </p> | ||
193 | <div class="variablelist"><table border="0"> | ||
194 | <col align="left" valign="top"> | ||
195 | <tbody> | ||
196 | <tr> | ||
197 | <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> | ||
198 | <td> x translation | ||
199 | </td> | ||
200 | </tr> | ||
201 | <tr> | ||
202 | <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> | ||
203 | <td> y translation | ||
204 | </td> | ||
205 | </tr> | ||
206 | <tr> | ||
207 | <td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td> | ||
208 | <td> z translation | ||
209 | </td> | ||
210 | </tr> | ||
211 | <tr> | ||
212 | <td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td> | ||
213 | <td> resulting matrix | ||
214 | </td> | ||
215 | </tr> | ||
216 | <tr> | ||
217 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
218 | <td> TRUE on success, FALSE else | ||
219 | </td> | ||
220 | </tr> | ||
221 | </tbody> | ||
222 | </table></div> | ||
223 | </div> | ||
224 | <hr> | ||
225 | <div class="refsect2" lang="en"> | ||
226 | <a name="g3d-matrix-rotate"></a><h3>g3d_matrix_rotate ()</h3> | ||
227 | <pre class="programlisting"><a | ||
228 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
229 | >gboolean</a> g3d_matrix_rotate (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle, | ||
230 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax, | ||
231 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay, | ||
232 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az, | ||
233 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre> | ||
234 | <p> | ||
235 | Adds a rotation to the matrix.</p> | ||
236 | <p> | ||
237 | |||
238 | </p> | ||
239 | <div class="variablelist"><table border="0"> | ||
240 | <col align="left" valign="top"> | ||
241 | <tbody> | ||
242 | <tr> | ||
243 | <td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td> | ||
244 | <td> rotation angle | ||
245 | </td> | ||
246 | </tr> | ||
247 | <tr> | ||
248 | <td><p><span class="term"><em class="parameter"><code>ax</code></em> :</span></p></td> | ||
249 | <td> x component of rotation axis | ||
250 | </td> | ||
251 | </tr> | ||
252 | <tr> | ||
253 | <td><p><span class="term"><em class="parameter"><code>ay</code></em> :</span></p></td> | ||
254 | <td> y component of rotation axis | ||
255 | </td> | ||
256 | </tr> | ||
257 | <tr> | ||
258 | <td><p><span class="term"><em class="parameter"><code>az</code></em> :</span></p></td> | ||
259 | <td> z component of rotation axis | ||
260 | </td> | ||
261 | </tr> | ||
262 | <tr> | ||
263 | <td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td> | ||
264 | <td> resulting matrix | ||
265 | </td> | ||
266 | </tr> | ||
267 | <tr> | ||
268 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
269 | <td> TRUE on success, FALSE else | ||
270 | </td> | ||
271 | </tr> | ||
272 | </tbody> | ||
273 | </table></div> | ||
274 | </div> | ||
275 | <hr> | ||
276 | <div class="refsect2" lang="en"> | ||
277 | <a name="g3d-matrix-rotate-xyz"></a><h3>g3d_matrix_rotate_xyz ()</h3> | ||
278 | <pre class="programlisting"><a | ||
279 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
280 | >gboolean</a> g3d_matrix_rotate_xyz (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rx, | ||
281 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ry, | ||
282 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rz, | ||
283 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre> | ||
284 | <p> | ||
285 | Adds a rotation around the 3 coordinate system axes to the matrix.</p> | ||
286 | <p> | ||
287 | |||
288 | </p> | ||
289 | <div class="variablelist"><table border="0"> | ||
290 | <col align="left" valign="top"> | ||
291 | <tbody> | ||
292 | <tr> | ||
293 | <td><p><span class="term"><em class="parameter"><code>rx</code></em> :</span></p></td> | ||
294 | <td> rotation around x axis | ||
295 | </td> | ||
296 | </tr> | ||
297 | <tr> | ||
298 | <td><p><span class="term"><em class="parameter"><code>ry</code></em> :</span></p></td> | ||
299 | <td> rotation around y axis | ||
300 | </td> | ||
301 | </tr> | ||
302 | <tr> | ||
303 | <td><p><span class="term"><em class="parameter"><code>rz</code></em> :</span></p></td> | ||
304 | <td> rotation around z axis | ||
305 | </td> | ||
306 | </tr> | ||
307 | <tr> | ||
308 | <td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td> | ||
309 | <td> resulting matrix | ||
310 | </td> | ||
311 | </tr> | ||
312 | <tr> | ||
313 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
314 | <td> TRUE on success, FALSE else | ||
315 | </td> | ||
316 | </tr> | ||
317 | </tbody> | ||
318 | </table></div> | ||
319 | </div> | ||
320 | <hr> | ||
321 | <div class="refsect2" lang="en"> | ||
322 | <a name="g3d-matrix-scale"></a><h3>g3d_matrix_scale ()</h3> | ||
323 | <pre class="programlisting"><a | ||
324 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
325 | >gboolean</a> g3d_matrix_scale (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x, | ||
326 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y, | ||
327 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z, | ||
328 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre> | ||
329 | <p> | ||
330 | Adds a scaling to the matrix.</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>x</code></em> :</span></p></td> | ||
339 | <td> x factor | ||
340 | </td> | ||
341 | </tr> | ||
342 | <tr> | ||
343 | <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> | ||
344 | <td> y factor | ||
345 | </td> | ||
346 | </tr> | ||
347 | <tr> | ||
348 | <td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td> | ||
349 | <td> z factor | ||
350 | </td> | ||
351 | </tr> | ||
352 | <tr> | ||
353 | <td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td> | ||
354 | <td> resulting matrix | ||
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="g3d-matrix-transpose"></a><h3>g3d_matrix_transpose ()</h3> | ||
368 | <pre class="programlisting"><a | ||
369 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
370 | >gboolean</a> g3d_matrix_transpose (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
371 | <p> | ||
372 | Transposes the matrix.</p> | ||
373 | <p> | ||
374 | |||
375 | </p> | ||
376 | <div class="variablelist"><table border="0"> | ||
377 | <col align="left" valign="top"> | ||
378 | <tbody> | ||
379 | <tr> | ||
380 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
381 | <td> the matrix | ||
382 | </td> | ||
383 | </tr> | ||
384 | <tr> | ||
385 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
386 | <td> TRUE on success, FALSE else | ||
387 | </td> | ||
388 | </tr> | ||
389 | </tbody> | ||
390 | </table></div> | ||
391 | </div> | ||
392 | <hr> | ||
393 | <div class="refsect2" lang="en"> | ||
394 | <a name="g3d-matrix-determinant"></a><h3>g3d_matrix_determinant ()</h3> | ||
395 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_matrix_determinant (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
396 | <p> | ||
397 | Calculate the determinant of the matrix (FIXME: not verified).</p> | ||
398 | <p> | ||
399 | |||
400 | </p> | ||
401 | <div class="variablelist"><table border="0"> | ||
402 | <col align="left" valign="top"> | ||
403 | <tbody> | ||
404 | <tr> | ||
405 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
406 | <td> the matrix | ||
407 | </td> | ||
408 | </tr> | ||
409 | <tr> | ||
410 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
411 | <td> the determinant. | ||
412 | </td> | ||
413 | </tr> | ||
414 | </tbody> | ||
415 | </table></div> | ||
416 | </div> | ||
417 | <hr> | ||
418 | <div class="refsect2" lang="en"> | ||
419 | <a name="g3d-matrix-dump"></a><h3>g3d_matrix_dump ()</h3> | ||
420 | <pre class="programlisting"><a | ||
421 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
422 | >gboolean</a> g3d_matrix_dump (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
423 | <p> | ||
424 | If debugging is enabled, this function dump the matrix to stderr.</p> | ||
425 | <p> | ||
426 | |||
427 | </p> | ||
428 | <div class="variablelist"><table border="0"> | ||
429 | <col align="left" valign="top"> | ||
430 | <tbody> | ||
431 | <tr> | ||
432 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
433 | <td> the matrix | ||
434 | </td> | ||
435 | </tr> | ||
436 | <tr> | ||
437 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
438 | <td> TRUE if matrix is dumped, FALSE else | ||
439 | </td> | ||
440 | </tr> | ||
441 | </tbody> | ||
442 | </table></div> | ||
443 | </div> | ||
444 | </div> | ||
445 | </div> | ||
446 | <div class="footer"> | ||
447 | <hr> | ||
448 | Generated by GTK-Doc V1.10</div> | ||
449 | </body> | ||
450 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html new file mode 100644 index 0000000..3c28b34 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html | |||
@@ -0,0 +1,438 @@ | |||
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>model</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-context.html" title="context"> | ||
10 | <link rel="next" href="libg3d-object.html" title="object"> | ||
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="libg3d-context.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-object.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-model.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-model.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-model"></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-model.top_of_page"></a>model</span></h2> | ||
34 | <p>model — Model manipulation functions</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-model.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/g3d.h> | ||
43 | |||
44 | #define <a class="link" href="libg3d-model.html#G3D-MODEL-CENTER:CAPS" title="G3D_MODEL_CENTER">G3D_MODEL_CENTER</a> | ||
45 | #define <a class="link" href="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS" title="G3D_MODEL_NOCHECK">G3D_MODEL_NOCHECK</a> | ||
46 | #define <a class="link" href="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS" title="G3D_MODEL_OPTIMIZE">G3D_MODEL_OPTIMIZE</a> | ||
47 | #define <a class="link" href="libg3d-model.html#G3D-MODEL-SCALE:CAPS" title="G3D_MODEL_SCALE">G3D_MODEL_SCALE</a> | ||
48 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>; | ||
49 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-new" title="g3d_model_new ()">g3d_model_new</a> (void); | ||
50 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-load" title="g3d_model_load ()">g3d_model_load</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
51 | const <a | ||
52 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
53 | >gchar</a> *filename); | ||
54 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-load-full" title="g3d_model_load_full ()">g3d_model_load_full</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
55 | const <a | ||
56 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
57 | >gchar</a> *filename, | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
60 | >guint32</a> flags); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
63 | >gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-check" title="g3d_model_check ()">g3d_model_check</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
64 | <a | ||
65 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
66 | >gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-center" title="g3d_model_center ()">g3d_model_center</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
67 | <a | ||
68 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
69 | >gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-transform" title="g3d_model_transform ()">g3d_model_transform</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
70 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
71 | void <a class="link" href="libg3d-model.html#g3d-model-clear" title="g3d_model_clear ()">g3d_model_clear</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
72 | void <a class="link" href="libg3d-model.html#g3d-model-free" title="g3d_model_free ()">g3d_model_free</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model); | ||
73 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-model.html#g3d-model-get-object-by-name" title="g3d_model_get_object_by_name ()">g3d_model_get_object_by_name</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
74 | const <a | ||
75 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
76 | >gchar</a> *name); | ||
77 | </pre> | ||
78 | </div> | ||
79 | <div class="refsect1" lang="en"> | ||
80 | <a name="libg3d-model.description"></a><h2>Description</h2> | ||
81 | <p> | ||
82 | A model is a group of objects. All information loaded from a file by libg3d | ||
83 | is found in this model.</p> | ||
84 | <p> | ||
85 | |||
86 | </p> | ||
87 | </div> | ||
88 | <div class="refsect1" lang="en"> | ||
89 | <a name="libg3d-model.details"></a><h2>Details</h2> | ||
90 | <div class="refsect2" lang="en"> | ||
91 | <a name="G3D-MODEL-CENTER:CAPS"></a><h3>G3D_MODEL_CENTER</h3> | ||
92 | <pre class="programlisting">#define G3D_MODEL_CENTER (1 << 1) | ||
93 | </pre> | ||
94 | <p> | ||
95 | The model should be centered around the (0,0,0).</p> | ||
96 | <p> | ||
97 | |||
98 | </p> | ||
99 | </div> | ||
100 | <hr> | ||
101 | <div class="refsect2" lang="en"> | ||
102 | <a name="G3D-MODEL-NOCHECK:CAPS"></a><h3>G3D_MODEL_NOCHECK</h3> | ||
103 | <pre class="programlisting">#define G3D_MODEL_NOCHECK (1 << 3) | ||
104 | </pre> | ||
105 | <p> | ||
106 | The common checks should be disabled. The checks include: | ||
107 | </p> | ||
108 | <div class="itemizedlist"><ul type="disc"> | ||
109 | <li>faces have at least 3 indices</li> | ||
110 | <li>face indices are <= number of vertices</li> | ||
111 | <li>material of faces is not NULL</li> | ||
112 | </ul></div> | ||
113 | <p> | ||
114 | |||
115 | </p> | ||
116 | </div> | ||
117 | <hr> | ||
118 | <div class="refsect2" lang="en"> | ||
119 | <a name="G3D-MODEL-OPTIMIZE:CAPS"></a><h3>G3D_MODEL_OPTIMIZE</h3> | ||
120 | <pre class="programlisting">#define G3D_MODEL_OPTIMIZE (1 << 2) | ||
121 | </pre> | ||
122 | <p> | ||
123 | The model material/object/face lists should be serialized to some private | ||
124 | arrays (deprecated).</p> | ||
125 | <p> | ||
126 | |||
127 | </p> | ||
128 | </div> | ||
129 | <hr> | ||
130 | <div class="refsect2" lang="en"> | ||
131 | <a name="G3D-MODEL-SCALE:CAPS"></a><h3>G3D_MODEL_SCALE</h3> | ||
132 | <pre class="programlisting">#define G3D_MODEL_SCALE (1 << 0) | ||
133 | </pre> | ||
134 | <p> | ||
135 | The model should be scaled to a maximum extension of +/- 10.0.</p> | ||
136 | <p> | ||
137 | |||
138 | </p> | ||
139 | </div> | ||
140 | <hr> | ||
141 | <div class="refsect2" lang="en"> | ||
142 | <a name="G3DModel"></a><h3>G3DModel</h3> | ||
143 | <pre class="programlisting">typedef struct { | ||
144 | gchar *filename; | ||
145 | GSList *materials; | ||
146 | GSList *objects; | ||
147 | } G3DModel; | ||
148 | </pre> | ||
149 | <p> | ||
150 | A 3D model.</p> | ||
151 | <p> | ||
152 | |||
153 | </p> | ||
154 | <div class="variablelist"><table border="0"> | ||
155 | <col align="left" valign="top"> | ||
156 | <tbody> | ||
157 | <tr> | ||
158 | <td><p><span class="term"><a | ||
159 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
160 | >gchar</a> *<em class="structfield"><code>filename</code></em>;</span></p></td> | ||
161 | <td> file name or URI of loaded model, may be set by application | ||
162 | </td> | ||
163 | </tr> | ||
164 | <tr> | ||
165 | <td><p><span class="term"><a | ||
166 | href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList" | ||
167 | >GSList</a> *<em class="structfield"><code>materials</code></em>;</span></p></td> | ||
168 | <td> list of materials (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial"><span class="type">G3DMaterial</span></a>) | ||
169 | </td> | ||
170 | </tr> | ||
171 | <tr> | ||
172 | <td><p><span class="term"><a | ||
173 | href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList" | ||
174 | >GSList</a> *<em class="structfield"><code>objects</code></em>;</span></p></td> | ||
175 | <td> list of objects (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject"><span class="type">G3DObject</span></a>) | ||
176 | </td> | ||
177 | </tr> | ||
178 | </tbody> | ||
179 | </table></div> | ||
180 | </div> | ||
181 | <hr> | ||
182 | <div class="refsect2" lang="en"> | ||
183 | <a name="g3d-model-new"></a><h3>g3d_model_new ()</h3> | ||
184 | <pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_new (void);</pre> | ||
185 | <p> | ||
186 | This functions allocates and initializes a new G3DModel.</p> | ||
187 | <p> | ||
188 | |||
189 | </p> | ||
190 | <div class="variablelist"><table border="0"> | ||
191 | <col align="left" valign="top"> | ||
192 | <tbody><tr> | ||
193 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
194 | <td> a newly allocated G3DModel | ||
195 | </td> | ||
196 | </tr></tbody> | ||
197 | </table></div> | ||
198 | </div> | ||
199 | <hr> | ||
200 | <div class="refsect2" lang="en"> | ||
201 | <a name="g3d-model-load"></a><h3>g3d_model_load ()</h3> | ||
202 | <pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_load (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
203 | const <a | ||
204 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
205 | >gchar</a> *filename);</pre> | ||
206 | <p> | ||
207 | Loads a model from a file. The model is checked, centered, resized, | ||
208 | optimized.</p> | ||
209 | <p> | ||
210 | |||
211 | </p> | ||
212 | <div class="variablelist"><table border="0"> | ||
213 | <col align="left" valign="top"> | ||
214 | <tbody> | ||
215 | <tr> | ||
216 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
217 | <td> a valid context | ||
218 | </td> | ||
219 | </tr> | ||
220 | <tr> | ||
221 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
222 | <td> the file name of the model to load | ||
223 | </td> | ||
224 | </tr> | ||
225 | <tr> | ||
226 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
227 | <td> the loaded model or NULL in case of an error | ||
228 | </td> | ||
229 | </tr> | ||
230 | </tbody> | ||
231 | </table></div> | ||
232 | </div> | ||
233 | <hr> | ||
234 | <div class="refsect2" lang="en"> | ||
235 | <a name="g3d-model-load-full"></a><h3>g3d_model_load_full ()</h3> | ||
236 | <pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_load_full (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
237 | const <a | ||
238 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
239 | >gchar</a> *filename, | ||
240 | <a | ||
241 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
242 | >guint32</a> flags);</pre> | ||
243 | <p> | ||
244 | Loads a model from a file. Depending on <em class="parameter"><code>flags</code></em> the model is checked, | ||
245 | centered, resized, optimized.</p> | ||
246 | <p> | ||
247 | |||
248 | </p> | ||
249 | <div class="variablelist"><table border="0"> | ||
250 | <col align="left" valign="top"> | ||
251 | <tbody> | ||
252 | <tr> | ||
253 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
254 | <td> a valid context | ||
255 | </td> | ||
256 | </tr> | ||
257 | <tr> | ||
258 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
259 | <td> the file name of the model to load | ||
260 | </td> | ||
261 | </tr> | ||
262 | <tr> | ||
263 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
264 | <td> object manipulation flags | ||
265 | </td> | ||
266 | </tr> | ||
267 | <tr> | ||
268 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
269 | <td> the loaded model or NULL in case of an error. | ||
270 | </td> | ||
271 | </tr> | ||
272 | </tbody> | ||
273 | </table></div> | ||
274 | </div> | ||
275 | <hr> | ||
276 | <div class="refsect2" lang="en"> | ||
277 | <a name="g3d-model-check"></a><h3>g3d_model_check ()</h3> | ||
278 | <pre class="programlisting"><a | ||
279 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
280 | >gboolean</a> g3d_model_check (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
281 | <p> | ||
282 | Checks whether a model returned by plugin is valid.</p> | ||
283 | <p> | ||
284 | |||
285 | </p> | ||
286 | <div class="variablelist"><table border="0"> | ||
287 | <col align="left" valign="top"> | ||
288 | <tbody> | ||
289 | <tr> | ||
290 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
291 | <td> the model to check | ||
292 | </td> | ||
293 | </tr> | ||
294 | <tr> | ||
295 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
296 | <td> TRUE on success, FALSE on error | ||
297 | </td> | ||
298 | </tr> | ||
299 | </tbody> | ||
300 | </table></div> | ||
301 | </div> | ||
302 | <hr> | ||
303 | <div class="refsect2" lang="en"> | ||
304 | <a name="g3d-model-center"></a><h3>g3d_model_center ()</h3> | ||
305 | <pre class="programlisting"><a | ||
306 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
307 | >gboolean</a> g3d_model_center (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
308 | <p> | ||
309 | Translates all object coordinates that the object center is at (0, 0, 0)</p> | ||
310 | <p> | ||
311 | |||
312 | </p> | ||
313 | <div class="variablelist"><table border="0"> | ||
314 | <col align="left" valign="top"> | ||
315 | <tbody> | ||
316 | <tr> | ||
317 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
318 | <td> the model to center | ||
319 | </td> | ||
320 | </tr> | ||
321 | <tr> | ||
322 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
323 | <td> TRUE on success, FALSE on error | ||
324 | </td> | ||
325 | </tr> | ||
326 | </tbody> | ||
327 | </table></div> | ||
328 | </div> | ||
329 | <hr> | ||
330 | <div class="refsect2" lang="en"> | ||
331 | <a name="g3d-model-transform"></a><h3>g3d_model_transform ()</h3> | ||
332 | <pre class="programlisting"><a | ||
333 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
334 | >gboolean</a> g3d_model_transform (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
335 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
336 | <p> | ||
337 | Transform all toplevel objects in model with matrix.</p> | ||
338 | <p> | ||
339 | |||
340 | </p> | ||
341 | <div class="variablelist"><table border="0"> | ||
342 | <col align="left" valign="top"> | ||
343 | <tbody> | ||
344 | <tr> | ||
345 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
346 | <td> the model | ||
347 | </td> | ||
348 | </tr> | ||
349 | <tr> | ||
350 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
351 | <td> transformation matrix | ||
352 | </td> | ||
353 | </tr> | ||
354 | <tr> | ||
355 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
356 | <td> TRUE on success, FALSE else | ||
357 | </td> | ||
358 | </tr> | ||
359 | </tbody> | ||
360 | </table></div> | ||
361 | </div> | ||
362 | <hr> | ||
363 | <div class="refsect2" lang="en"> | ||
364 | <a name="g3d-model-clear"></a><h3>g3d_model_clear ()</h3> | ||
365 | <pre class="programlisting">void g3d_model_clear (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
366 | <p> | ||
367 | Removes all objects from a model.</p> | ||
368 | <p> | ||
369 | |||
370 | </p> | ||
371 | <div class="variablelist"><table border="0"> | ||
372 | <col align="left" valign="top"> | ||
373 | <tbody><tr> | ||
374 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
375 | <td> the model to clear | ||
376 | </td> | ||
377 | </tr></tbody> | ||
378 | </table></div> | ||
379 | </div> | ||
380 | <hr> | ||
381 | <div class="refsect2" lang="en"> | ||
382 | <a name="g3d-model-free"></a><h3>g3d_model_free ()</h3> | ||
383 | <pre class="programlisting">void g3d_model_free (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre> | ||
384 | <p> | ||
385 | Frees all memory allocated for the model including all objects, materials | ||
386 | and textures.</p> | ||
387 | <p> | ||
388 | |||
389 | </p> | ||
390 | <div class="variablelist"><table border="0"> | ||
391 | <col align="left" valign="top"> | ||
392 | <tbody><tr> | ||
393 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
394 | <td> the model to free | ||
395 | </td> | ||
396 | </tr></tbody> | ||
397 | </table></div> | ||
398 | </div> | ||
399 | <hr> | ||
400 | <div class="refsect2" lang="en"> | ||
401 | <a name="g3d-model-get-object-by-name"></a><h3>g3d_model_get_object_by_name ()</h3> | ||
402 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_model_get_object_by_name (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
403 | const <a | ||
404 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
405 | >gchar</a> *name);</pre> | ||
406 | <p> | ||
407 | Searches the object tree for an object with the given name.</p> | ||
408 | <p> | ||
409 | |||
410 | </p> | ||
411 | <div class="variablelist"><table border="0"> | ||
412 | <col align="left" valign="top"> | ||
413 | <tbody> | ||
414 | <tr> | ||
415 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
416 | <td> the model containing all objects | ||
417 | </td> | ||
418 | </tr> | ||
419 | <tr> | ||
420 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> | ||
421 | <td> the name of the requested object | ||
422 | </td> | ||
423 | </tr> | ||
424 | <tr> | ||
425 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
426 | <td> the requested object or NULL if non was found | ||
427 | </td> | ||
428 | </tr> | ||
429 | </tbody> | ||
430 | </table></div> | ||
431 | </div> | ||
432 | </div> | ||
433 | </div> | ||
434 | <div class="footer"> | ||
435 | <hr> | ||
436 | Generated by GTK-Doc V1.10</div> | ||
437 | </body> | ||
438 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html new file mode 100644 index 0000000..c06bc24 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html | |||
@@ -0,0 +1,466 @@ | |||
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>object</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-model.html" title="model"> | ||
10 | <link rel="next" href="libg3d-face.html" title="face"> | ||
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="libg3d-model.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-face.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-object.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-object.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-object"></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-object.top_of_page"></a>object</span></h2> | ||
34 | <p>object — Object manipulation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-object.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/object.h> | ||
43 | |||
44 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>; | ||
45 | <a class="link" href="libg3d-object.html#G3DTransformation" title="G3DTransformation">G3DTransformation</a>; | ||
46 | void <a class="link" href="libg3d-object.html#g3d-object-free" title="g3d_object_free ()">g3d_object_free</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object); | ||
47 | <a | ||
48 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
49 | >gdouble</a> <a class="link" href="libg3d-object.html#g3d-object-radius" title="g3d_object_radius ()">g3d_object_radius</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object); | ||
50 | <a | ||
51 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
52 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-scale" title="g3d_object_scale ()">g3d_object_scale</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
53 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale); | ||
54 | <a | ||
55 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
56 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform" title="g3d_object_transform ()">g3d_object_transform</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
57 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
60 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform-normals" title="g3d_object_transform_normals ()">g3d_object_transform_normals</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
61 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
62 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-object.html#g3d-object-duplicate" title="g3d_object_duplicate ()">g3d_object_duplicate</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object); | ||
63 | <a | ||
64 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
65 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-optimize" title="g3d_object_optimize ()">g3d_object_optimize</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object); | ||
66 | <a | ||
67 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
68 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-smooth" title="g3d_object_smooth ()">g3d_object_smooth</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object); | ||
69 | <a | ||
70 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
71 | >gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-merge" title="g3d_object_merge ()">g3d_object_merge</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o1, | ||
72 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o2); | ||
73 | </pre> | ||
74 | </div> | ||
75 | <div class="refsect1" lang="en"> | ||
76 | <a name="libg3d-object.description"></a><h2>Description</h2> | ||
77 | <p> | ||
78 | Objects are parts of a model. In most file formats vertices and faces are | ||
79 | grouped in some way into objects. Objects can be hierarchical, so what a | ||
80 | model contains is basically an object tree.</p> | ||
81 | <p> | ||
82 | |||
83 | </p> | ||
84 | </div> | ||
85 | <div class="refsect1" lang="en"> | ||
86 | <a name="libg3d-object.details"></a><h2>Details</h2> | ||
87 | <div class="refsect2" lang="en"> | ||
88 | <a name="G3DObject"></a><h3>G3DObject</h3> | ||
89 | <pre class="programlisting">typedef struct { | ||
90 | gchar *name; | ||
91 | |||
92 | GSList *materials; | ||
93 | GSList *faces; | ||
94 | GSList *objects; | ||
95 | |||
96 | /* transformation, may be NULL */ | ||
97 | G3DTransformation *transformation; | ||
98 | |||
99 | /* don't render this object */ | ||
100 | gboolean hide; | ||
101 | |||
102 | /* vertices */ | ||
103 | guint32 vertex_count; | ||
104 | G3DVector *vertex_data; | ||
105 | } G3DObject; | ||
106 | </pre> | ||
107 | <p> | ||
108 | A three-dimensional object.</p> | ||
109 | <p> | ||
110 | |||
111 | </p> | ||
112 | <div class="variablelist"><table border="0"> | ||
113 | <col align="left" valign="top"> | ||
114 | <tbody> | ||
115 | <tr> | ||
116 | <td><p><span class="term"><a | ||
117 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
118 | >gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td> | ||
119 | <td> name of object | ||
120 | </td> | ||
121 | </tr> | ||
122 | <tr> | ||
123 | <td><p><span class="term"><a | ||
124 | href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList" | ||
125 | >GSList</a> *<em class="structfield"><code>materials</code></em>;</span></p></td> | ||
126 | <td> list of materials | ||
127 | </td> | ||
128 | </tr> | ||
129 | <tr> | ||
130 | <td><p><span class="term"><a | ||
131 | href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList" | ||
132 | >GSList</a> *<em class="structfield"><code>faces</code></em>;</span></p></td> | ||
133 | <td> list of faces | ||
134 | </td> | ||
135 | </tr> | ||
136 | <tr> | ||
137 | <td><p><span class="term"><a | ||
138 | href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList" | ||
139 | >GSList</a> *<em class="structfield"><code>objects</code></em>;</span></p></td> | ||
140 | <td> list of sub-objects | ||
141 | </td> | ||
142 | </tr> | ||
143 | <tr> | ||
144 | <td><p><span class="term"><a class="link" href="libg3d-object.html#G3DTransformation" title="G3DTransformation">G3DTransformation</a> *<em class="structfield"><code>transformation</code></em>;</span></p></td> | ||
145 | <td> optional transformation | ||
146 | </td> | ||
147 | </tr> | ||
148 | <tr> | ||
149 | <td><p><span class="term"><a | ||
150 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
151 | >gboolean</a> <em class="structfield"><code>hide</code></em>;</span></p></td> | ||
152 | <td> flag to disable object rendering | ||
153 | </td> | ||
154 | </tr> | ||
155 | <tr> | ||
156 | <td><p><span class="term"><a | ||
157 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
158 | >guint32</a> <em class="structfield"><code>vertex_count</code></em>;</span></p></td> | ||
159 | <td> number of vertices | ||
160 | </td> | ||
161 | </tr> | ||
162 | <tr> | ||
163 | <td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>vertex_data</code></em>;</span></p></td> | ||
164 | <td> vertex vector data | ||
165 | </td> | ||
166 | </tr> | ||
167 | </tbody> | ||
168 | </table></div> | ||
169 | </div> | ||
170 | <hr> | ||
171 | <div class="refsect2" lang="en"> | ||
172 | <a name="G3DTransformation"></a><h3>G3DTransformation</h3> | ||
173 | <pre class="programlisting">typedef struct { | ||
174 | G3DMatrix matrix[16]; | ||
175 | guint32 flags; | ||
176 | } G3DTransformation; | ||
177 | </pre> | ||
178 | <p> | ||
179 | A three-dimensional matrix transformation object.</p> | ||
180 | <p> | ||
181 | |||
182 | </p> | ||
183 | <div class="variablelist"><table border="0"> | ||
184 | <col align="left" valign="top"> | ||
185 | <tbody> | ||
186 | <tr> | ||
187 | <td><p><span class="term"><a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> <em class="structfield"><code>matrix</code></em>[16];</span></p></td> | ||
188 | <td> the transformation matrix | ||
189 | </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <td><p><span class="term"><a | ||
193 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
194 | >guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td> | ||
195 | <td> flags | ||
196 | </td> | ||
197 | </tr> | ||
198 | </tbody> | ||
199 | </table></div> | ||
200 | </div> | ||
201 | <hr> | ||
202 | <div class="refsect2" lang="en"> | ||
203 | <a name="g3d-object-free"></a><h3>g3d_object_free ()</h3> | ||
204 | <pre class="programlisting">void g3d_object_free (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre> | ||
205 | <p> | ||
206 | Frees all memory allocated for that object.</p> | ||
207 | <p> | ||
208 | |||
209 | </p> | ||
210 | <div class="variablelist"><table border="0"> | ||
211 | <col align="left" valign="top"> | ||
212 | <tbody><tr> | ||
213 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
214 | <td> the object to free | ||
215 | </td> | ||
216 | </tr></tbody> | ||
217 | </table></div> | ||
218 | </div> | ||
219 | <hr> | ||
220 | <div class="refsect2" lang="en"> | ||
221 | <a name="g3d-object-radius"></a><h3>g3d_object_radius ()</h3> | ||
222 | <pre class="programlisting"><a | ||
223 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
224 | >gdouble</a> g3d_object_radius (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre> | ||
225 | <p> | ||
226 | Calculates the radius of the object. This is the maximum from the | ||
227 | center to a vertex.</p> | ||
228 | <p> | ||
229 | |||
230 | </p> | ||
231 | <div class="variablelist"><table border="0"> | ||
232 | <col align="left" valign="top"> | ||
233 | <tbody> | ||
234 | <tr> | ||
235 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
236 | <td> the object to measure | ||
237 | </td> | ||
238 | </tr> | ||
239 | <tr> | ||
240 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
241 | <td> the radius of the given object | ||
242 | </td> | ||
243 | </tr> | ||
244 | </tbody> | ||
245 | </table></div> | ||
246 | </div> | ||
247 | <hr> | ||
248 | <div class="refsect2" lang="en"> | ||
249 | <a name="g3d-object-scale"></a><h3>g3d_object_scale ()</h3> | ||
250 | <pre class="programlisting"><a | ||
251 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
252 | >gboolean</a> g3d_object_scale (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
253 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale);</pre> | ||
254 | <p> | ||
255 | Resizes the object by the factor <em class="parameter"><code>scale</code></em>.</p> | ||
256 | <p> | ||
257 | |||
258 | </p> | ||
259 | <div class="variablelist"><table border="0"> | ||
260 | <col align="left" valign="top"> | ||
261 | <tbody> | ||
262 | <tr> | ||
263 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
264 | <td> the object to scale | ||
265 | </td> | ||
266 | </tr> | ||
267 | <tr> | ||
268 | <td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td> | ||
269 | <td> scale factor | ||
270 | </td> | ||
271 | </tr> | ||
272 | <tr> | ||
273 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
274 | <td> TRUE on success, FALSE else | ||
275 | </td> | ||
276 | </tr> | ||
277 | </tbody> | ||
278 | </table></div> | ||
279 | </div> | ||
280 | <hr> | ||
281 | <div class="refsect2" lang="en"> | ||
282 | <a name="g3d-object-transform"></a><h3>g3d_object_transform ()</h3> | ||
283 | <pre class="programlisting"><a | ||
284 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
285 | >gboolean</a> g3d_object_transform (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
286 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
287 | <p> | ||
288 | Multiplies all vertices of the object with the transformation matrix.</p> | ||
289 | <p> | ||
290 | |||
291 | </p> | ||
292 | <div class="variablelist"><table border="0"> | ||
293 | <col align="left" valign="top"> | ||
294 | <tbody> | ||
295 | <tr> | ||
296 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
297 | <td> the object to transform | ||
298 | </td> | ||
299 | </tr> | ||
300 | <tr> | ||
301 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
302 | <td> the transformation matrix | ||
303 | </td> | ||
304 | </tr> | ||
305 | <tr> | ||
306 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
307 | <td> TRUE on success, FALSE else | ||
308 | </td> | ||
309 | </tr> | ||
310 | </tbody> | ||
311 | </table></div> | ||
312 | </div> | ||
313 | <hr> | ||
314 | <div class="refsect2" lang="en"> | ||
315 | <a name="g3d-object-transform-normals"></a><h3>g3d_object_transform_normals ()</h3> | ||
316 | <pre class="programlisting"><a | ||
317 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
318 | >gboolean</a> g3d_object_transform_normals (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object, | ||
319 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
320 | <p> | ||
321 | Multiplies all normals of the object with the transformation matrix.</p> | ||
322 | <p> | ||
323 | |||
324 | </p> | ||
325 | <div class="variablelist"><table border="0"> | ||
326 | <col align="left" valign="top"> | ||
327 | <tbody> | ||
328 | <tr> | ||
329 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
330 | <td> the object to transform | ||
331 | </td> | ||
332 | </tr> | ||
333 | <tr> | ||
334 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
335 | <td> the transformation matrix | ||
336 | </td> | ||
337 | </tr> | ||
338 | <tr> | ||
339 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
340 | <td> TRUE on success, FALSE else | ||
341 | </td> | ||
342 | </tr> | ||
343 | </tbody> | ||
344 | </table></div> | ||
345 | </div> | ||
346 | <hr> | ||
347 | <div class="refsect2" lang="en"> | ||
348 | <a name="g3d-object-duplicate"></a><h3>g3d_object_duplicate ()</h3> | ||
349 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_object_duplicate (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre> | ||
350 | <p> | ||
351 | Duplicates an object with all vertices, faces and materials.</p> | ||
352 | <p> | ||
353 | |||
354 | </p> | ||
355 | <div class="variablelist"><table border="0"> | ||
356 | <col align="left" valign="top"> | ||
357 | <tbody> | ||
358 | <tr> | ||
359 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
360 | <td> the object to duplicate | ||
361 | </td> | ||
362 | </tr> | ||
363 | <tr> | ||
364 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
365 | <td> the new clone object | ||
366 | </td> | ||
367 | </tr> | ||
368 | </tbody> | ||
369 | </table></div> | ||
370 | </div> | ||
371 | <hr> | ||
372 | <div class="refsect2" lang="en"> | ||
373 | <a name="g3d-object-optimize"></a><h3>g3d_object_optimize ()</h3> | ||
374 | <pre class="programlisting"><a | ||
375 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
376 | >gboolean</a> g3d_object_optimize (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre> | ||
377 | <p> | ||
378 | Puts all vertex and face information into special arrays for faster | ||
379 | rendering. It is deprecated and should not be used.</p> | ||
380 | <p> | ||
381 | |||
382 | </p> | ||
383 | <div class="variablelist"><table border="0"> | ||
384 | <col align="left" valign="top"> | ||
385 | <tbody> | ||
386 | <tr> | ||
387 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
388 | <td> the object to optimize | ||
389 | </td> | ||
390 | </tr> | ||
391 | <tr> | ||
392 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
393 | <td> TRUE on success, FALSE else | ||
394 | </td> | ||
395 | </tr> | ||
396 | </tbody> | ||
397 | </table></div> | ||
398 | </div> | ||
399 | <hr> | ||
400 | <div class="refsect2" lang="en"> | ||
401 | <a name="g3d-object-smooth"></a><h3>g3d_object_smooth ()</h3> | ||
402 | <pre class="programlisting"><a | ||
403 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
404 | >gboolean</a> g3d_object_smooth (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre> | ||
405 | <p> | ||
406 | FIXME: unimplemented.</p> | ||
407 | <p> | ||
408 | |||
409 | </p> | ||
410 | <div class="variablelist"><table border="0"> | ||
411 | <col align="left" valign="top"> | ||
412 | <tbody> | ||
413 | <tr> | ||
414 | <td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td> | ||
415 | <td> the object to smooth | ||
416 | </td> | ||
417 | </tr> | ||
418 | <tr> | ||
419 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
420 | <td> TRUE on success, FALSE else | ||
421 | </td> | ||
422 | </tr> | ||
423 | </tbody> | ||
424 | </table></div> | ||
425 | </div> | ||
426 | <hr> | ||
427 | <div class="refsect2" lang="en"> | ||
428 | <a name="g3d-object-merge"></a><h3>g3d_object_merge ()</h3> | ||
429 | <pre class="programlisting"><a | ||
430 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
431 | >gboolean</a> g3d_object_merge (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o1, | ||
432 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o2);</pre> | ||
433 | <p> | ||
434 | Merges both objects into <em class="parameter"><code>o1</code></em>. | ||
435 | FIXME: needs cleanup</p> | ||
436 | <p> | ||
437 | |||
438 | </p> | ||
439 | <div class="variablelist"><table border="0"> | ||
440 | <col align="left" valign="top"> | ||
441 | <tbody> | ||
442 | <tr> | ||
443 | <td><p><span class="term"><em class="parameter"><code>o1</code></em> :</span></p></td> | ||
444 | <td> first and target object | ||
445 | </td> | ||
446 | </tr> | ||
447 | <tr> | ||
448 | <td><p><span class="term"><em class="parameter"><code>o2</code></em> :</span></p></td> | ||
449 | <td> second object | ||
450 | </td> | ||
451 | </tr> | ||
452 | <tr> | ||
453 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
454 | <td> TRUE on success, FALSE else | ||
455 | </td> | ||
456 | </tr> | ||
457 | </tbody> | ||
458 | </table></div> | ||
459 | </div> | ||
460 | </div> | ||
461 | </div> | ||
462 | <div class="footer"> | ||
463 | <hr> | ||
464 | Generated by GTK-Doc V1.10</div> | ||
465 | </body> | ||
466 | </html> | ||
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> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html new file mode 100644 index 0000000..cf7facc --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html | |||
@@ -0,0 +1,508 @@ | |||
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>primitive</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="libg3d-read.html" title="read"> | ||
10 | <link rel="next" href="libg3d-matrix.html" title="matrix"> | ||
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="libg3d-read.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-matrix.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-primitive.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-primitive.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-primitive"></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-primitive.top_of_page"></a>primitive</span></h2> | ||
34 | <p>primitive — 3D primitive generation functions</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-primitive.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/primitive.h> | ||
43 | |||
44 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cube" title="g3d_primitive_cube ()">g3d_primitive_cube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
45 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
46 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
47 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
48 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()">g3d_primitive_box</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
49 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
50 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
51 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
52 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box-strip-2d" title="g3d_primitive_box_strip_2d ()">g3d_primitive_box_strip_2d</a> (<a | ||
53 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
54 | >guint32</a> vcnt, | ||
55 | <a | ||
56 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
57 | >gdouble</a> *vdata, | ||
58 | <a | ||
59 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
60 | >gdouble</a> height, | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
63 | >gdouble</a> width, | ||
64 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
65 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-mesh" title="g3d_primitive_mesh ()">g3d_primitive_mesh</a> (<a | ||
66 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
67 | >guint32</a> m, | ||
68 | <a | ||
69 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
70 | >guint32</a> n, | ||
71 | <a | ||
72 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
73 | >gboolean</a> wrap_m, | ||
74 | <a | ||
75 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
76 | >gboolean</a> wrap_n, | ||
77 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
78 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cylinder" title="g3d_primitive_cylinder ()">g3d_primitive_cylinder</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
79 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
80 | <a | ||
81 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
82 | >guint32</a> sides, | ||
83 | <a | ||
84 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
85 | >gboolean</a> top, | ||
86 | <a | ||
87 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
88 | >gboolean</a> bottom, | ||
89 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
90 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-tube" title="g3d_primitive_tube ()">g3d_primitive_tube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in, | ||
91 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out, | ||
92 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
93 | <a | ||
94 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
95 | >guint32</a> sides, | ||
96 | <a | ||
97 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
98 | >gboolean</a> top, | ||
99 | <a | ||
100 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
101 | >gboolean</a> bottom, | ||
102 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
103 | <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-sphere" title="g3d_primitive_sphere ()">g3d_primitive_sphere</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
104 | <a | ||
105 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
106 | >guint32</a> vseg, | ||
107 | <a | ||
108 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
109 | >guint32</a> hseg, | ||
110 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material); | ||
111 | </pre> | ||
112 | </div> | ||
113 | <div class="refsect1" lang="en"> | ||
114 | <a name="libg3d-primitive.description"></a><h2>Description</h2> | ||
115 | <p> | ||
116 | Primitives are objects containing basic 3D geometrical structures. A | ||
117 | variety of them can be created using these functions.</p> | ||
118 | <p> | ||
119 | |||
120 | </p> | ||
121 | </div> | ||
122 | <div class="refsect1" lang="en"> | ||
123 | <a name="libg3d-primitive.details"></a><h2>Details</h2> | ||
124 | <div class="refsect2" lang="en"> | ||
125 | <a name="g3d-primitive-cube"></a><h3>g3d_primitive_cube ()</h3> | ||
126 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
127 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
128 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
129 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
130 | <p> | ||
131 | Generates an object containing a box. It is deprecated and now a wrapper for | ||
132 | <a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()"><code class="function">g3d_primitive_box()</code></a>.</p> | ||
133 | <p> | ||
134 | |||
135 | </p> | ||
136 | <div class="variablelist"><table border="0"> | ||
137 | <col align="left" valign="top"> | ||
138 | <tbody> | ||
139 | <tr> | ||
140 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
141 | <td> the width of the box | ||
142 | </td> | ||
143 | </tr> | ||
144 | <tr> | ||
145 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
146 | <td> the height of the box | ||
147 | </td> | ||
148 | </tr> | ||
149 | <tr> | ||
150 | <td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td> | ||
151 | <td> the depth of the box | ||
152 | </td> | ||
153 | </tr> | ||
154 | <tr> | ||
155 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
156 | <td> the material to use for all faces | ||
157 | </td> | ||
158 | </tr> | ||
159 | <tr> | ||
160 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
161 | <td> the box object | ||
162 | </td> | ||
163 | </tr> | ||
164 | </tbody> | ||
165 | </table></div> | ||
166 | </div> | ||
167 | <hr> | ||
168 | <div class="refsect2" lang="en"> | ||
169 | <a name="g3d-primitive-box"></a><h3>g3d_primitive_box ()</h3> | ||
170 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width, | ||
171 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
172 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth, | ||
173 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
174 | <p> | ||
175 | Generates an object containing a box.</p> | ||
176 | <p> | ||
177 | |||
178 | </p> | ||
179 | <div class="variablelist"><table border="0"> | ||
180 | <col align="left" valign="top"> | ||
181 | <tbody> | ||
182 | <tr> | ||
183 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
184 | <td> the width of the box | ||
185 | </td> | ||
186 | </tr> | ||
187 | <tr> | ||
188 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
189 | <td> the height of the box | ||
190 | </td> | ||
191 | </tr> | ||
192 | <tr> | ||
193 | <td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td> | ||
194 | <td> the depth of the box | ||
195 | </td> | ||
196 | </tr> | ||
197 | <tr> | ||
198 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
199 | <td> the material to use for all faces | ||
200 | </td> | ||
201 | </tr> | ||
202 | <tr> | ||
203 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
204 | <td> the box object | ||
205 | </td> | ||
206 | </tr> | ||
207 | </tbody> | ||
208 | </table></div> | ||
209 | </div> | ||
210 | <hr> | ||
211 | <div class="refsect2" lang="en"> | ||
212 | <a name="g3d-primitive-box-strip-2d"></a><h3>g3d_primitive_box_strip_2d ()</h3> | ||
213 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box_strip_2d (<a | ||
214 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
215 | >guint32</a> vcnt, | ||
216 | <a | ||
217 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
218 | >gdouble</a> *vdata, | ||
219 | <a | ||
220 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
221 | >gdouble</a> height, | ||
222 | <a | ||
223 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble" | ||
224 | >gdouble</a> width, | ||
225 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
226 | <p> | ||
227 | Generates a strip of box segments defined by corner center points | ||
228 | using two-dimensional data (x/z plane).</p> | ||
229 | <p> | ||
230 | |||
231 | </p> | ||
232 | <div class="variablelist"><table border="0"> | ||
233 | <col align="left" valign="top"> | ||
234 | <tbody> | ||
235 | <tr> | ||
236 | <td><p><span class="term"><em class="parameter"><code>vcnt</code></em> :</span></p></td> | ||
237 | <td> number of control points | ||
238 | </td> | ||
239 | </tr> | ||
240 | <tr> | ||
241 | <td><p><span class="term"><em class="parameter"><code>vdata</code></em> :</span></p></td> | ||
242 | <td> 2-dimensional control point data (2 * vcnt * gdouble) | ||
243 | </td> | ||
244 | </tr> | ||
245 | <tr> | ||
246 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
247 | <td> height of resulting strip (y component) | ||
248 | </td> | ||
249 | </tr> | ||
250 | <tr> | ||
251 | <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> | ||
252 | <td> width of strip (corner diameter) | ||
253 | </td> | ||
254 | </tr> | ||
255 | <tr> | ||
256 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
257 | <td> material to use for faces | ||
258 | </td> | ||
259 | </tr> | ||
260 | <tr> | ||
261 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
262 | <td> strip object | ||
263 | </td> | ||
264 | </tr> | ||
265 | </tbody> | ||
266 | </table></div> | ||
267 | </div> | ||
268 | <hr> | ||
269 | <div class="refsect2" lang="en"> | ||
270 | <a name="g3d-primitive-mesh"></a><h3>g3d_primitive_mesh ()</h3> | ||
271 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_mesh (<a | ||
272 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
273 | >guint32</a> m, | ||
274 | <a | ||
275 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
276 | >guint32</a> n, | ||
277 | <a | ||
278 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
279 | >gboolean</a> wrap_m, | ||
280 | <a | ||
281 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
282 | >gboolean</a> wrap_n, | ||
283 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
284 | <p> | ||
285 | Generate a mesh consisting of m * n vertices. The vertex data is | ||
286 | initialized with (0.0, 0.0, 0.0) and has to be set to something | ||
287 | useful.</p> | ||
288 | <p> | ||
289 | |||
290 | </p> | ||
291 | <div class="variablelist"><table border="0"> | ||
292 | <col align="left" valign="top"> | ||
293 | <tbody> | ||
294 | <tr> | ||
295 | <td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td> | ||
296 | <td> number of vertices in m direction | ||
297 | </td> | ||
298 | </tr> | ||
299 | <tr> | ||
300 | <td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td> | ||
301 | <td> number of vertices in n direction | ||
302 | </td> | ||
303 | </tr> | ||
304 | <tr> | ||
305 | <td><p><span class="term"><em class="parameter"><code>wrap_m</code></em> :</span></p></td> | ||
306 | <td> wrap around in m direction | ||
307 | </td> | ||
308 | </tr> | ||
309 | <tr> | ||
310 | <td><p><span class="term"><em class="parameter"><code>wrap_n</code></em> :</span></p></td> | ||
311 | <td> wrap around in n direction | ||
312 | </td> | ||
313 | </tr> | ||
314 | <tr> | ||
315 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
316 | <td> material to use for faces | ||
317 | </td> | ||
318 | </tr> | ||
319 | <tr> | ||
320 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
321 | <td> mesh object | ||
322 | </td> | ||
323 | </tr> | ||
324 | </tbody> | ||
325 | </table></div> | ||
326 | </div> | ||
327 | <hr> | ||
328 | <div class="refsect2" lang="en"> | ||
329 | <a name="g3d-primitive-cylinder"></a><h3>g3d_primitive_cylinder ()</h3> | ||
330 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cylinder (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
331 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
332 | <a | ||
333 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
334 | >guint32</a> sides, | ||
335 | <a | ||
336 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
337 | >gboolean</a> top, | ||
338 | <a | ||
339 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
340 | >gboolean</a> bottom, | ||
341 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
342 | <p> | ||
343 | Generates an object containing a cylinder.</p> | ||
344 | <p> | ||
345 | |||
346 | </p> | ||
347 | <div class="variablelist"><table border="0"> | ||
348 | <col align="left" valign="top"> | ||
349 | <tbody> | ||
350 | <tr> | ||
351 | <td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td> | ||
352 | <td> the radius of the cylinder | ||
353 | </td> | ||
354 | </tr> | ||
355 | <tr> | ||
356 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
357 | <td> the height of the side faces | ||
358 | </td> | ||
359 | </tr> | ||
360 | <tr> | ||
361 | <td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td> | ||
362 | <td> number of side faces (number of circle segments) | ||
363 | </td> | ||
364 | </tr> | ||
365 | <tr> | ||
366 | <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td> | ||
367 | <td> add top faces | ||
368 | </td> | ||
369 | </tr> | ||
370 | <tr> | ||
371 | <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td> | ||
372 | <td> add bottom faces | ||
373 | </td> | ||
374 | </tr> | ||
375 | <tr> | ||
376 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
377 | <td> material to use for faces | ||
378 | </td> | ||
379 | </tr> | ||
380 | <tr> | ||
381 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
382 | <td> cylinder object | ||
383 | </td> | ||
384 | </tr> | ||
385 | </tbody> | ||
386 | </table></div> | ||
387 | </div> | ||
388 | <hr> | ||
389 | <div class="refsect2" lang="en"> | ||
390 | <a name="g3d-primitive-tube"></a><h3>g3d_primitive_tube ()</h3> | ||
391 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_tube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in, | ||
392 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out, | ||
393 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height, | ||
394 | <a | ||
395 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
396 | >guint32</a> sides, | ||
397 | <a | ||
398 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
399 | >gboolean</a> top, | ||
400 | <a | ||
401 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
402 | >gboolean</a> bottom, | ||
403 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
404 | <p> | ||
405 | Generates an object containing a tube (a cylinder with a hole).</p> | ||
406 | <p> | ||
407 | |||
408 | </p> | ||
409 | <div class="variablelist"><table border="0"> | ||
410 | <col align="left" valign="top"> | ||
411 | <tbody> | ||
412 | <tr> | ||
413 | <td><p><span class="term"><em class="parameter"><code>r_in</code></em> :</span></p></td> | ||
414 | <td> inner radius | ||
415 | </td> | ||
416 | </tr> | ||
417 | <tr> | ||
418 | <td><p><span class="term"><em class="parameter"><code>r_out</code></em> :</span></p></td> | ||
419 | <td> outer radius | ||
420 | </td> | ||
421 | </tr> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> | ||
424 | <td> the height of the side faces | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td> | ||
429 | <td> number of side faces (number of circle segments) | ||
430 | </td> | ||
431 | </tr> | ||
432 | <tr> | ||
433 | <td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td> | ||
434 | <td> add top faces | ||
435 | </td> | ||
436 | </tr> | ||
437 | <tr> | ||
438 | <td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td> | ||
439 | <td> add bottom faces | ||
440 | </td> | ||
441 | </tr> | ||
442 | <tr> | ||
443 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
444 | <td> material to use for faces | ||
445 | </td> | ||
446 | </tr> | ||
447 | <tr> | ||
448 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
449 | <td> tube object | ||
450 | </td> | ||
451 | </tr> | ||
452 | </tbody> | ||
453 | </table></div> | ||
454 | </div> | ||
455 | <hr> | ||
456 | <div class="refsect2" lang="en"> | ||
457 | <a name="g3d-primitive-sphere"></a><h3>g3d_primitive_sphere ()</h3> | ||
458 | <pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_sphere (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius, | ||
459 | <a | ||
460 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
461 | >guint32</a> vseg, | ||
462 | <a | ||
463 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
464 | >guint32</a> hseg, | ||
465 | <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre> | ||
466 | <p> | ||
467 | Generates an object containing a sphere.</p> | ||
468 | <p> | ||
469 | |||
470 | </p> | ||
471 | <div class="variablelist"><table border="0"> | ||
472 | <col align="left" valign="top"> | ||
473 | <tbody> | ||
474 | <tr> | ||
475 | <td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td> | ||
476 | <td> radius | ||
477 | </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td><p><span class="term"><em class="parameter"><code>vseg</code></em> :</span></p></td> | ||
481 | <td> number of vertical segments | ||
482 | </td> | ||
483 | </tr> | ||
484 | <tr> | ||
485 | <td><p><span class="term"><em class="parameter"><code>hseg</code></em> :</span></p></td> | ||
486 | <td> number of horizontal segments | ||
487 | </td> | ||
488 | </tr> | ||
489 | <tr> | ||
490 | <td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td> | ||
491 | <td> material to use for faces | ||
492 | </td> | ||
493 | </tr> | ||
494 | <tr> | ||
495 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
496 | <td> sphere object | ||
497 | </td> | ||
498 | </tr> | ||
499 | </tbody> | ||
500 | </table></div> | ||
501 | </div> | ||
502 | </div> | ||
503 | </div> | ||
504 | <div class="footer"> | ||
505 | <hr> | ||
506 | Generated by GTK-Doc V1.10</div> | ||
507 | </body> | ||
508 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html new file mode 100644 index 0000000..af4e6aa --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html | |||
@@ -0,0 +1,346 @@ | |||
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>quat</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="libg3d-vector.html" title="vector"> | ||
10 | <meta name="generator" content="GTK-Doc V1.10 (XML mode)"> | ||
11 | <link rel="stylesheet" href="style.css" type="text/css"> | ||
12 | <link rel="chapter" href="ch01.html" title="Application interface"> | ||
13 | <link rel="chapter" href="ch02.html" title="Plugin interface"> | ||
14 | </head> | ||
15 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | ||
16 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> | ||
17 | <tr valign="middle"> | ||
18 | <td><a accesskey="p" href="libg3d-vector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
19 | <td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> | ||
20 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> | ||
21 | <th width="100%" align="center">libg3d Reference Manual</th> | ||
22 | <td> </td> | ||
23 | </tr> | ||
24 | <tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-quat.synopsis" class="shortcut">Top</a> | ||
25 | | | ||
26 | <a href="#libg3d-quat.description" class="shortcut">Description</a></nobr></td></tr> | ||
27 | </table> | ||
28 | <div class="refentry" lang="en"> | ||
29 | <a name="libg3d-quat"></a><div class="titlepage"></div> | ||
30 | <div class="refnamediv"><table width="100%"><tr> | ||
31 | <td valign="top"> | ||
32 | <h2><span class="refentrytitle"><a name="libg3d-quat.top_of_page"></a>quat</span></h2> | ||
33 | <p>quat — quaternion helpers</p> | ||
34 | </td> | ||
35 | <td valign="top" align="right"></td> | ||
36 | </tr></table></div> | ||
37 | <div class="refsynopsisdiv"> | ||
38 | <a name="libg3d-quat.synopsis"></a><h2>Synopsis</h2> | ||
39 | <pre class="synopsis"> | ||
40 | |||
41 | #include <g3d/quat.h> | ||
42 | |||
43 | typedef <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a>; | ||
44 | <a | ||
45 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
46 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-add" title="g3d_quat_add ()">g3d_quat_add</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *qr, | ||
47 | <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q1, | ||
48 | <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q2); | ||
49 | <a | ||
50 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
51 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-normalize" title="g3d_quat_normalize ()">g3d_quat_normalize</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q); | ||
52 | <a | ||
53 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
54 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-rotate" title="g3d_quat_rotate ()">g3d_quat_rotate</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
55 | <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *axis, | ||
56 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle); | ||
57 | <a | ||
58 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
59 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-to-matrix" title="g3d_quat_to_matrix ()">g3d_quat_to_matrix</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
60 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
63 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-to-rotation-xyz" title="g3d_quat_to_rotation_xyz ()">g3d_quat_to_rotation_xyz</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
64 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rx, | ||
65 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ry, | ||
66 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rz); | ||
67 | <a | ||
68 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
69 | >gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-trackball" title="g3d_quat_trackball ()">g3d_quat_trackball</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
70 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x1, | ||
71 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y1, | ||
72 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x2, | ||
73 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y2, | ||
74 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r); | ||
75 | </pre> | ||
76 | </div> | ||
77 | <div class="refsect1" lang="en"> | ||
78 | <a name="libg3d-quat.description"></a><h2>Description</h2> | ||
79 | <p> | ||
80 | </p> | ||
81 | <p> | ||
82 | |||
83 | </p> | ||
84 | </div> | ||
85 | <div class="refsect1" lang="en"> | ||
86 | <a name="libg3d-quat.details"></a><h2>Details</h2> | ||
87 | <div class="refsect2" lang="en"> | ||
88 | <a name="G3DQuat"></a><h3>G3DQuat</h3> | ||
89 | <pre class="programlisting">typedef G3DFloat G3DQuat; | ||
90 | </pre> | ||
91 | <p> | ||
92 | Quaternion element type.</p> | ||
93 | <p> | ||
94 | |||
95 | </p> | ||
96 | </div> | ||
97 | <hr> | ||
98 | <div class="refsect2" lang="en"> | ||
99 | <a name="g3d-quat-add"></a><h3>g3d_quat_add ()</h3> | ||
100 | <pre class="programlisting"><a | ||
101 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
102 | >gboolean</a> g3d_quat_add (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *qr, | ||
103 | <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q1, | ||
104 | <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q2);</pre> | ||
105 | <p> | ||
106 | Add two quats.</p> | ||
107 | <p> | ||
108 | |||
109 | </p> | ||
110 | <div class="variablelist"><table border="0"> | ||
111 | <col align="left" valign="top"> | ||
112 | <tbody> | ||
113 | <tr> | ||
114 | <td><p><span class="term"><em class="parameter"><code>qr</code></em> :</span></p></td> | ||
115 | <td> result quat | ||
116 | </td> | ||
117 | </tr> | ||
118 | <tr> | ||
119 | <td><p><span class="term"><em class="parameter"><code>q1</code></em> :</span></p></td> | ||
120 | <td> first quat | ||
121 | </td> | ||
122 | </tr> | ||
123 | <tr> | ||
124 | <td><p><span class="term"><em class="parameter"><code>q2</code></em> :</span></p></td> | ||
125 | <td> second quat | ||
126 | </td> | ||
127 | </tr> | ||
128 | <tr> | ||
129 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
130 | <td> TRUE on success, FALSE else | ||
131 | </td> | ||
132 | </tr> | ||
133 | </tbody> | ||
134 | </table></div> | ||
135 | </div> | ||
136 | <hr> | ||
137 | <div class="refsect2" lang="en"> | ||
138 | <a name="g3d-quat-normalize"></a><h3>g3d_quat_normalize ()</h3> | ||
139 | <pre class="programlisting"><a | ||
140 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
141 | >gboolean</a> g3d_quat_normalize (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q);</pre> | ||
142 | <p> | ||
143 | normalize the quaternion to a length of 1.0.</p> | ||
144 | <p> | ||
145 | |||
146 | </p> | ||
147 | <div class="variablelist"><table border="0"> | ||
148 | <col align="left" valign="top"> | ||
149 | <tbody> | ||
150 | <tr> | ||
151 | <td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td> | ||
152 | <td> a quaternion | ||
153 | </td> | ||
154 | </tr> | ||
155 | <tr> | ||
156 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
157 | <td> TRUE on success, FALSE else | ||
158 | </td> | ||
159 | </tr> | ||
160 | </tbody> | ||
161 | </table></div> | ||
162 | </div> | ||
163 | <hr> | ||
164 | <div class="refsect2" lang="en"> | ||
165 | <a name="g3d-quat-rotate"></a><h3>g3d_quat_rotate ()</h3> | ||
166 | <pre class="programlisting"><a | ||
167 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
168 | >gboolean</a> g3d_quat_rotate (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
169 | <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *axis, | ||
170 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle);</pre> | ||
171 | <p> | ||
172 | Encode a rotation around an axis into quaternion.</p> | ||
173 | <p> | ||
174 | |||
175 | </p> | ||
176 | <div class="variablelist"><table border="0"> | ||
177 | <col align="left" valign="top"> | ||
178 | <tbody> | ||
179 | <tr> | ||
180 | <td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td> | ||
181 | <td> resulting quat | ||
182 | </td> | ||
183 | </tr> | ||
184 | <tr> | ||
185 | <td><p><span class="term"><em class="parameter"><code>axis</code></em> :</span></p></td> | ||
186 | <td> rotation axis | ||
187 | </td> | ||
188 | </tr> | ||
189 | <tr> | ||
190 | <td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td> | ||
191 | <td> rotation angle | ||
192 | </td> | ||
193 | </tr> | ||
194 | <tr> | ||
195 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
196 | <td> TRUE on success, FALSE else | ||
197 | </td> | ||
198 | </tr> | ||
199 | </tbody> | ||
200 | </table></div> | ||
201 | </div> | ||
202 | <hr> | ||
203 | <div class="refsect2" lang="en"> | ||
204 | <a name="g3d-quat-to-matrix"></a><h3>g3d_quat_to_matrix ()</h3> | ||
205 | <pre class="programlisting"><a | ||
206 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
207 | >gboolean</a> g3d_quat_to_matrix (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
208 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
209 | <p> | ||
210 | Convert a quaternion to a transformation matrix.</p> | ||
211 | <p> | ||
212 | |||
213 | </p> | ||
214 | <div class="variablelist"><table border="0"> | ||
215 | <col align="left" valign="top"> | ||
216 | <tbody> | ||
217 | <tr> | ||
218 | <td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td> | ||
219 | <td> source quat | ||
220 | </td> | ||
221 | </tr> | ||
222 | <tr> | ||
223 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
224 | <td> resulting matrix | ||
225 | </td> | ||
226 | </tr> | ||
227 | <tr> | ||
228 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
229 | <td> TRUE on success, FALSE else | ||
230 | </td> | ||
231 | </tr> | ||
232 | </tbody> | ||
233 | </table></div> | ||
234 | </div> | ||
235 | <hr> | ||
236 | <div class="refsect2" lang="en"> | ||
237 | <a name="g3d-quat-to-rotation-xyz"></a><h3>g3d_quat_to_rotation_xyz ()</h3> | ||
238 | <pre class="programlisting"><a | ||
239 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
240 | >gboolean</a> g3d_quat_to_rotation_xyz (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
241 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rx, | ||
242 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ry, | ||
243 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rz);</pre> | ||
244 | <p> | ||
245 | Calculate the rotation around the three coordinate axes from a given | ||
246 | quaternion.</p> | ||
247 | <p> | ||
248 | |||
249 | </p> | ||
250 | <div class="variablelist"><table border="0"> | ||
251 | <col align="left" valign="top"> | ||
252 | <tbody> | ||
253 | <tr> | ||
254 | <td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td> | ||
255 | <td> a quaternion | ||
256 | </td> | ||
257 | </tr> | ||
258 | <tr> | ||
259 | <td><p><span class="term"><em class="parameter"><code>rx</code></em> :</span></p></td> | ||
260 | <td> rotation around x axis | ||
261 | </td> | ||
262 | </tr> | ||
263 | <tr> | ||
264 | <td><p><span class="term"><em class="parameter"><code>ry</code></em> :</span></p></td> | ||
265 | <td> rotation around y axis | ||
266 | </td> | ||
267 | </tr> | ||
268 | <tr> | ||
269 | <td><p><span class="term"><em class="parameter"><code>rz</code></em> :</span></p></td> | ||
270 | <td> rotation around z axis | ||
271 | </td> | ||
272 | </tr> | ||
273 | <tr> | ||
274 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
275 | <td> TRUE on success, FALSE else | ||
276 | </td> | ||
277 | </tr> | ||
278 | </tbody> | ||
279 | </table></div> | ||
280 | </div> | ||
281 | <hr> | ||
282 | <div class="refsect2" lang="en"> | ||
283 | <a name="g3d-quat-trackball"></a><h3>g3d_quat_trackball ()</h3> | ||
284 | <pre class="programlisting"><a | ||
285 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
286 | >gboolean</a> g3d_quat_trackball (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q, | ||
287 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x1, | ||
288 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y1, | ||
289 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x2, | ||
290 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y2, | ||
291 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r);</pre> | ||
292 | <p> | ||
293 | Emulate a virtual trackball movement and return rotation as quaternion. | ||
294 | The x and y values of the starting and end point of the movement have | ||
295 | to be in the range -1.0 .. 1.0.</p> | ||
296 | <p> | ||
297 | |||
298 | </p> | ||
299 | <div class="variablelist"><table border="0"> | ||
300 | <col align="left" valign="top"> | ||
301 | <tbody> | ||
302 | <tr> | ||
303 | <td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td> | ||
304 | <td> resulting quaternion | ||
305 | </td> | ||
306 | </tr> | ||
307 | <tr> | ||
308 | <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td> | ||
309 | <td> x value of first point | ||
310 | </td> | ||
311 | </tr> | ||
312 | <tr> | ||
313 | <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td> | ||
314 | <td> y value of first point | ||
315 | </td> | ||
316 | </tr> | ||
317 | <tr> | ||
318 | <td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td> | ||
319 | <td> x value of second point | ||
320 | </td> | ||
321 | </tr> | ||
322 | <tr> | ||
323 | <td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td> | ||
324 | <td> y value of second point | ||
325 | </td> | ||
326 | </tr> | ||
327 | <tr> | ||
328 | <td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td> | ||
329 | <td> radius of virtual trackball, usually 0.8 | ||
330 | </td> | ||
331 | </tr> | ||
332 | <tr> | ||
333 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
334 | <td> TRUE on success, FALSE else | ||
335 | </td> | ||
336 | </tr> | ||
337 | </tbody> | ||
338 | </table></div> | ||
339 | </div> | ||
340 | </div> | ||
341 | </div> | ||
342 | <div class="footer"> | ||
343 | <hr> | ||
344 | Generated by GTK-Doc V1.10</div> | ||
345 | </body> | ||
346 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html new file mode 100644 index 0000000..b731d3c --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html | |||
@@ -0,0 +1,373 @@ | |||
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>read</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="libg3d-iff.html" title="iff"> | ||
10 | <link rel="next" href="libg3d-primitive.html" title="primitive"> | ||
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="libg3d-iff.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-primitive.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-read.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-read.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-read"></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-read.top_of_page"></a>read</span></h2> | ||
34 | <p>read — file reading abstraction (deprecated)</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-read.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/read.h> | ||
43 | |||
44 | <a | ||
45 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
46 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int8" title="g3d_read_int8 ()">g3d_read_int8</a> (FILE *f); | ||
47 | <a | ||
48 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
49 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int16-be" title="g3d_read_int16_be ()">g3d_read_int16_be</a> (FILE *f); | ||
50 | <a | ||
51 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
52 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int16-le" title="g3d_read_int16_le ()">g3d_read_int16_le</a> (FILE *f); | ||
53 | <a | ||
54 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
55 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int32-be" title="g3d_read_int32_be ()">g3d_read_int32_be</a> (FILE *f); | ||
56 | <a | ||
57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
58 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int32-le" title="g3d_read_int32_le ()">g3d_read_int32_le</a> (FILE *f); | ||
59 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-be" title="g3d_read_float_be ()">g3d_read_float_be</a> (FILE *f); | ||
60 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-le" title="g3d_read_float_le ()">g3d_read_float_le</a> (FILE *f); | ||
61 | <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-be" title="g3d_read_double_be ()">g3d_read_double_be</a> (FILE *f); | ||
62 | <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-le" title="g3d_read_double_le ()">g3d_read_double_le</a> (FILE *f); | ||
63 | <a | ||
64 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
65 | >gint32</a> <a class="link" href="libg3d-read.html#g3d-read-cstr" title="g3d_read_cstr ()">g3d_read_cstr</a> (FILE *f, | ||
66 | <a | ||
67 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
68 | >gchar</a> *buffer, | ||
69 | <a | ||
70 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
71 | >gint32</a> max_len); | ||
72 | </pre> | ||
73 | </div> | ||
74 | <div class="refsect1" lang="en"> | ||
75 | <a name="libg3d-read.description"></a><h2>Description</h2> | ||
76 | <p> | ||
77 | The g3d_read_* family of functions is deprecated in favour of the <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> | ||
78 | interface.</p> | ||
79 | <p> | ||
80 | |||
81 | </p> | ||
82 | </div> | ||
83 | <div class="refsect1" lang="en"> | ||
84 | <a name="libg3d-read.details"></a><h2>Details</h2> | ||
85 | <div class="refsect2" lang="en"> | ||
86 | <a name="g3d-read-int8"></a><h3>g3d_read_int8 ()</h3> | ||
87 | <pre class="programlisting"><a | ||
88 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
89 | >gint32</a> g3d_read_int8 (FILE *f);</pre> | ||
90 | <p> | ||
91 | Read a 1 byte signed integer from file.</p> | ||
92 | <p> | ||
93 | |||
94 | </p> | ||
95 | <div class="variablelist"><table border="0"> | ||
96 | <col align="left" valign="top"> | ||
97 | <tbody> | ||
98 | <tr> | ||
99 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
100 | <td> the file to read from | ||
101 | </td> | ||
102 | </tr> | ||
103 | <tr> | ||
104 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
105 | <td> The read value, 0 in case of error | ||
106 | </td> | ||
107 | </tr> | ||
108 | </tbody> | ||
109 | </table></div> | ||
110 | </div> | ||
111 | <hr> | ||
112 | <div class="refsect2" lang="en"> | ||
113 | <a name="g3d-read-int16-be"></a><h3>g3d_read_int16_be ()</h3> | ||
114 | <pre class="programlisting"><a | ||
115 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
116 | >gint32</a> g3d_read_int16_be (FILE *f);</pre> | ||
117 | <p> | ||
118 | Read a 2 byte big-endian signed integer from file.</p> | ||
119 | <p> | ||
120 | |||
121 | </p> | ||
122 | <div class="variablelist"><table border="0"> | ||
123 | <col align="left" valign="top"> | ||
124 | <tbody> | ||
125 | <tr> | ||
126 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
127 | <td> the file to read from | ||
128 | </td> | ||
129 | </tr> | ||
130 | <tr> | ||
131 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
132 | <td> The read value, 0 in case of error | ||
133 | </td> | ||
134 | </tr> | ||
135 | </tbody> | ||
136 | </table></div> | ||
137 | </div> | ||
138 | <hr> | ||
139 | <div class="refsect2" lang="en"> | ||
140 | <a name="g3d-read-int16-le"></a><h3>g3d_read_int16_le ()</h3> | ||
141 | <pre class="programlisting"><a | ||
142 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
143 | >gint32</a> g3d_read_int16_le (FILE *f);</pre> | ||
144 | <p> | ||
145 | Read a 2 byte little-endian signed integer from file.</p> | ||
146 | <p> | ||
147 | |||
148 | </p> | ||
149 | <div class="variablelist"><table border="0"> | ||
150 | <col align="left" valign="top"> | ||
151 | <tbody> | ||
152 | <tr> | ||
153 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
154 | <td> the file to read from | ||
155 | </td> | ||
156 | </tr> | ||
157 | <tr> | ||
158 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
159 | <td> The read value, 0 in case of error | ||
160 | </td> | ||
161 | </tr> | ||
162 | </tbody> | ||
163 | </table></div> | ||
164 | </div> | ||
165 | <hr> | ||
166 | <div class="refsect2" lang="en"> | ||
167 | <a name="g3d-read-int32-be"></a><h3>g3d_read_int32_be ()</h3> | ||
168 | <pre class="programlisting"><a | ||
169 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
170 | >gint32</a> g3d_read_int32_be (FILE *f);</pre> | ||
171 | <p> | ||
172 | Read a 4 byte big-endian signed integer from file.</p> | ||
173 | <p> | ||
174 | |||
175 | </p> | ||
176 | <div class="variablelist"><table border="0"> | ||
177 | <col align="left" valign="top"> | ||
178 | <tbody> | ||
179 | <tr> | ||
180 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
181 | <td> the file to read from | ||
182 | </td> | ||
183 | </tr> | ||
184 | <tr> | ||
185 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
186 | <td> The read value, 0 in case of error | ||
187 | </td> | ||
188 | </tr> | ||
189 | </tbody> | ||
190 | </table></div> | ||
191 | </div> | ||
192 | <hr> | ||
193 | <div class="refsect2" lang="en"> | ||
194 | <a name="g3d-read-int32-le"></a><h3>g3d_read_int32_le ()</h3> | ||
195 | <pre class="programlisting"><a | ||
196 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
197 | >gint32</a> g3d_read_int32_le (FILE *f);</pre> | ||
198 | <p> | ||
199 | Read a 4 byte little-endian signed integer from file.</p> | ||
200 | <p> | ||
201 | |||
202 | </p> | ||
203 | <div class="variablelist"><table border="0"> | ||
204 | <col align="left" valign="top"> | ||
205 | <tbody> | ||
206 | <tr> | ||
207 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
208 | <td> the file to read from | ||
209 | </td> | ||
210 | </tr> | ||
211 | <tr> | ||
212 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
213 | <td> The read value, 0 in case of error | ||
214 | </td> | ||
215 | </tr> | ||
216 | </tbody> | ||
217 | </table></div> | ||
218 | </div> | ||
219 | <hr> | ||
220 | <div class="refsect2" lang="en"> | ||
221 | <a name="g3d-read-float-be"></a><h3>g3d_read_float_be ()</h3> | ||
222 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_be (FILE *f);</pre> | ||
223 | <p> | ||
224 | Read a 4 byte big-endian floating point number from file.</p> | ||
225 | <p> | ||
226 | |||
227 | </p> | ||
228 | <div class="variablelist"><table border="0"> | ||
229 | <col align="left" valign="top"> | ||
230 | <tbody> | ||
231 | <tr> | ||
232 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
233 | <td> the file to read from | ||
234 | </td> | ||
235 | </tr> | ||
236 | <tr> | ||
237 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
238 | <td> The read value, 0 in case of error | ||
239 | </td> | ||
240 | </tr> | ||
241 | </tbody> | ||
242 | </table></div> | ||
243 | </div> | ||
244 | <hr> | ||
245 | <div class="refsect2" lang="en"> | ||
246 | <a name="g3d-read-float-le"></a><h3>g3d_read_float_le ()</h3> | ||
247 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_le (FILE *f);</pre> | ||
248 | <p> | ||
249 | Read a 4 byte little-endian floating point number from file.</p> | ||
250 | <p> | ||
251 | |||
252 | </p> | ||
253 | <div class="variablelist"><table border="0"> | ||
254 | <col align="left" valign="top"> | ||
255 | <tbody> | ||
256 | <tr> | ||
257 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
258 | <td> the file to read from | ||
259 | </td> | ||
260 | </tr> | ||
261 | <tr> | ||
262 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
263 | <td> The read value, 0 in case of error | ||
264 | </td> | ||
265 | </tr> | ||
266 | </tbody> | ||
267 | </table></div> | ||
268 | </div> | ||
269 | <hr> | ||
270 | <div class="refsect2" lang="en"> | ||
271 | <a name="g3d-read-double-be"></a><h3>g3d_read_double_be ()</h3> | ||
272 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_be (FILE *f);</pre> | ||
273 | <p> | ||
274 | Read a 8 byte big-endian double-precision floating point number from file.</p> | ||
275 | <p> | ||
276 | |||
277 | </p> | ||
278 | <div class="variablelist"><table border="0"> | ||
279 | <col align="left" valign="top"> | ||
280 | <tbody> | ||
281 | <tr> | ||
282 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
283 | <td> the file to read from | ||
284 | </td> | ||
285 | </tr> | ||
286 | <tr> | ||
287 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
288 | <td> The read value, 0 in case of error | ||
289 | </td> | ||
290 | </tr> | ||
291 | </tbody> | ||
292 | </table></div> | ||
293 | </div> | ||
294 | <hr> | ||
295 | <div class="refsect2" lang="en"> | ||
296 | <a name="g3d-read-double-le"></a><h3>g3d_read_double_le ()</h3> | ||
297 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_le (FILE *f);</pre> | ||
298 | <p> | ||
299 | Read a 8 byte little-endian double-precision floating point number from | ||
300 | file.</p> | ||
301 | <p> | ||
302 | |||
303 | </p> | ||
304 | <div class="variablelist"><table border="0"> | ||
305 | <col align="left" valign="top"> | ||
306 | <tbody> | ||
307 | <tr> | ||
308 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
309 | <td> the file to read from | ||
310 | </td> | ||
311 | </tr> | ||
312 | <tr> | ||
313 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
314 | <td> The read value, 0 in case of error | ||
315 | </td> | ||
316 | </tr> | ||
317 | </tbody> | ||
318 | </table></div> | ||
319 | </div> | ||
320 | <hr> | ||
321 | <div class="refsect2" lang="en"> | ||
322 | <a name="g3d-read-cstr"></a><h3>g3d_read_cstr ()</h3> | ||
323 | <pre class="programlisting"><a | ||
324 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
325 | >gint32</a> g3d_read_cstr (FILE *f, | ||
326 | <a | ||
327 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
328 | >gchar</a> *buffer, | ||
329 | <a | ||
330 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
331 | >gint32</a> max_len);</pre> | ||
332 | <p> | ||
333 | Read a zero-terminated string from file.</p> | ||
334 | <p> | ||
335 | |||
336 | </p> | ||
337 | <div class="variablelist"><table border="0"> | ||
338 | <col align="left" valign="top"> | ||
339 | <tbody> | ||
340 | <tr> | ||
341 | <td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td> | ||
342 | <td> the file to read from | ||
343 | </td> | ||
344 | </tr> | ||
345 | <tr> | ||
346 | <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td> | ||
347 | <td> the buffer to store line in | ||
348 | </td> | ||
349 | </tr> | ||
350 | <tr> | ||
351 | <td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td> | ||
352 | <td> maximum length of string including termination character | ||
353 | </td> | ||
354 | </tr> | ||
355 | <tr> | ||
356 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
357 | <td> number of bytes read from file. | ||
358 | </td> | ||
359 | </tr> | ||
360 | </tbody> | ||
361 | </table></div> | ||
362 | </div> | ||
363 | </div> | ||
364 | <div class="refsect1" lang="en"> | ||
365 | <a name="libg3d-read.see-also"></a><h2>See Also</h2> | ||
366 | g3d_stream_open_file | ||
367 | </div> | ||
368 | </div> | ||
369 | <div class="footer"> | ||
370 | <hr> | ||
371 | Generated by GTK-Doc V1.10</div> | ||
372 | </body> | ||
373 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html new file mode 100644 index 0000000..a03c89f --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html | |||
@@ -0,0 +1,1535 @@ | |||
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>stream</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="libg3d-plugins.html" title="plugins"> | ||
10 | <link rel="next" href="libg3d-iff.html" title="iff"> | ||
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="libg3d-plugins.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-iff.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-stream.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-stream.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-stream"></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-stream.top_of_page"></a>stream</span></h2> | ||
34 | <p>stream — I/O abstraction layer for plugins</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-stream.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/stream.h> | ||
43 | |||
44 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>; | ||
45 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()">g3d_stream_open_file</a> (const <a | ||
46 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
47 | >gchar</a> *filename, | ||
48 | const <a | ||
49 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
50 | >gchar</a> *mode); | ||
51 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file" title="g3d_stream_open_structured_file ()">g3d_stream_open_structured_file</a> (const <a | ||
52 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
53 | >gchar</a> *filename, | ||
54 | const <a | ||
55 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
56 | >gchar</a> *subfile); | ||
57 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file-from-stream" title="g3d_stream_open_structured_file_from_stream ()">g3d_stream_open_structured_file_from_stream</a> | ||
58 | (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
59 | const <a | ||
60 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
61 | >gchar</a> *subfile); | ||
62 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip" title="g3d_stream_open_zip ()">g3d_stream_open_zip</a> (const <a | ||
63 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
64 | >gchar</a> *filename, | ||
65 | const <a | ||
66 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
67 | >gchar</a> *subfile); | ||
68 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip-from-stream" title="g3d_stream_open_zip_from_stream ()">g3d_stream_open_zip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
69 | const <a | ||
70 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
71 | >gchar</a> *subfile); | ||
72 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-gzip-from-stream" title="g3d_stream_open_gzip_from_stream ()">g3d_stream_open_gzip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
73 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-from-buffer" title="g3d_stream_from_buffer ()">g3d_stream_from_buffer</a> (<a | ||
74 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8" | ||
75 | >guint8</a> *buffer, | ||
76 | <a | ||
77 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
78 | >gsize</a> size, | ||
79 | const <a | ||
80 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
81 | >gchar</a> *title, | ||
82 | <a | ||
83 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
84 | >gboolean</a> free_buffer); | ||
85 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-zlib-inflate-stream" title="g3d_stream_zlib_inflate_stream ()">g3d_stream_zlib_inflate_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
86 | <a | ||
87 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
88 | >gsize</a> cmp_size); | ||
89 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-new-custom" title="g3d_stream_new_custom ()">g3d_stream_new_custom</a> (<a | ||
90 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
91 | >guint32</a> flags, | ||
92 | const <a | ||
93 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
94 | >gchar</a> *uri, | ||
95 | <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc, | ||
96 | <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc, | ||
97 | <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc, | ||
98 | <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc, | ||
99 | <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc, | ||
100 | <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc, | ||
101 | <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc, | ||
102 | <a | ||
103 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
104 | >gpointer</a> data); | ||
105 | <a | ||
106 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
107 | >gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()">g3d_stream_close</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
108 | <a | ||
109 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
110 | >gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-skip" title="g3d_stream_skip ()">g3d_stream_skip</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
111 | <a | ||
112 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
113 | >goffset</a> offset); | ||
114 | <a | ||
115 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
116 | >gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()">g3d_stream_seek</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
117 | <a | ||
118 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
119 | >goffset</a> offset, | ||
120 | <a | ||
121 | href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType" | ||
122 | >GSeekType</a> whence); | ||
123 | <a | ||
124 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
125 | >goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()">g3d_stream_tell</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
126 | <a | ||
127 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
128 | >goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()">g3d_stream_size</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
129 | <a | ||
130 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
131 | >gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()">g3d_stream_eof</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
132 | <a | ||
133 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
134 | >gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-is-seekable" title="g3d_stream_is_seekable ()">g3d_stream_is_seekable</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
135 | <a | ||
136 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
137 | >gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-get-uri" title="g3d_stream_get_uri ()">g3d_stream_get_uri</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
138 | <a | ||
139 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
140 | >guint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-line" title="g3d_stream_line ()">g3d_stream_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
141 | <a | ||
142 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
143 | >gsize</a> <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()">g3d_stream_read</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
144 | <a | ||
145 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
146 | >gpointer</a> ptr, | ||
147 | <a | ||
148 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
149 | >gsize</a> size); | ||
150 | <a | ||
151 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
152 | >gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()">g3d_stream_read_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
153 | <a | ||
154 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
155 | >gchar</a> *buf, | ||
156 | <a | ||
157 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
158 | >gsize</a> size); | ||
159 | <a | ||
160 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
161 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int8" title="g3d_stream_read_int8 ()">g3d_stream_read_int8</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
162 | <a | ||
163 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
164 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-be" title="g3d_stream_read_int16_be ()">g3d_stream_read_int16_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
165 | <a | ||
166 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
167 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-le" title="g3d_stream_read_int16_le ()">g3d_stream_read_int16_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
168 | <a | ||
169 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
170 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-be" title="g3d_stream_read_int32_be ()">g3d_stream_read_int32_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
171 | <a | ||
172 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
173 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-le" title="g3d_stream_read_int32_le ()">g3d_stream_read_int32_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
174 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-be" title="g3d_stream_read_float_be ()">g3d_stream_read_float_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
175 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-le" title="g3d_stream_read_float_le ()">g3d_stream_read_float_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
176 | <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-be" title="g3d_stream_read_double_be ()">g3d_stream_read_double_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
177 | <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-le" title="g3d_stream_read_double_le ()">g3d_stream_read_double_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
178 | <a | ||
179 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
180 | >gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-cstr" title="g3d_stream_read_cstr ()">g3d_stream_read_cstr</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
181 | <a | ||
182 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
183 | >gchar</a> *buffer, | ||
184 | <a | ||
185 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
186 | >gint32</a> max_len); | ||
187 | <a | ||
188 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
189 | >gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">*G3DStreamCloseFunc</a>) (<a | ||
190 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
191 | >gpointer</a> data); | ||
192 | <a | ||
193 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
194 | >gboolean</a> (<a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">*G3DStreamEofFunc</a>) (<a | ||
195 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
196 | >gpointer</a> data); | ||
197 | <a | ||
198 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
199 | >gsize</a> (<a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">*G3DStreamReadFunc</a>) (<a | ||
200 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
201 | >gpointer</a> ptr, | ||
202 | <a | ||
203 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
204 | >gsize</a> size, | ||
205 | <a | ||
206 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
207 | >gpointer</a> data); | ||
208 | <a | ||
209 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
210 | >gchar</a>* (<a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">*G3DStreamReadLineFunc</a>) (<a | ||
211 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
212 | >gchar</a> *buf, | ||
213 | <a | ||
214 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
215 | >gsize</a> size, | ||
216 | <a | ||
217 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
218 | >gpointer</a> data); | ||
219 | <a | ||
220 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
221 | >gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">*G3DStreamSeekFunc</a>) (<a | ||
222 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
223 | >gpointer</a> data, | ||
224 | <a | ||
225 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
226 | >goffset</a> offset, | ||
227 | <a | ||
228 | href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType" | ||
229 | >GSeekType</a> whence); | ||
230 | <a | ||
231 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
232 | >goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">*G3DStreamSizeFunc</a>) (<a | ||
233 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
234 | >gpointer</a> data); | ||
235 | <a | ||
236 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
237 | >goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">*G3DStreamTellFunc</a>) (<a | ||
238 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
239 | >gpointer</a> data); | ||
240 | </pre> | ||
241 | </div> | ||
242 | <div class="refsect1" lang="en"> | ||
243 | <a name="libg3d-stream.description"></a><h2>Description</h2> | ||
244 | <p> | ||
245 | A stream is an abstraction for data input. It enables plugins to read | ||
246 | data from a file, a memory buffer, a container file or some other medium.</p> | ||
247 | <p> | ||
248 | |||
249 | </p> | ||
250 | </div> | ||
251 | <div class="refsect1" lang="en"> | ||
252 | <a name="libg3d-stream.details"></a><h2>Details</h2> | ||
253 | <div class="refsect2" lang="en"> | ||
254 | <a name="G3DStream"></a><h3>G3DStream</h3> | ||
255 | <pre class="programlisting">typedef struct { | ||
256 | } G3DStream; | ||
257 | </pre> | ||
258 | <p> | ||
259 | An abstraction of input handling.</p> | ||
260 | <p> | ||
261 | |||
262 | </p> | ||
263 | </div> | ||
264 | <hr> | ||
265 | <div class="refsect2" lang="en"> | ||
266 | <a name="g3d-stream-open-file"></a><h3>g3d_stream_open_file ()</h3> | ||
267 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_file (const <a | ||
268 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
269 | >gchar</a> *filename, | ||
270 | const <a | ||
271 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
272 | >gchar</a> *mode);</pre> | ||
273 | <p> | ||
274 | Opens a file with the C stdio routines.</p> | ||
275 | <p> | ||
276 | |||
277 | </p> | ||
278 | <div class="variablelist"><table border="0"> | ||
279 | <col align="left" valign="top"> | ||
280 | <tbody> | ||
281 | <tr> | ||
282 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
283 | <td> the name of the file to open | ||
284 | </td> | ||
285 | </tr> | ||
286 | <tr> | ||
287 | <td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td> | ||
288 | <td> the mode to open the file, as given to <code class="function">fopen()</code> | ||
289 | </td> | ||
290 | </tr> | ||
291 | <tr> | ||
292 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
293 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
294 | </td> | ||
295 | </tr> | ||
296 | </tbody> | ||
297 | </table></div> | ||
298 | </div> | ||
299 | <hr> | ||
300 | <div class="refsect2" lang="en"> | ||
301 | <a name="g3d-stream-open-structured-file"></a><h3>g3d_stream_open_structured_file ()</h3> | ||
302 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file (const <a | ||
303 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
304 | >gchar</a> *filename, | ||
305 | const <a | ||
306 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
307 | >gchar</a> *subfile);</pre> | ||
308 | <p> | ||
309 | Open a file within a Structured File as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p> | ||
310 | <p> | ||
311 | |||
312 | </p> | ||
313 | <div class="variablelist"><table border="0"> | ||
314 | <col align="left" valign="top"> | ||
315 | <tbody> | ||
316 | <tr> | ||
317 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
318 | <td> name of container file | ||
319 | </td> | ||
320 | </tr> | ||
321 | <tr> | ||
322 | <td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td> | ||
323 | <td> name of (contained) sub-file | ||
324 | </td> | ||
325 | </tr> | ||
326 | <tr> | ||
327 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
328 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
329 | </td> | ||
330 | </tr> | ||
331 | </tbody> | ||
332 | </table></div> | ||
333 | </div> | ||
334 | <hr> | ||
335 | <div class="refsect2" lang="en"> | ||
336 | <a name="g3d-stream-open-structured-file-from-stream"></a><h3>g3d_stream_open_structured_file_from_stream ()</h3> | ||
337 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file_from_stream | ||
338 | (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
339 | const <a | ||
340 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
341 | >gchar</a> *subfile);</pre> | ||
342 | <p> | ||
343 | Open a file within a Structured File which is opened as a stream. At the | ||
344 | moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as | ||
345 | the file is directly opened again.</p> | ||
346 | <p> | ||
347 | |||
348 | </p> | ||
349 | <div class="variablelist"><table border="0"> | ||
350 | <col align="left" valign="top"> | ||
351 | <tbody> | ||
352 | <tr> | ||
353 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
354 | <td> stream of container file | ||
355 | </td> | ||
356 | </tr> | ||
357 | <tr> | ||
358 | <td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td> | ||
359 | <td> name of (contained) sub-file | ||
360 | </td> | ||
361 | </tr> | ||
362 | <tr> | ||
363 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
364 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
365 | </td> | ||
366 | </tr> | ||
367 | </tbody> | ||
368 | </table></div> | ||
369 | </div> | ||
370 | <hr> | ||
371 | <div class="refsect2" lang="en"> | ||
372 | <a name="g3d-stream-open-zip"></a><h3>g3d_stream_open_zip ()</h3> | ||
373 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip (const <a | ||
374 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
375 | >gchar</a> *filename, | ||
376 | const <a | ||
377 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
378 | >gchar</a> *subfile);</pre> | ||
379 | <p> | ||
380 | Open a file within a Zip archive.</p> | ||
381 | <p> | ||
382 | |||
383 | </p> | ||
384 | <div class="variablelist"><table border="0"> | ||
385 | <col align="left" valign="top"> | ||
386 | <tbody> | ||
387 | <tr> | ||
388 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
389 | <td> name of container file | ||
390 | </td> | ||
391 | </tr> | ||
392 | <tr> | ||
393 | <td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td> | ||
394 | <td> name of (contained) sub-file | ||
395 | </td> | ||
396 | </tr> | ||
397 | <tr> | ||
398 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
399 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
400 | </td> | ||
401 | </tr> | ||
402 | </tbody> | ||
403 | </table></div> | ||
404 | </div> | ||
405 | <hr> | ||
406 | <div class="refsect2" lang="en"> | ||
407 | <a name="g3d-stream-open-zip-from-stream"></a><h3>g3d_stream_open_zip_from_stream ()</h3> | ||
408 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
409 | const <a | ||
410 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
411 | >gchar</a> *subfile);</pre> | ||
412 | <p> | ||
413 | Open a file within a Zip archive which is opened as a stream. At the | ||
414 | moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as | ||
415 | the file is directly opened again.</p> | ||
416 | <p> | ||
417 | |||
418 | </p> | ||
419 | <div class="variablelist"><table border="0"> | ||
420 | <col align="left" valign="top"> | ||
421 | <tbody> | ||
422 | <tr> | ||
423 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
424 | <td> stream of container file | ||
425 | </td> | ||
426 | </tr> | ||
427 | <tr> | ||
428 | <td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td> | ||
429 | <td> name of (contained) sub-file | ||
430 | </td> | ||
431 | </tr> | ||
432 | <tr> | ||
433 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
434 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
435 | </td> | ||
436 | </tr> | ||
437 | </tbody> | ||
438 | </table></div> | ||
439 | </div> | ||
440 | <hr> | ||
441 | <div class="refsect2" lang="en"> | ||
442 | <a name="g3d-stream-open-gzip-from-stream"></a><h3>g3d_stream_open_gzip_from_stream ()</h3> | ||
443 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_gzip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
444 | <p> | ||
445 | Reads data from a gzip-compressed stream.</p> | ||
446 | <p> | ||
447 | |||
448 | </p> | ||
449 | <div class="variablelist"><table border="0"> | ||
450 | <col align="left" valign="top"> | ||
451 | <tbody> | ||
452 | <tr> | ||
453 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
454 | <td> stream to read from | ||
455 | </td> | ||
456 | </tr> | ||
457 | <tr> | ||
458 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
459 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
460 | </td> | ||
461 | </tr> | ||
462 | </tbody> | ||
463 | </table></div> | ||
464 | </div> | ||
465 | <hr> | ||
466 | <div class="refsect2" lang="en"> | ||
467 | <a name="g3d-stream-from-buffer"></a><h3>g3d_stream_from_buffer ()</h3> | ||
468 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_from_buffer (<a | ||
469 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8" | ||
470 | >guint8</a> *buffer, | ||
471 | <a | ||
472 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
473 | >gsize</a> size, | ||
474 | const <a | ||
475 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
476 | >gchar</a> *title, | ||
477 | <a | ||
478 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
479 | >gboolean</a> free_buffer);</pre> | ||
480 | <p> | ||
481 | Use a buffer in memory as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p> | ||
482 | <p> | ||
483 | |||
484 | </p> | ||
485 | <div class="variablelist"><table border="0"> | ||
486 | <col align="left" valign="top"> | ||
487 | <tbody> | ||
488 | <tr> | ||
489 | <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td> | ||
490 | <td> memory buffer to use | ||
491 | </td> | ||
492 | </tr> | ||
493 | <tr> | ||
494 | <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> | ||
495 | <td> size of buffer | ||
496 | </td> | ||
497 | </tr> | ||
498 | <tr> | ||
499 | <td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td> | ||
500 | <td> optional title of stream, may be NULL | ||
501 | </td> | ||
502 | </tr> | ||
503 | <tr> | ||
504 | <td><p><span class="term"><em class="parameter"><code>free_buffer</code></em> :</span></p></td> | ||
505 | <td> whether to free the memory with <a | ||
506 | href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free" | ||
507 | ><code class="function">g_free()</code></a> on <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a> | ||
508 | </td> | ||
509 | </tr> | ||
510 | <tr> | ||
511 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
512 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
513 | </td> | ||
514 | </tr> | ||
515 | </tbody> | ||
516 | </table></div> | ||
517 | </div> | ||
518 | <hr> | ||
519 | <div class="refsect2" lang="en"> | ||
520 | <a name="g3d-stream-zlib-inflate-stream"></a><h3>g3d_stream_zlib_inflate_stream ()</h3> | ||
521 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_zlib_inflate_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
522 | <a | ||
523 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
524 | >gsize</a> cmp_size);</pre> | ||
525 | <p> | ||
526 | Opens a new stream to decompress zlib-deflated parts of a stream.</p> | ||
527 | <p> | ||
528 | |||
529 | </p> | ||
530 | <div class="variablelist"><table border="0"> | ||
531 | <col align="left" valign="top"> | ||
532 | <tbody> | ||
533 | <tr> | ||
534 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
535 | <td> a parent stream | ||
536 | </td> | ||
537 | </tr> | ||
538 | <tr> | ||
539 | <td><p><span class="term"><em class="parameter"><code>cmp_size</code></em> :</span></p></td> | ||
540 | <td> the compressed size of the deflated part | ||
541 | </td> | ||
542 | </tr> | ||
543 | <tr> | ||
544 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
545 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error | ||
546 | </td> | ||
547 | </tr> | ||
548 | </tbody> | ||
549 | </table></div> | ||
550 | </div> | ||
551 | <hr> | ||
552 | <div class="refsect2" lang="en"> | ||
553 | <a name="g3d-stream-new-custom"></a><h3>g3d_stream_new_custom ()</h3> | ||
554 | <pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_new_custom (<a | ||
555 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
556 | >guint32</a> flags, | ||
557 | const <a | ||
558 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
559 | >gchar</a> *uri, | ||
560 | <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc, | ||
561 | <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc, | ||
562 | <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc, | ||
563 | <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc, | ||
564 | <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc, | ||
565 | <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc, | ||
566 | <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc, | ||
567 | <a | ||
568 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
569 | >gpointer</a> data);</pre> | ||
570 | <p> | ||
571 | Creates a new <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> with custom callback functions.</p> | ||
572 | <p> | ||
573 | |||
574 | </p> | ||
575 | <div class="variablelist"><table border="0"> | ||
576 | <col align="left" valign="top"> | ||
577 | <tbody> | ||
578 | <tr> | ||
579 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
580 | <td> stream capability flags | ||
581 | </td> | ||
582 | </tr> | ||
583 | <tr> | ||
584 | <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td> | ||
585 | <td> URI of new stream, must not be NULL | ||
586 | </td> | ||
587 | </tr> | ||
588 | <tr> | ||
589 | <td><p><span class="term"><em class="parameter"><code>readfunc</code></em> :</span></p></td> | ||
590 | <td> read callback function | ||
591 | </td> | ||
592 | </tr> | ||
593 | <tr> | ||
594 | <td><p><span class="term"><em class="parameter"><code>readlinefunc</code></em> :</span></p></td> | ||
595 | <td> read line callback function, may be NULL in which case | ||
596 | line reading is emulated with <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a> | ||
597 | </td> | ||
598 | </tr> | ||
599 | <tr> | ||
600 | <td><p><span class="term"><em class="parameter"><code>seekfunc</code></em> :</span></p></td> | ||
601 | <td> seek callback function | ||
602 | </td> | ||
603 | </tr> | ||
604 | <tr> | ||
605 | <td><p><span class="term"><em class="parameter"><code>tellfunc</code></em> :</span></p></td> | ||
606 | <td> tell callback function | ||
607 | </td> | ||
608 | </tr> | ||
609 | <tr> | ||
610 | <td><p><span class="term"><em class="parameter"><code>sizefunc</code></em> :</span></p></td> | ||
611 | <td> size callback function | ||
612 | </td> | ||
613 | </tr> | ||
614 | <tr> | ||
615 | <td><p><span class="term"><em class="parameter"><code>eoffunc</code></em> :</span></p></td> | ||
616 | <td> end-of-file callback function | ||
617 | </td> | ||
618 | </tr> | ||
619 | <tr> | ||
620 | <td><p><span class="term"><em class="parameter"><code>closefunc</code></em> :</span></p></td> | ||
621 | <td> close callback function | ||
622 | </td> | ||
623 | </tr> | ||
624 | <tr> | ||
625 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
626 | <td> opaque data for all callback functions | ||
627 | </td> | ||
628 | </tr> | ||
629 | <tr> | ||
630 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
631 | <td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error. | ||
632 | </td> | ||
633 | </tr> | ||
634 | </tbody> | ||
635 | </table></div> | ||
636 | </div> | ||
637 | <hr> | ||
638 | <div class="refsect2" lang="en"> | ||
639 | <a name="g3d-stream-close"></a><h3>g3d_stream_close ()</h3> | ||
640 | <pre class="programlisting"><a | ||
641 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
642 | >gint</a> g3d_stream_close (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
643 | <p> | ||
644 | Closes an open stream.</p> | ||
645 | <p> | ||
646 | |||
647 | </p> | ||
648 | <div class="variablelist"><table border="0"> | ||
649 | <col align="left" valign="top"> | ||
650 | <tbody> | ||
651 | <tr> | ||
652 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
653 | <td> the stream | ||
654 | </td> | ||
655 | </tr> | ||
656 | <tr> | ||
657 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
658 | <td> 0 on success. | ||
659 | </td> | ||
660 | </tr> | ||
661 | </tbody> | ||
662 | </table></div> | ||
663 | </div> | ||
664 | <hr> | ||
665 | <div class="refsect2" lang="en"> | ||
666 | <a name="g3d-stream-skip"></a><h3>g3d_stream_skip ()</h3> | ||
667 | <pre class="programlisting"><a | ||
668 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
669 | >gint</a> g3d_stream_skip (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
670 | <a | ||
671 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
672 | >goffset</a> offset);</pre> | ||
673 | <p> | ||
674 | Skip a number of bytes (>= 0) in stream even if it does not support | ||
675 | seeking.</p> | ||
676 | <p> | ||
677 | |||
678 | </p> | ||
679 | <div class="variablelist"><table border="0"> | ||
680 | <col align="left" valign="top"> | ||
681 | <tbody> | ||
682 | <tr> | ||
683 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
684 | <td> stream to skip bytes from | ||
685 | </td> | ||
686 | </tr> | ||
687 | <tr> | ||
688 | <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td> | ||
689 | <td> number of bytes to skip | ||
690 | </td> | ||
691 | </tr> | ||
692 | <tr> | ||
693 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
694 | <td> 0 on success, -1 else | ||
695 | </td> | ||
696 | </tr> | ||
697 | </tbody> | ||
698 | </table></div> | ||
699 | </div> | ||
700 | <hr> | ||
701 | <div class="refsect2" lang="en"> | ||
702 | <a name="g3d-stream-seek"></a><h3>g3d_stream_seek ()</h3> | ||
703 | <pre class="programlisting"><a | ||
704 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
705 | >gint</a> g3d_stream_seek (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
706 | <a | ||
707 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
708 | >goffset</a> offset, | ||
709 | <a | ||
710 | href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType" | ||
711 | >GSeekType</a> whence);</pre> | ||
712 | <p> | ||
713 | Moves around the current position in the stream.</p> | ||
714 | <p> | ||
715 | |||
716 | </p> | ||
717 | <div class="variablelist"><table border="0"> | ||
718 | <col align="left" valign="top"> | ||
719 | <tbody> | ||
720 | <tr> | ||
721 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
722 | <td> stream to seek in | ||
723 | </td> | ||
724 | </tr> | ||
725 | <tr> | ||
726 | <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td> | ||
727 | <td> number of bytes to seek | ||
728 | </td> | ||
729 | </tr> | ||
730 | <tr> | ||
731 | <td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td> | ||
732 | <td> seek type | ||
733 | </td> | ||
734 | </tr> | ||
735 | <tr> | ||
736 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
737 | <td> 0 on success, -1 else | ||
738 | </td> | ||
739 | </tr> | ||
740 | </tbody> | ||
741 | </table></div> | ||
742 | </div> | ||
743 | <hr> | ||
744 | <div class="refsect2" lang="en"> | ||
745 | <a name="g3d-stream-tell"></a><h3>g3d_stream_tell ()</h3> | ||
746 | <pre class="programlisting"><a | ||
747 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
748 | >goffset</a> g3d_stream_tell (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
749 | <p> | ||
750 | Tells the current position in the stream.</p> | ||
751 | <p> | ||
752 | |||
753 | </p> | ||
754 | <div class="variablelist"><table border="0"> | ||
755 | <col align="left" valign="top"> | ||
756 | <tbody> | ||
757 | <tr> | ||
758 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
759 | <td> stream to get position from | ||
760 | </td> | ||
761 | </tr> | ||
762 | <tr> | ||
763 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
764 | <td> current stream position | ||
765 | </td> | ||
766 | </tr> | ||
767 | </tbody> | ||
768 | </table></div> | ||
769 | </div> | ||
770 | <hr> | ||
771 | <div class="refsect2" lang="en"> | ||
772 | <a name="g3d-stream-size"></a><h3>g3d_stream_size ()</h3> | ||
773 | <pre class="programlisting"><a | ||
774 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
775 | >goffset</a> g3d_stream_size (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
776 | <p> | ||
777 | Get the size in bytes of a stream.</p> | ||
778 | <p> | ||
779 | |||
780 | </p> | ||
781 | <div class="variablelist"><table border="0"> | ||
782 | <col align="left" valign="top"> | ||
783 | <tbody> | ||
784 | <tr> | ||
785 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
786 | <td> stream to get size from | ||
787 | </td> | ||
788 | </tr> | ||
789 | <tr> | ||
790 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
791 | <td> size of stream in bytes | ||
792 | </td> | ||
793 | </tr> | ||
794 | </tbody> | ||
795 | </table></div> | ||
796 | </div> | ||
797 | <hr> | ||
798 | <div class="refsect2" lang="en"> | ||
799 | <a name="g3d-stream-eof"></a><h3>g3d_stream_eof ()</h3> | ||
800 | <pre class="programlisting"><a | ||
801 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
802 | >gboolean</a> g3d_stream_eof (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
803 | <p> | ||
804 | Checks whether the stream has reached its end.</p> | ||
805 | <p> | ||
806 | |||
807 | </p> | ||
808 | <div class="variablelist"><table border="0"> | ||
809 | <col align="left" valign="top"> | ||
810 | <tbody> | ||
811 | <tr> | ||
812 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
813 | <td> the stream | ||
814 | </td> | ||
815 | </tr> | ||
816 | <tr> | ||
817 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
818 | <td> TRUE if no more data can be read, FALSE else. | ||
819 | </td> | ||
820 | </tr> | ||
821 | </tbody> | ||
822 | </table></div> | ||
823 | </div> | ||
824 | <hr> | ||
825 | <div class="refsect2" lang="en"> | ||
826 | <a name="g3d-stream-is-seekable"></a><h3>g3d_stream_is_seekable ()</h3> | ||
827 | <pre class="programlisting"><a | ||
828 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
829 | >gboolean</a> g3d_stream_is_seekable (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
830 | <p> | ||
831 | Get information whether it is possible to seek in a stream.</p> | ||
832 | <p> | ||
833 | |||
834 | </p> | ||
835 | <div class="variablelist"><table border="0"> | ||
836 | <col align="left" valign="top"> | ||
837 | <tbody> | ||
838 | <tr> | ||
839 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
840 | <td> the stream | ||
841 | </td> | ||
842 | </tr> | ||
843 | <tr> | ||
844 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
845 | <td> TRUE if seekable, FALSE else | ||
846 | </td> | ||
847 | </tr> | ||
848 | </tbody> | ||
849 | </table></div> | ||
850 | </div> | ||
851 | <hr> | ||
852 | <div class="refsect2" lang="en"> | ||
853 | <a name="g3d-stream-get-uri"></a><h3>g3d_stream_get_uri ()</h3> | ||
854 | <pre class="programlisting"><a | ||
855 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
856 | >gchar</a>* g3d_stream_get_uri (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
857 | <p> | ||
858 | Get the URI of a stream</p> | ||
859 | <p> | ||
860 | |||
861 | </p> | ||
862 | <div class="variablelist"><table border="0"> | ||
863 | <col align="left" valign="top"> | ||
864 | <tbody> | ||
865 | <tr> | ||
866 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
867 | <td> the stream | ||
868 | </td> | ||
869 | </tr> | ||
870 | <tr> | ||
871 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
872 | <td> a non-NULL, zero-terminated string containing the URI of the | ||
873 | string. This return value should not be freed. | ||
874 | </td> | ||
875 | </tr> | ||
876 | </tbody> | ||
877 | </table></div> | ||
878 | </div> | ||
879 | <hr> | ||
880 | <div class="refsect2" lang="en"> | ||
881 | <a name="g3d-stream-line"></a><h3>g3d_stream_line ()</h3> | ||
882 | <pre class="programlisting"><a | ||
883 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
884 | >guint32</a> g3d_stream_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
885 | <p> | ||
886 | Get the current line number from stream. This only works if line are | ||
887 | consequently read with <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>, so it's only applicable | ||
888 | for text streams.</p> | ||
889 | <p> | ||
890 | |||
891 | </p> | ||
892 | <div class="variablelist"><table border="0"> | ||
893 | <col align="left" valign="top"> | ||
894 | <tbody> | ||
895 | <tr> | ||
896 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
897 | <td> stream to get line from | ||
898 | </td> | ||
899 | </tr> | ||
900 | <tr> | ||
901 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
902 | <td> current line number, may be 0 | ||
903 | </td> | ||
904 | </tr> | ||
905 | </tbody> | ||
906 | </table></div> | ||
907 | </div> | ||
908 | <hr> | ||
909 | <div class="refsect2" lang="en"> | ||
910 | <a name="g3d-stream-read"></a><h3>g3d_stream_read ()</h3> | ||
911 | <pre class="programlisting"><a | ||
912 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
913 | >gsize</a> g3d_stream_read (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
914 | <a | ||
915 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
916 | >gpointer</a> ptr, | ||
917 | <a | ||
918 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
919 | >gsize</a> size);</pre> | ||
920 | <p> | ||
921 | Reads a number of bytes from the stream.</p> | ||
922 | <p> | ||
923 | |||
924 | </p> | ||
925 | <div class="variablelist"><table border="0"> | ||
926 | <col align="left" valign="top"> | ||
927 | <tbody> | ||
928 | <tr> | ||
929 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
930 | <td> the stream to read from | ||
931 | </td> | ||
932 | </tr> | ||
933 | <tr> | ||
934 | <td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td> | ||
935 | <td> pointer to memory storage | ||
936 | </td> | ||
937 | </tr> | ||
938 | <tr> | ||
939 | <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> | ||
940 | <td> number of bytes to read | ||
941 | </td> | ||
942 | </tr> | ||
943 | <tr> | ||
944 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
945 | <td> number of bytes successfully read. | ||
946 | </td> | ||
947 | </tr> | ||
948 | </tbody> | ||
949 | </table></div> | ||
950 | </div> | ||
951 | <hr> | ||
952 | <div class="refsect2" lang="en"> | ||
953 | <a name="g3d-stream-read-line"></a><h3>g3d_stream_read_line ()</h3> | ||
954 | <pre class="programlisting"><a | ||
955 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
956 | >gchar</a>* g3d_stream_read_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
957 | <a | ||
958 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
959 | >gchar</a> *buf, | ||
960 | <a | ||
961 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
962 | >gsize</a> size);</pre> | ||
963 | <p> | ||
964 | Read a line (terminated by a newline character or end of file) from a | ||
965 | stream.</p> | ||
966 | <p> | ||
967 | |||
968 | </p> | ||
969 | <div class="variablelist"><table border="0"> | ||
970 | <col align="left" valign="top"> | ||
971 | <tbody> | ||
972 | <tr> | ||
973 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
974 | <td> stream to read a line from | ||
975 | </td> | ||
976 | </tr> | ||
977 | <tr> | ||
978 | <td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td> | ||
979 | <td> an allocated buffer to be filled | ||
980 | </td> | ||
981 | </tr> | ||
982 | <tr> | ||
983 | <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> | ||
984 | <td> maximum length of line including terminating zero | ||
985 | </td> | ||
986 | </tr> | ||
987 | <tr> | ||
988 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
989 | <td> the read line or NULL in case of an error. | ||
990 | </td> | ||
991 | </tr> | ||
992 | </tbody> | ||
993 | </table></div> | ||
994 | </div> | ||
995 | <hr> | ||
996 | <div class="refsect2" lang="en"> | ||
997 | <a name="g3d-stream-read-int8"></a><h3>g3d_stream_read_int8 ()</h3> | ||
998 | <pre class="programlisting"><a | ||
999 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1000 | >gint32</a> g3d_stream_read_int8 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1001 | <p> | ||
1002 | Read a 1 byte signed integer from file.</p> | ||
1003 | <p> | ||
1004 | |||
1005 | </p> | ||
1006 | <div class="variablelist"><table border="0"> | ||
1007 | <col align="left" valign="top"> | ||
1008 | <tbody> | ||
1009 | <tr> | ||
1010 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1011 | <td> the stream to read from | ||
1012 | </td> | ||
1013 | </tr> | ||
1014 | <tr> | ||
1015 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1016 | <td> The read value, 0 in case of error | ||
1017 | </td> | ||
1018 | </tr> | ||
1019 | </tbody> | ||
1020 | </table></div> | ||
1021 | </div> | ||
1022 | <hr> | ||
1023 | <div class="refsect2" lang="en"> | ||
1024 | <a name="g3d-stream-read-int16-be"></a><h3>g3d_stream_read_int16_be ()</h3> | ||
1025 | <pre class="programlisting"><a | ||
1026 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1027 | >gint32</a> g3d_stream_read_int16_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1028 | <p> | ||
1029 | Read a 2 byte big-endian signed integer from file.</p> | ||
1030 | <p> | ||
1031 | |||
1032 | </p> | ||
1033 | <div class="variablelist"><table border="0"> | ||
1034 | <col align="left" valign="top"> | ||
1035 | <tbody> | ||
1036 | <tr> | ||
1037 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1038 | <td> the stream to read from | ||
1039 | </td> | ||
1040 | </tr> | ||
1041 | <tr> | ||
1042 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1043 | <td> The read value, 0 in case of error | ||
1044 | </td> | ||
1045 | </tr> | ||
1046 | </tbody> | ||
1047 | </table></div> | ||
1048 | </div> | ||
1049 | <hr> | ||
1050 | <div class="refsect2" lang="en"> | ||
1051 | <a name="g3d-stream-read-int16-le"></a><h3>g3d_stream_read_int16_le ()</h3> | ||
1052 | <pre class="programlisting"><a | ||
1053 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1054 | >gint32</a> g3d_stream_read_int16_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1055 | <p> | ||
1056 | Read a 2 byte little-endian signed integer from file.</p> | ||
1057 | <p> | ||
1058 | |||
1059 | </p> | ||
1060 | <div class="variablelist"><table border="0"> | ||
1061 | <col align="left" valign="top"> | ||
1062 | <tbody> | ||
1063 | <tr> | ||
1064 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1065 | <td> the stream to read from | ||
1066 | </td> | ||
1067 | </tr> | ||
1068 | <tr> | ||
1069 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1070 | <td> The read value, 0 in case of error | ||
1071 | </td> | ||
1072 | </tr> | ||
1073 | </tbody> | ||
1074 | </table></div> | ||
1075 | </div> | ||
1076 | <hr> | ||
1077 | <div class="refsect2" lang="en"> | ||
1078 | <a name="g3d-stream-read-int32-be"></a><h3>g3d_stream_read_int32_be ()</h3> | ||
1079 | <pre class="programlisting"><a | ||
1080 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1081 | >gint32</a> g3d_stream_read_int32_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1082 | <p> | ||
1083 | Read a 4 byte big-endian signed integer from file.</p> | ||
1084 | <p> | ||
1085 | |||
1086 | </p> | ||
1087 | <div class="variablelist"><table border="0"> | ||
1088 | <col align="left" valign="top"> | ||
1089 | <tbody> | ||
1090 | <tr> | ||
1091 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1092 | <td> the stream to read from | ||
1093 | </td> | ||
1094 | </tr> | ||
1095 | <tr> | ||
1096 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1097 | <td> The read value, 0 in case of error | ||
1098 | </td> | ||
1099 | </tr> | ||
1100 | </tbody> | ||
1101 | </table></div> | ||
1102 | </div> | ||
1103 | <hr> | ||
1104 | <div class="refsect2" lang="en"> | ||
1105 | <a name="g3d-stream-read-int32-le"></a><h3>g3d_stream_read_int32_le ()</h3> | ||
1106 | <pre class="programlisting"><a | ||
1107 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1108 | >gint32</a> g3d_stream_read_int32_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1109 | <p> | ||
1110 | Read a 4 byte little-endian signed integer from file.</p> | ||
1111 | <p> | ||
1112 | |||
1113 | </p> | ||
1114 | <div class="variablelist"><table border="0"> | ||
1115 | <col align="left" valign="top"> | ||
1116 | <tbody> | ||
1117 | <tr> | ||
1118 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1119 | <td> the stream to read from | ||
1120 | </td> | ||
1121 | </tr> | ||
1122 | <tr> | ||
1123 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1124 | <td> The read value, 0 in case of error | ||
1125 | </td> | ||
1126 | </tr> | ||
1127 | </tbody> | ||
1128 | </table></div> | ||
1129 | </div> | ||
1130 | <hr> | ||
1131 | <div class="refsect2" lang="en"> | ||
1132 | <a name="g3d-stream-read-float-be"></a><h3>g3d_stream_read_float_be ()</h3> | ||
1133 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1134 | <p> | ||
1135 | Read a 4 byte big-endian floating point number from file.</p> | ||
1136 | <p> | ||
1137 | |||
1138 | </p> | ||
1139 | <div class="variablelist"><table border="0"> | ||
1140 | <col align="left" valign="top"> | ||
1141 | <tbody> | ||
1142 | <tr> | ||
1143 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1144 | <td> the stream to read from | ||
1145 | </td> | ||
1146 | </tr> | ||
1147 | <tr> | ||
1148 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1149 | <td> The read value, 0 in case of error | ||
1150 | </td> | ||
1151 | </tr> | ||
1152 | </tbody> | ||
1153 | </table></div> | ||
1154 | </div> | ||
1155 | <hr> | ||
1156 | <div class="refsect2" lang="en"> | ||
1157 | <a name="g3d-stream-read-float-le"></a><h3>g3d_stream_read_float_le ()</h3> | ||
1158 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1159 | <p> | ||
1160 | Read a 4 byte little-endian floating point number from file.</p> | ||
1161 | <p> | ||
1162 | |||
1163 | </p> | ||
1164 | <div class="variablelist"><table border="0"> | ||
1165 | <col align="left" valign="top"> | ||
1166 | <tbody> | ||
1167 | <tr> | ||
1168 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1169 | <td> the stream to read from | ||
1170 | </td> | ||
1171 | </tr> | ||
1172 | <tr> | ||
1173 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1174 | <td> The read value, 0 in case of error | ||
1175 | </td> | ||
1176 | </tr> | ||
1177 | </tbody> | ||
1178 | </table></div> | ||
1179 | </div> | ||
1180 | <hr> | ||
1181 | <div class="refsect2" lang="en"> | ||
1182 | <a name="g3d-stream-read-double-be"></a><h3>g3d_stream_read_double_be ()</h3> | ||
1183 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1184 | <p> | ||
1185 | Read a 8 byte big-endian double-precision floating point number from file.</p> | ||
1186 | <p> | ||
1187 | |||
1188 | </p> | ||
1189 | <div class="variablelist"><table border="0"> | ||
1190 | <col align="left" valign="top"> | ||
1191 | <tbody> | ||
1192 | <tr> | ||
1193 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1194 | <td> the stream to read from | ||
1195 | </td> | ||
1196 | </tr> | ||
1197 | <tr> | ||
1198 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1199 | <td> The read value, 0 in case of error | ||
1200 | </td> | ||
1201 | </tr> | ||
1202 | </tbody> | ||
1203 | </table></div> | ||
1204 | </div> | ||
1205 | <hr> | ||
1206 | <div class="refsect2" lang="en"> | ||
1207 | <a name="g3d-stream-read-double-le"></a><h3>g3d_stream_read_double_le ()</h3> | ||
1208 | <pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
1209 | <p> | ||
1210 | Read a 8 byte little-endian double-precision floating point number from | ||
1211 | file.</p> | ||
1212 | <p> | ||
1213 | |||
1214 | </p> | ||
1215 | <div class="variablelist"><table border="0"> | ||
1216 | <col align="left" valign="top"> | ||
1217 | <tbody> | ||
1218 | <tr> | ||
1219 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1220 | <td> the stream to read from | ||
1221 | </td> | ||
1222 | </tr> | ||
1223 | <tr> | ||
1224 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1225 | <td> The read value, 0 in case of error | ||
1226 | </td> | ||
1227 | </tr> | ||
1228 | </tbody> | ||
1229 | </table></div> | ||
1230 | </div> | ||
1231 | <hr> | ||
1232 | <div class="refsect2" lang="en"> | ||
1233 | <a name="g3d-stream-read-cstr"></a><h3>g3d_stream_read_cstr ()</h3> | ||
1234 | <pre class="programlisting"><a | ||
1235 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1236 | >gint32</a> g3d_stream_read_cstr (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream, | ||
1237 | <a | ||
1238 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
1239 | >gchar</a> *buffer, | ||
1240 | <a | ||
1241 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32" | ||
1242 | >gint32</a> max_len);</pre> | ||
1243 | <p> | ||
1244 | Read a string (terminated by '\0') from stream</p> | ||
1245 | <p> | ||
1246 | |||
1247 | </p> | ||
1248 | <div class="variablelist"><table border="0"> | ||
1249 | <col align="left" valign="top"> | ||
1250 | <tbody> | ||
1251 | <tr> | ||
1252 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
1253 | <td> the stream to read from | ||
1254 | </td> | ||
1255 | </tr> | ||
1256 | <tr> | ||
1257 | <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td> | ||
1258 | <td> the buffer to fill | ||
1259 | </td> | ||
1260 | </tr> | ||
1261 | <tr> | ||
1262 | <td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td> | ||
1263 | <td> maximum number to read from stream | ||
1264 | </td> | ||
1265 | </tr> | ||
1266 | <tr> | ||
1267 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1268 | <td> number of bytes read from stream | ||
1269 | </td> | ||
1270 | </tr> | ||
1271 | </tbody> | ||
1272 | </table></div> | ||
1273 | </div> | ||
1274 | <hr> | ||
1275 | <div class="refsect2" lang="en"> | ||
1276 | <a name="G3DStreamCloseFunc"></a><h3>G3DStreamCloseFunc ()</h3> | ||
1277 | <pre class="programlisting"><a | ||
1278 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
1279 | >gint</a> (*G3DStreamCloseFunc) (<a | ||
1280 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1281 | >gpointer</a> data);</pre> | ||
1282 | <p> | ||
1283 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a>.</p> | ||
1284 | <p> | ||
1285 | |||
1286 | </p> | ||
1287 | <div class="variablelist"><table border="0"> | ||
1288 | <col align="left" valign="top"> | ||
1289 | <tbody> | ||
1290 | <tr> | ||
1291 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1292 | <td> opaque stream data | ||
1293 | </td> | ||
1294 | </tr> | ||
1295 | <tr> | ||
1296 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1297 | <td> 0 on success, -1 else. | ||
1298 | </td> | ||
1299 | </tr> | ||
1300 | </tbody> | ||
1301 | </table></div> | ||
1302 | </div> | ||
1303 | <hr> | ||
1304 | <div class="refsect2" lang="en"> | ||
1305 | <a name="G3DStreamEofFunc"></a><h3>G3DStreamEofFunc ()</h3> | ||
1306 | <pre class="programlisting"><a | ||
1307 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
1308 | >gboolean</a> (*G3DStreamEofFunc) (<a | ||
1309 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1310 | >gpointer</a> data);</pre> | ||
1311 | <p> | ||
1312 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()"><code class="function">g3d_stream_eof()</code></a>.</p> | ||
1313 | <p> | ||
1314 | |||
1315 | </p> | ||
1316 | <div class="variablelist"><table border="0"> | ||
1317 | <col align="left" valign="top"> | ||
1318 | <tbody> | ||
1319 | <tr> | ||
1320 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1321 | <td> opaque stream data | ||
1322 | </td> | ||
1323 | </tr> | ||
1324 | <tr> | ||
1325 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1326 | <td> TRUE on stream end-of-file, FALSE else. | ||
1327 | </td> | ||
1328 | </tr> | ||
1329 | </tbody> | ||
1330 | </table></div> | ||
1331 | </div> | ||
1332 | <hr> | ||
1333 | <div class="refsect2" lang="en"> | ||
1334 | <a name="G3DStreamReadFunc"></a><h3>G3DStreamReadFunc ()</h3> | ||
1335 | <pre class="programlisting"><a | ||
1336 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
1337 | >gsize</a> (*G3DStreamReadFunc) (<a | ||
1338 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1339 | >gpointer</a> ptr, | ||
1340 | <a | ||
1341 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
1342 | >gsize</a> size, | ||
1343 | <a | ||
1344 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1345 | >gpointer</a> data);</pre> | ||
1346 | <p> | ||
1347 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a>.</p> | ||
1348 | <p> | ||
1349 | |||
1350 | </p> | ||
1351 | <div class="variablelist"><table border="0"> | ||
1352 | <col align="left" valign="top"> | ||
1353 | <tbody> | ||
1354 | <tr> | ||
1355 | <td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td> | ||
1356 | <td> buffer to read bytes into | ||
1357 | </td> | ||
1358 | </tr> | ||
1359 | <tr> | ||
1360 | <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> | ||
1361 | <td> number of bytes to read | ||
1362 | </td> | ||
1363 | </tr> | ||
1364 | <tr> | ||
1365 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1366 | <td> opaque stream data | ||
1367 | </td> | ||
1368 | </tr> | ||
1369 | <tr> | ||
1370 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1371 | <td> number of bytes actually read. | ||
1372 | </td> | ||
1373 | </tr> | ||
1374 | </tbody> | ||
1375 | </table></div> | ||
1376 | </div> | ||
1377 | <hr> | ||
1378 | <div class="refsect2" lang="en"> | ||
1379 | <a name="G3DStreamReadLineFunc"></a><h3>G3DStreamReadLineFunc ()</h3> | ||
1380 | <pre class="programlisting"><a | ||
1381 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
1382 | >gchar</a>* (*G3DStreamReadLineFunc) (<a | ||
1383 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
1384 | >gchar</a> *buf, | ||
1385 | <a | ||
1386 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize" | ||
1387 | >gsize</a> size, | ||
1388 | <a | ||
1389 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1390 | >gpointer</a> data);</pre> | ||
1391 | <p> | ||
1392 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>.</p> | ||
1393 | <p> | ||
1394 | |||
1395 | </p> | ||
1396 | <div class="variablelist"><table border="0"> | ||
1397 | <col align="left" valign="top"> | ||
1398 | <tbody> | ||
1399 | <tr> | ||
1400 | <td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td> | ||
1401 | <td> buffer to read bytes into | ||
1402 | </td> | ||
1403 | </tr> | ||
1404 | <tr> | ||
1405 | <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> | ||
1406 | <td> maximum size of buffer | ||
1407 | </td> | ||
1408 | </tr> | ||
1409 | <tr> | ||
1410 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1411 | <td> opaque stream data | ||
1412 | </td> | ||
1413 | </tr> | ||
1414 | <tr> | ||
1415 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1416 | <td> The line buffer or NULL in case of an error. | ||
1417 | </td> | ||
1418 | </tr> | ||
1419 | </tbody> | ||
1420 | </table></div> | ||
1421 | </div> | ||
1422 | <hr> | ||
1423 | <div class="refsect2" lang="en"> | ||
1424 | <a name="G3DStreamSeekFunc"></a><h3>G3DStreamSeekFunc ()</h3> | ||
1425 | <pre class="programlisting"><a | ||
1426 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint" | ||
1427 | >gint</a> (*G3DStreamSeekFunc) (<a | ||
1428 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1429 | >gpointer</a> data, | ||
1430 | <a | ||
1431 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
1432 | >goffset</a> offset, | ||
1433 | <a | ||
1434 | href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType" | ||
1435 | >GSeekType</a> whence);</pre> | ||
1436 | <p> | ||
1437 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()"><code class="function">g3d_stream_seek()</code></a>.</p> | ||
1438 | <p> | ||
1439 | |||
1440 | </p> | ||
1441 | <div class="variablelist"><table border="0"> | ||
1442 | <col align="left" valign="top"> | ||
1443 | <tbody> | ||
1444 | <tr> | ||
1445 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1446 | <td> opaque stream data | ||
1447 | </td> | ||
1448 | </tr> | ||
1449 | <tr> | ||
1450 | <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td> | ||
1451 | <td> seek offset | ||
1452 | </td> | ||
1453 | </tr> | ||
1454 | <tr> | ||
1455 | <td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td> | ||
1456 | <td> seek type | ||
1457 | </td> | ||
1458 | </tr> | ||
1459 | <tr> | ||
1460 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1461 | <td> 0 on success, -1 else. | ||
1462 | </td> | ||
1463 | </tr> | ||
1464 | </tbody> | ||
1465 | </table></div> | ||
1466 | </div> | ||
1467 | <hr> | ||
1468 | <div class="refsect2" lang="en"> | ||
1469 | <a name="G3DStreamSizeFunc"></a><h3>G3DStreamSizeFunc ()</h3> | ||
1470 | <pre class="programlisting"><a | ||
1471 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
1472 | >goffset</a> (*G3DStreamSizeFunc) (<a | ||
1473 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1474 | >gpointer</a> data);</pre> | ||
1475 | <p> | ||
1476 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()"><code class="function">g3d_stream_size()</code></a>.</p> | ||
1477 | <p> | ||
1478 | |||
1479 | </p> | ||
1480 | <div class="variablelist"><table border="0"> | ||
1481 | <col align="left" valign="top"> | ||
1482 | <tbody> | ||
1483 | <tr> | ||
1484 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1485 | <td> opaque stream data | ||
1486 | </td> | ||
1487 | </tr> | ||
1488 | <tr> | ||
1489 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1490 | <td> size of stream. | ||
1491 | </td> | ||
1492 | </tr> | ||
1493 | </tbody> | ||
1494 | </table></div> | ||
1495 | </div> | ||
1496 | <hr> | ||
1497 | <div class="refsect2" lang="en"> | ||
1498 | <a name="G3DStreamTellFunc"></a><h3>G3DStreamTellFunc ()</h3> | ||
1499 | <pre class="programlisting"><a | ||
1500 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset" | ||
1501 | >goffset</a> (*G3DStreamTellFunc) (<a | ||
1502 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" | ||
1503 | >gpointer</a> data);</pre> | ||
1504 | <p> | ||
1505 | Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()"><code class="function">g3d_stream_tell()</code></a>.</p> | ||
1506 | <p> | ||
1507 | |||
1508 | </p> | ||
1509 | <div class="variablelist"><table border="0"> | ||
1510 | <col align="left" valign="top"> | ||
1511 | <tbody> | ||
1512 | <tr> | ||
1513 | <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> | ||
1514 | <td> opaque stream data | ||
1515 | </td> | ||
1516 | </tr> | ||
1517 | <tr> | ||
1518 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
1519 | <td> current stream position. | ||
1520 | </td> | ||
1521 | </tr> | ||
1522 | </tbody> | ||
1523 | </table></div> | ||
1524 | </div> | ||
1525 | </div> | ||
1526 | <div class="refsect1" lang="en"> | ||
1527 | <a name="libg3d-stream.see-also"></a><h2>See Also</h2> | ||
1528 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> | ||
1529 | </div> | ||
1530 | </div> | ||
1531 | <div class="footer"> | ||
1532 | <hr> | ||
1533 | Generated by GTK-Doc V1.10</div> | ||
1534 | </body> | ||
1535 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html new file mode 100644 index 0000000..9caa7da --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html | |||
@@ -0,0 +1,455 @@ | |||
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>texture</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="libg3d-material.html" title="material"> | ||
10 | <link rel="next" href="ch02.html" title="Plugin interface"> | ||
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="libg3d-material.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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="ch02.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-texture.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-texture.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-texture"></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-texture.top_of_page"></a>texture</span></h2> | ||
34 | <p>texture — Texture loading and manipulation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-texture.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/texture.h> | ||
43 | |||
44 | #define <a class="link" href="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS" title="G3D_FLAG_IMG_GREYSCALE">G3D_FLAG_IMG_GREYSCALE</a> | ||
45 | enum <a class="link" href="libg3d-texture.html#G3DTexEnv" title="enum G3DTexEnv">G3DTexEnv</a>; | ||
46 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>; | ||
47 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load-cached" title="g3d_texture_load_cached ()">g3d_texture_load_cached</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
48 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
49 | const <a | ||
50 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
51 | >gchar</a> *filename); | ||
52 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load-from-stream" title="g3d_texture_load_from_stream ()">g3d_texture_load_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
53 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
54 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream); | ||
55 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load" title="g3d_texture_load ()">g3d_texture_load</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
56 | const <a | ||
57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
58 | >gchar</a> *filename); | ||
59 | void <a class="link" href="libg3d-texture.html#g3d-texture-free" title="g3d_texture_free ()">g3d_texture_free</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture); | ||
60 | <a | ||
61 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
62 | >gboolean</a> <a class="link" href="libg3d-texture.html#g3d-texture-prepare" title="g3d_texture_prepare ()">g3d_texture_prepare</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture); | ||
63 | <a | ||
64 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
65 | >gboolean</a> <a class="link" href="libg3d-texture.html#g3d-texture-flip-y" title="g3d_texture_flip_y ()">g3d_texture_flip_y</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture); | ||
66 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-merge-alpha" title="g3d_texture_merge_alpha ()">g3d_texture_merge_alpha</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
67 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *aimage); | ||
68 | </pre> | ||
69 | </div> | ||
70 | <div class="refsect1" lang="en"> | ||
71 | <a name="libg3d-texture.description"></a><h2>Description</h2> | ||
72 | <p> | ||
73 | A texture is an image used in materials. Here are some helper functions, | ||
74 | mostly for cached loading of a <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a>.</p> | ||
75 | <p> | ||
76 | |||
77 | </p> | ||
78 | </div> | ||
79 | <div class="refsect1" lang="en"> | ||
80 | <a name="libg3d-texture.details"></a><h2>Details</h2> | ||
81 | <div class="refsect2" lang="en"> | ||
82 | <a name="G3D-FLAG-IMG-GREYSCALE:CAPS"></a><h3>G3D_FLAG_IMG_GREYSCALE</h3> | ||
83 | <pre class="programlisting">#define G3D_FLAG_IMG_GREYSCALE (1L << 1) | ||
84 | </pre> | ||
85 | <p> | ||
86 | The image just uses the red channel for grey value</p> | ||
87 | <p> | ||
88 | |||
89 | </p> | ||
90 | </div> | ||
91 | <hr> | ||
92 | <div class="refsect2" lang="en"> | ||
93 | <a name="G3DTexEnv"></a><h3>enum G3DTexEnv</h3> | ||
94 | <pre class="programlisting">typedef enum { | ||
95 | G3D_TEXENV_UNSPECIFIED = 0, | ||
96 | G3D_TEXENV_BLEND, | ||
97 | G3D_TEXENV_DECAL, | ||
98 | G3D_TEXENV_MODULATE, | ||
99 | G3D_TEXENV_REPLACE | ||
100 | } G3DTexEnv; | ||
101 | </pre> | ||
102 | <p> | ||
103 | Specify how the texture should interact with other material properties.</p> | ||
104 | <p> | ||
105 | |||
106 | </p> | ||
107 | <div class="variablelist"><table border="0"> | ||
108 | <col align="left" valign="top"> | ||
109 | <tbody> | ||
110 | <tr> | ||
111 | <td><p><a name="G3D-TEXENV-UNSPECIFIED:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_UNSPECIFIED</code></span></p></td> | ||
112 | <td> unspecified, application decides | ||
113 | </td> | ||
114 | </tr> | ||
115 | <tr> | ||
116 | <td><p><a name="G3D-TEXENV-BLEND:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_BLEND</code></span></p></td> | ||
117 | <td> use blending | ||
118 | </td> | ||
119 | </tr> | ||
120 | <tr> | ||
121 | <td><p><a name="G3D-TEXENV-DECAL:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_DECAL</code></span></p></td> | ||
122 | <td> use as decal | ||
123 | </td> | ||
124 | </tr> | ||
125 | <tr> | ||
126 | <td><p><a name="G3D-TEXENV-MODULATE:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_MODULATE</code></span></p></td> | ||
127 | <td> use modulate | ||
128 | </td> | ||
129 | </tr> | ||
130 | <tr> | ||
131 | <td><p><a name="G3D-TEXENV-REPLACE:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_REPLACE</code></span></p></td> | ||
132 | <td> replace color | ||
133 | </td> | ||
134 | </tr> | ||
135 | </tbody> | ||
136 | </table></div> | ||
137 | </div> | ||
138 | <hr> | ||
139 | <div class="refsect2" lang="en"> | ||
140 | <a name="G3DImage"></a><h3>G3DImage</h3> | ||
141 | <pre class="programlisting">typedef struct { | ||
142 | gchar *name; | ||
143 | guint32 width; | ||
144 | guint32 height; | ||
145 | guint8 depth; | ||
146 | guint32 flags; | ||
147 | guint8 *pixeldata; | ||
148 | |||
149 | guint32 tex_id; | ||
150 | G3DTexEnv tex_env; | ||
151 | G3DFloat tex_scale_u; | ||
152 | G3DFloat tex_scale_v; | ||
153 | } G3DImage; | ||
154 | </pre> | ||
155 | <p> | ||
156 | Object containing a two-dimensional pixel image.</p> | ||
157 | <p> | ||
158 | |||
159 | </p> | ||
160 | <div class="variablelist"><table border="0"> | ||
161 | <col align="left" valign="top"> | ||
162 | <tbody> | ||
163 | <tr> | ||
164 | <td><p><span class="term"><a | ||
165 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
166 | >gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td> | ||
167 | <td> name of image | ||
168 | </td> | ||
169 | </tr> | ||
170 | <tr> | ||
171 | <td><p><span class="term"><a | ||
172 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
173 | >guint32</a> <em class="structfield"><code>width</code></em>;</span></p></td> | ||
174 | <td> width of image in pixels | ||
175 | </td> | ||
176 | </tr> | ||
177 | <tr> | ||
178 | <td><p><span class="term"><a | ||
179 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
180 | >guint32</a> <em class="structfield"><code>height</code></em>;</span></p></td> | ||
181 | <td> height of image in pixels | ||
182 | </td> | ||
183 | </tr> | ||
184 | <tr> | ||
185 | <td><p><span class="term"><a | ||
186 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8" | ||
187 | >guint8</a> <em class="structfield"><code>depth</code></em>;</span></p></td> | ||
188 | <td> depth of image in bits | ||
189 | </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <td><p><span class="term"><a | ||
193 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
194 | >guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td> | ||
195 | <td> flags | ||
196 | </td> | ||
197 | </tr> | ||
198 | <tr> | ||
199 | <td><p><span class="term"><a | ||
200 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8" | ||
201 | >guint8</a> *<em class="structfield"><code>pixeldata</code></em>;</span></p></td> | ||
202 | <td> the binary image data | ||
203 | </td> | ||
204 | </tr> | ||
205 | <tr> | ||
206 | <td><p><span class="term"><a | ||
207 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32" | ||
208 | >guint32</a> <em class="structfield"><code>tex_id</code></em>;</span></p></td> | ||
209 | <td> the OpenGL texture id, should be unique model-wide | ||
210 | </td> | ||
211 | </tr> | ||
212 | <tr> | ||
213 | <td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DTexEnv" title="enum G3DTexEnv">G3DTexEnv</a> <em class="structfield"><code>tex_env</code></em>;</span></p></td> | ||
214 | <td> texture environment flags | ||
215 | </td> | ||
216 | </tr> | ||
217 | <tr> | ||
218 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_u</code></em>;</span></p></td> | ||
219 | <td> factor scaling texture width, should be 1.0 for most cases | ||
220 | </td> | ||
221 | </tr> | ||
222 | <tr> | ||
223 | <td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_v</code></em>;</span></p></td> | ||
224 | <td> factor scaling texture height, should be 1.0 for most cases | ||
225 | </td> | ||
226 | </tr> | ||
227 | </tbody> | ||
228 | </table></div> | ||
229 | </div> | ||
230 | <hr> | ||
231 | <div class="refsect2" lang="en"> | ||
232 | <a name="g3d-texture-load-cached"></a><h3>g3d_texture_load_cached ()</h3> | ||
233 | <pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load_cached (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
234 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
235 | const <a | ||
236 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
237 | >gchar</a> *filename);</pre> | ||
238 | <p> | ||
239 | Loads a texture image from file and attaches it to a hash table in the | ||
240 | model. On a second try to load this texture it is returned from cache.</p> | ||
241 | <p> | ||
242 | |||
243 | </p> | ||
244 | <div class="variablelist"><table border="0"> | ||
245 | <col align="left" valign="top"> | ||
246 | <tbody> | ||
247 | <tr> | ||
248 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
249 | <td> a valid context | ||
250 | </td> | ||
251 | </tr> | ||
252 | <tr> | ||
253 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
254 | <td> a valid model | ||
255 | </td> | ||
256 | </tr> | ||
257 | <tr> | ||
258 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
259 | <td> the file name of the texture to load | ||
260 | </td> | ||
261 | </tr> | ||
262 | <tr> | ||
263 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
264 | <td> the texture image | ||
265 | </td> | ||
266 | </tr> | ||
267 | </tbody> | ||
268 | </table></div> | ||
269 | </div> | ||
270 | <hr> | ||
271 | <div class="refsect2" lang="en"> | ||
272 | <a name="g3d-texture-load-from-stream"></a><h3>g3d_texture_load_from_stream ()</h3> | ||
273 | <pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
274 | <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model, | ||
275 | <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre> | ||
276 | <p> | ||
277 | Load a texture image from a stream. The file type is determined by the | ||
278 | extension of the stream URI, so it should be valid. If <em class="parameter"><code>model</code></em> is not NULL | ||
279 | the texture image is cached (or retrieved from cache if available).</p> | ||
280 | <p> | ||
281 | |||
282 | </p> | ||
283 | <div class="variablelist"><table border="0"> | ||
284 | <col align="left" valign="top"> | ||
285 | <tbody> | ||
286 | <tr> | ||
287 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
288 | <td> a valid context | ||
289 | </td> | ||
290 | </tr> | ||
291 | <tr> | ||
292 | <td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td> | ||
293 | <td> a valid model or NULL | ||
294 | </td> | ||
295 | </tr> | ||
296 | <tr> | ||
297 | <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td> | ||
298 | <td> an open stream | ||
299 | </td> | ||
300 | </tr> | ||
301 | <tr> | ||
302 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
303 | <td> the texture image or NULL in case of an error. | ||
304 | </td> | ||
305 | </tr> | ||
306 | </tbody> | ||
307 | </table></div> | ||
308 | </div> | ||
309 | <hr> | ||
310 | <div class="refsect2" lang="en"> | ||
311 | <a name="g3d-texture-load"></a><h3>g3d_texture_load ()</h3> | ||
312 | <pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context, | ||
313 | const <a | ||
314 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar" | ||
315 | >gchar</a> *filename);</pre> | ||
316 | <p> | ||
317 | Load a texture from a file. The type of file is determined by the file | ||
318 | extension.</p> | ||
319 | <p> | ||
320 | |||
321 | </p> | ||
322 | <div class="variablelist"><table border="0"> | ||
323 | <col align="left" valign="top"> | ||
324 | <tbody> | ||
325 | <tr> | ||
326 | <td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> | ||
327 | <td> a valid context | ||
328 | </td> | ||
329 | </tr> | ||
330 | <tr> | ||
331 | <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> | ||
332 | <td> the file name of the texture | ||
333 | </td> | ||
334 | </tr> | ||
335 | <tr> | ||
336 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
337 | <td> the texture image or NULL in case of an error. | ||
338 | </td> | ||
339 | </tr> | ||
340 | </tbody> | ||
341 | </table></div> | ||
342 | </div> | ||
343 | <hr> | ||
344 | <div class="refsect2" lang="en"> | ||
345 | <a name="g3d-texture-free"></a><h3>g3d_texture_free ()</h3> | ||
346 | <pre class="programlisting">void g3d_texture_free (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre> | ||
347 | <p> | ||
348 | Frees all memory used by this texture image.</p> | ||
349 | <p> | ||
350 | |||
351 | </p> | ||
352 | <div class="variablelist"><table border="0"> | ||
353 | <col align="left" valign="top"> | ||
354 | <tbody><tr> | ||
355 | <td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td> | ||
356 | <td> a texture image | ||
357 | </td> | ||
358 | </tr></tbody> | ||
359 | </table></div> | ||
360 | </div> | ||
361 | <hr> | ||
362 | <div class="refsect2" lang="en"> | ||
363 | <a name="g3d-texture-prepare"></a><h3>g3d_texture_prepare ()</h3> | ||
364 | <pre class="programlisting"><a | ||
365 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
366 | >gboolean</a> g3d_texture_prepare (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre> | ||
367 | <p> | ||
368 | Resizes the image to dimensions which are a power of 2 to be | ||
369 | usable as an OpenGL texture. | ||
370 | (FIXME: unimplemented)</p> | ||
371 | <p> | ||
372 | |||
373 | </p> | ||
374 | <div class="variablelist"><table border="0"> | ||
375 | <col align="left" valign="top"> | ||
376 | <tbody> | ||
377 | <tr> | ||
378 | <td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td> | ||
379 | <td> a texture image | ||
380 | </td> | ||
381 | </tr> | ||
382 | <tr> | ||
383 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
384 | <td> TRUE on success, FALSE else | ||
385 | </td> | ||
386 | </tr> | ||
387 | </tbody> | ||
388 | </table></div> | ||
389 | </div> | ||
390 | <hr> | ||
391 | <div class="refsect2" lang="en"> | ||
392 | <a name="g3d-texture-flip-y"></a><h3>g3d_texture_flip_y ()</h3> | ||
393 | <pre class="programlisting"><a | ||
394 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
395 | >gboolean</a> g3d_texture_flip_y (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre> | ||
396 | <p> | ||
397 | Mirror the image along the x axis - all y coordinates are inverted.</p> | ||
398 | <p> | ||
399 | |||
400 | </p> | ||
401 | <div class="variablelist"><table border="0"> | ||
402 | <col align="left" valign="top"> | ||
403 | <tbody> | ||
404 | <tr> | ||
405 | <td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td> | ||
406 | <td> a texture image | ||
407 | </td> | ||
408 | </tr> | ||
409 | <tr> | ||
410 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
411 | <td> TRUE on success, FALSE on error. | ||
412 | </td> | ||
413 | </tr> | ||
414 | </tbody> | ||
415 | </table></div> | ||
416 | </div> | ||
417 | <hr> | ||
418 | <div class="refsect2" lang="en"> | ||
419 | <a name="g3d-texture-merge-alpha"></a><h3>g3d_texture_merge_alpha ()</h3> | ||
420 | <pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_merge_alpha (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image, | ||
421 | <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *aimage);</pre> | ||
422 | <p> | ||
423 | Merges alpha information from <em class="parameter"><code>aimage</code></em> into output image. If <em class="parameter"><code>image</code></em> is NULL a | ||
424 | new image is created, else <em class="parameter"><code>image</code></em> is returned with alpha from <em class="parameter"><code>aimage</code></em>.</p> | ||
425 | <p> | ||
426 | |||
427 | </p> | ||
428 | <div class="variablelist"><table border="0"> | ||
429 | <col align="left" valign="top"> | ||
430 | <tbody> | ||
431 | <tr> | ||
432 | <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td> | ||
433 | <td> a texture image or NULL | ||
434 | </td> | ||
435 | </tr> | ||
436 | <tr> | ||
437 | <td><p><span class="term"><em class="parameter"><code>aimage</code></em> :</span></p></td> | ||
438 | <td> an image with alpha information | ||
439 | </td> | ||
440 | </tr> | ||
441 | <tr> | ||
442 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
443 | <td> a texture image or NULL in case of an error. | ||
444 | </td> | ||
445 | </tr> | ||
446 | </tbody> | ||
447 | </table></div> | ||
448 | </div> | ||
449 | </div> | ||
450 | </div> | ||
451 | <div class="footer"> | ||
452 | <hr> | ||
453 | Generated by GTK-Doc V1.10</div> | ||
454 | </body> | ||
455 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html new file mode 100644 index 0000000..b7f076d --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html | |||
@@ -0,0 +1,109 @@ | |||
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>types</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="ch01.html" title="Application interface"> | ||
9 | <link rel="prev" href="ch01.html" title="Application interface"> | ||
10 | <link rel="next" href="libg3d-context.html" title="context"> | ||
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="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> | ||
20 | <td><a accesskey="u" href="ch01.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-context.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-types.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-types.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-types"></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-types.top_of_page"></a>types</span></h2> | ||
34 | <p>types — Basic types</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-types.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/types.h> | ||
43 | |||
44 | typedef <a class="link" href="libg3d-types.html#G3DSingle" title="G3DSingle">G3DSingle</a>; | ||
45 | typedef <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a>; | ||
46 | typedef <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a>; | ||
47 | #define <a class="link" href="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS" title="G3D_FLOAT_IS_DOUBLE">G3D_FLOAT_IS_DOUBLE</a> | ||
48 | </pre> | ||
49 | </div> | ||
50 | <div class="refsect1" lang="en"> | ||
51 | <a name="libg3d-types.description"></a><h2>Description</h2> | ||
52 | <p> | ||
53 | Some basic type abstractions used in libg3d.</p> | ||
54 | <p> | ||
55 | |||
56 | </p> | ||
57 | </div> | ||
58 | <div class="refsect1" lang="en"> | ||
59 | <a name="libg3d-types.details"></a><h2>Details</h2> | ||
60 | <div class="refsect2" lang="en"> | ||
61 | <a name="G3DSingle"></a><h3>G3DSingle</h3> | ||
62 | <pre class="programlisting">typedef gfloat G3DSingle; | ||
63 | </pre> | ||
64 | <p> | ||
65 | Single-precision floating point number.</p> | ||
66 | <p> | ||
67 | |||
68 | </p> | ||
69 | </div> | ||
70 | <hr> | ||
71 | <div class="refsect2" lang="en"> | ||
72 | <a name="G3DDouble"></a><h3>G3DDouble</h3> | ||
73 | <pre class="programlisting">typedef gdouble G3DDouble; | ||
74 | </pre> | ||
75 | <p> | ||
76 | Double-precision floating point number.</p> | ||
77 | <p> | ||
78 | |||
79 | </p> | ||
80 | </div> | ||
81 | <hr> | ||
82 | <div class="refsect2" lang="en"> | ||
83 | <a name="G3DFloat"></a><h3>G3DFloat</h3> | ||
84 | <p> | ||
85 | Default floating point type. If used consistently in the library (not the | ||
86 | case at the moment) this type can be switched between single and double | ||
87 | precision at compile-time.</p> | ||
88 | <p> | ||
89 | |||
90 | </p> | ||
91 | </div> | ||
92 | <hr> | ||
93 | <div class="refsect2" lang="en"> | ||
94 | <a name="G3D-FLOAT-IS-DOUBLE:CAPS"></a><h3>G3D_FLOAT_IS_DOUBLE</h3> | ||
95 | <pre class="programlisting">#define G3D_FLOAT_IS_DOUBLE</pre> | ||
96 | <p> | ||
97 | A flag indicating type of <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a>. It is TRUE if <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a> is double and | ||
98 | FALSE if <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a> is single precision.</p> | ||
99 | <p> | ||
100 | |||
101 | </p> | ||
102 | </div> | ||
103 | </div> | ||
104 | </div> | ||
105 | <div class="footer"> | ||
106 | <hr> | ||
107 | Generated by GTK-Doc V1.10</div> | ||
108 | </body> | ||
109 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html new file mode 100644 index 0000000..7c2ed8f --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html | |||
@@ -0,0 +1,266 @@ | |||
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>vector</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="libg3d-matrix.html" title="matrix"> | ||
10 | <link rel="next" href="libg3d-quat.html" title="quat"> | ||
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="libg3d-matrix.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-quat.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-vector.synopsis" class="shortcut">Top</a> | ||
26 | | | ||
27 | <a href="#libg3d-vector.description" class="shortcut">Description</a></nobr></td></tr> | ||
28 | </table> | ||
29 | <div class="refentry" lang="en"> | ||
30 | <a name="libg3d-vector"></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-vector.top_of_page"></a>vector</span></h2> | ||
34 | <p>vector — Vector manipulation and calculation</p> | ||
35 | </td> | ||
36 | <td valign="top" align="right"></td> | ||
37 | </tr></table></div> | ||
38 | <div class="refsynopsisdiv"> | ||
39 | <a name="libg3d-vector.synopsis"></a><h2>Synopsis</h2> | ||
40 | <pre class="synopsis"> | ||
41 | |||
42 | #include <g3d/vector.h> | ||
43 | |||
44 | typedef <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a>; | ||
45 | <a | ||
46 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
47 | >gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-normal" title="g3d_vector_normal ()">g3d_vector_normal</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax, | ||
48 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay, | ||
49 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az, | ||
50 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bx, | ||
51 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> by, | ||
52 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bz, | ||
53 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
54 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
55 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz); | ||
56 | <a | ||
57 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
58 | >gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-unify" title="g3d_vector_unify ()">g3d_vector_unify</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
59 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
60 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz); | ||
61 | <a | ||
62 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
63 | >gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-transform" title="g3d_vector_transform ()">g3d_vector_transform</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *x, | ||
64 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *y, | ||
65 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *z, | ||
66 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix); | ||
67 | </pre> | ||
68 | </div> | ||
69 | <div class="refsect1" lang="en"> | ||
70 | <a name="libg3d-vector.description"></a><h2>Description</h2> | ||
71 | <p> | ||
72 | A vector is a one-dimensional array of floating point data. | ||
73 | </p> | ||
74 | <p> | ||
75 | Declare it as statically as: | ||
76 | </p> | ||
77 | <p> | ||
78 | G3DVector vector[3]; | ||
79 | </p> | ||
80 | <p> | ||
81 | or allocate it dynamically with: | ||
82 | </p> | ||
83 | <p> | ||
84 | G3DVector *vector = g3d_vector_new(3, 1);</p> | ||
85 | <p> | ||
86 | |||
87 | </p> | ||
88 | </div> | ||
89 | <div class="refsect1" lang="en"> | ||
90 | <a name="libg3d-vector.details"></a><h2>Details</h2> | ||
91 | <div class="refsect2" lang="en"> | ||
92 | <a name="G3DVector"></a><h3>G3DVector</h3> | ||
93 | <pre class="programlisting">typedef G3DFloat G3DVector; | ||
94 | </pre> | ||
95 | <p> | ||
96 | Vector element type.</p> | ||
97 | <p> | ||
98 | |||
99 | </p> | ||
100 | </div> | ||
101 | <hr> | ||
102 | <div class="refsect2" lang="en"> | ||
103 | <a name="g3d-vector-normal"></a><h3>g3d_vector_normal ()</h3> | ||
104 | <pre class="programlisting"><a | ||
105 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
106 | >gboolean</a> g3d_vector_normal (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax, | ||
107 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay, | ||
108 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az, | ||
109 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bx, | ||
110 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> by, | ||
111 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bz, | ||
112 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
113 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
114 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre> | ||
115 | <p> | ||
116 | calculate the normal from a plane defined by two vectors</p> | ||
117 | <p> | ||
118 | |||
119 | </p> | ||
120 | <div class="variablelist"><table border="0"> | ||
121 | <col align="left" valign="top"> | ||
122 | <tbody> | ||
123 | <tr> | ||
124 | <td><p><span class="term"><em class="parameter"><code>ax</code></em> :</span></p></td> | ||
125 | <td> x component first vector | ||
126 | </td> | ||
127 | </tr> | ||
128 | <tr> | ||
129 | <td><p><span class="term"><em class="parameter"><code>ay</code></em> :</span></p></td> | ||
130 | <td> y component first vector | ||
131 | </td> | ||
132 | </tr> | ||
133 | <tr> | ||
134 | <td><p><span class="term"><em class="parameter"><code>az</code></em> :</span></p></td> | ||
135 | <td> z component first vector | ||
136 | </td> | ||
137 | </tr> | ||
138 | <tr> | ||
139 | <td><p><span class="term"><em class="parameter"><code>bx</code></em> :</span></p></td> | ||
140 | <td> x component second vector | ||
141 | </td> | ||
142 | </tr> | ||
143 | <tr> | ||
144 | <td><p><span class="term"><em class="parameter"><code>by</code></em> :</span></p></td> | ||
145 | <td> y component second vector | ||
146 | </td> | ||
147 | </tr> | ||
148 | <tr> | ||
149 | <td><p><span class="term"><em class="parameter"><code>bz</code></em> :</span></p></td> | ||
150 | <td> z component second vector | ||
151 | </td> | ||
152 | </tr> | ||
153 | <tr> | ||
154 | <td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td> | ||
155 | <td> x component resulting normal | ||
156 | </td> | ||
157 | </tr> | ||
158 | <tr> | ||
159 | <td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td> | ||
160 | <td> y component resulting normal | ||
161 | </td> | ||
162 | </tr> | ||
163 | <tr> | ||
164 | <td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td> | ||
165 | <td> z component resulting normal | ||
166 | </td> | ||
167 | </tr> | ||
168 | <tr> | ||
169 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
170 | <td> TRUE on success, FALSE else | ||
171 | </td> | ||
172 | </tr> | ||
173 | </tbody> | ||
174 | </table></div> | ||
175 | </div> | ||
176 | <hr> | ||
177 | <div class="refsect2" lang="en"> | ||
178 | <a name="g3d-vector-unify"></a><h3>g3d_vector_unify ()</h3> | ||
179 | <pre class="programlisting"><a | ||
180 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
181 | >gboolean</a> g3d_vector_unify (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx, | ||
182 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny, | ||
183 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre> | ||
184 | <p> | ||
185 | Transforms the given vector to the unit vector.</p> | ||
186 | <p> | ||
187 | |||
188 | </p> | ||
189 | <div class="variablelist"><table border="0"> | ||
190 | <col align="left" valign="top"> | ||
191 | <tbody> | ||
192 | <tr> | ||
193 | <td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td> | ||
194 | <td> x component of vector | ||
195 | </td> | ||
196 | </tr> | ||
197 | <tr> | ||
198 | <td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td> | ||
199 | <td> y component of vector | ||
200 | </td> | ||
201 | </tr> | ||
202 | <tr> | ||
203 | <td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td> | ||
204 | <td> z component of vector | ||
205 | </td> | ||
206 | </tr> | ||
207 | <tr> | ||
208 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
209 | <td> TRUE on success, FALSE else | ||
210 | </td> | ||
211 | </tr> | ||
212 | </tbody> | ||
213 | </table></div> | ||
214 | </div> | ||
215 | <hr> | ||
216 | <div class="refsect2" lang="en"> | ||
217 | <a name="g3d-vector-transform"></a><h3>g3d_vector_transform ()</h3> | ||
218 | <pre class="programlisting"><a | ||
219 | href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" | ||
220 | >gboolean</a> g3d_vector_transform (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *x, | ||
221 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *y, | ||
222 | <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *z, | ||
223 | <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre> | ||
224 | <p> | ||
225 | Transforms the given vector corresponding to the given matrix</p> | ||
226 | <p> | ||
227 | |||
228 | </p> | ||
229 | <div class="variablelist"><table border="0"> | ||
230 | <col align="left" valign="top"> | ||
231 | <tbody> | ||
232 | <tr> | ||
233 | <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> | ||
234 | <td> x component of vector | ||
235 | </td> | ||
236 | </tr> | ||
237 | <tr> | ||
238 | <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> | ||
239 | <td> y component of vector | ||
240 | </td> | ||
241 | </tr> | ||
242 | <tr> | ||
243 | <td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td> | ||
244 | <td> z component of vector | ||
245 | </td> | ||
246 | </tr> | ||
247 | <tr> | ||
248 | <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td> | ||
249 | <td> transformation matrix (4x4) | ||
250 | </td> | ||
251 | </tr> | ||
252 | <tr> | ||
253 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
254 | <td> TRUE on success, FALSE else | ||
255 | </td> | ||
256 | </tr> | ||
257 | </tbody> | ||
258 | </table></div> | ||
259 | </div> | ||
260 | </div> | ||
261 | </div> | ||
262 | <div class="footer"> | ||
263 | <hr> | ||
264 | Generated by GTK-Doc V1.10</div> | ||
265 | </body> | ||
266 | </html> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp new file mode 100644 index 0000000..4d1df55 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp | |||
@@ -0,0 +1,204 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
2 | <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> | ||
3 | <book xmlns="http://www.devhelp.net/book" title="libg3d Reference Manual" link="index.html" author="" name="libg3d"> | ||
4 | <chapters> | ||
5 | <sub name="Application interface" link="ch01.html"> | ||
6 | <sub name="types" link="libg3d-types.html"/> | ||
7 | <sub name="context" link="libg3d-context.html"/> | ||
8 | <sub name="model" link="libg3d-model.html"/> | ||
9 | <sub name="object" link="libg3d-object.html"/> | ||
10 | <sub name="face" link="libg3d-face.html"/> | ||
11 | <sub name="material" link="libg3d-material.html"/> | ||
12 | <sub name="texture" link="libg3d-texture.html"/> | ||
13 | </sub> | ||
14 | <sub name="Plugin interface" link="ch02.html"> | ||
15 | <sub name="plugins" link="libg3d-plugins.html"/> | ||
16 | <sub name="stream" link="libg3d-stream.html"/> | ||
17 | <sub name="iff" link="libg3d-iff.html"/> | ||
18 | <sub name="read" link="libg3d-read.html"/> | ||
19 | <sub name="primitive" link="libg3d-primitive.html"/> | ||
20 | <sub name="matrix" link="libg3d-matrix.html"/> | ||
21 | <sub name="vector" link="libg3d-vector.html"/> | ||
22 | <sub name="quat" link="libg3d-quat.html"/> | ||
23 | </sub> | ||
24 | </chapters> | ||
25 | <functions> | ||
26 | <function name="G3DSingle" link="libg3d-types.html#G3DSingle"/> | ||
27 | <function name="G3DDouble" link="libg3d-types.html#G3DDouble"/> | ||
28 | <function name="G3DFloat" link="libg3d-types.html#G3DFloat"/> | ||
29 | <function name="G3D_FLOAT_IS_DOUBLE" link="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS"/> | ||
30 | <function name="G3DContext" link="libg3d-context.html#G3DContext"/> | ||
31 | <function name="g3d_context_new ()" link="libg3d-context.html#g3d-context-new"/> | ||
32 | <function name="g3d_context_free ()" link="libg3d-context.html#g3d-context-free"/> | ||
33 | <function name="G3DSetBgColorFunc ()" link="libg3d-context.html#G3DSetBgColorFunc"/> | ||
34 | <function name="G3DUpdateInterfaceFunc ()" link="libg3d-context.html#G3DUpdateInterfaceFunc"/> | ||
35 | <function name="G3DUpdateProgressBarFunc ()" link="libg3d-context.html#G3DUpdateProgressBarFunc"/> | ||
36 | <function name="g3d_context_update_interface ()" link="libg3d-context.html#g3d-context-update-interface"/> | ||
37 | <function name="g3d_context_set_update_interface_func ()" link="libg3d-context.html#g3d-context-set-update-interface-func"/> | ||
38 | <function name="g3d_context_update_progress_bar ()" link="libg3d-context.html#g3d-context-update-progress-bar"/> | ||
39 | <function name="g3d_context_set_update_progress_bar_func ()" link="libg3d-context.html#g3d-context-set-update-progress-bar-func"/> | ||
40 | <function name="g3d_context_set_bgcolor ()" link="libg3d-context.html#g3d-context-set-bgcolor"/> | ||
41 | <function name="g3d_context_set_set_bgcolor_func ()" link="libg3d-context.html#g3d-context-set-set-bgcolor-func"/> | ||
42 | <function name="G3D_MODEL_CENTER" link="libg3d-model.html#G3D-MODEL-CENTER:CAPS"/> | ||
43 | <function name="G3D_MODEL_NOCHECK" link="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS"/> | ||
44 | <function name="G3D_MODEL_OPTIMIZE" link="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS"/> | ||
45 | <function name="G3D_MODEL_SCALE" link="libg3d-model.html#G3D-MODEL-SCALE:CAPS"/> | ||
46 | <function name="G3DModel" link="libg3d-model.html#G3DModel"/> | ||
47 | <function name="g3d_model_new ()" link="libg3d-model.html#g3d-model-new"/> | ||
48 | <function name="g3d_model_load ()" link="libg3d-model.html#g3d-model-load"/> | ||
49 | <function name="g3d_model_load_full ()" link="libg3d-model.html#g3d-model-load-full"/> | ||
50 | <function name="g3d_model_check ()" link="libg3d-model.html#g3d-model-check"/> | ||
51 | <function name="g3d_model_center ()" link="libg3d-model.html#g3d-model-center"/> | ||
52 | <function name="g3d_model_transform ()" link="libg3d-model.html#g3d-model-transform"/> | ||
53 | <function name="g3d_model_clear ()" link="libg3d-model.html#g3d-model-clear"/> | ||
54 | <function name="g3d_model_free ()" link="libg3d-model.html#g3d-model-free"/> | ||
55 | <function name="g3d_model_get_object_by_name ()" link="libg3d-model.html#g3d-model-get-object-by-name"/> | ||
56 | <function name="G3DObject" link="libg3d-object.html#G3DObject"/> | ||
57 | <function name="G3DTransformation" link="libg3d-object.html#G3DTransformation"/> | ||
58 | <function name="g3d_object_free ()" link="libg3d-object.html#g3d-object-free"/> | ||
59 | <function name="g3d_object_radius ()" link="libg3d-object.html#g3d-object-radius"/> | ||
60 | <function name="g3d_object_scale ()" link="libg3d-object.html#g3d-object-scale"/> | ||
61 | <function name="g3d_object_transform ()" link="libg3d-object.html#g3d-object-transform"/> | ||
62 | <function name="g3d_object_transform_normals ()" link="libg3d-object.html#g3d-object-transform-normals"/> | ||
63 | <function name="g3d_object_duplicate ()" link="libg3d-object.html#g3d-object-duplicate"/> | ||
64 | <function name="g3d_object_optimize ()" link="libg3d-object.html#g3d-object-optimize"/> | ||
65 | <function name="g3d_object_smooth ()" link="libg3d-object.html#g3d-object-smooth"/> | ||
66 | <function name="g3d_object_merge ()" link="libg3d-object.html#g3d-object-merge"/> | ||
67 | <function name="G3D_FLAG_MAT_TWOSIDE" link="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS"/> | ||
68 | <function name="G3D_FLAG_FAC_NORMALS" link="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS"/> | ||
69 | <function name="G3D_FLAG_FAC_TEXMAP" link="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS"/> | ||
70 | <function name="G3DFace" link="libg3d-face.html#G3DFace"/> | ||
71 | <function name="g3d_face_get_normal ()" link="libg3d-face.html#g3d-face-get-normal"/> | ||
72 | <function name="g3d_face_free ()" link="libg3d-face.html#g3d-face-free"/> | ||
73 | <function name="G3DMaterial" link="libg3d-material.html#G3DMaterial"/> | ||
74 | <function name="g3d_material_new ()" link="libg3d-material.html#g3d-material-new"/> | ||
75 | <function name="g3d_material_free ()" link="libg3d-material.html#g3d-material-free"/> | ||
76 | <function name="G3D_FLAG_IMG_GREYSCALE" link="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS"/> | ||
77 | <function name="enum G3DTexEnv" link="libg3d-texture.html#G3DTexEnv"/> | ||
78 | <function name="G3DImage" link="libg3d-texture.html#G3DImage"/> | ||
79 | <function name="g3d_texture_load_cached ()" link="libg3d-texture.html#g3d-texture-load-cached"/> | ||
80 | <function name="g3d_texture_load_from_stream ()" link="libg3d-texture.html#g3d-texture-load-from-stream"/> | ||
81 | <function name="g3d_texture_load ()" link="libg3d-texture.html#g3d-texture-load"/> | ||
82 | <function name="g3d_texture_free ()" link="libg3d-texture.html#g3d-texture-free"/> | ||
83 | <function name="g3d_texture_prepare ()" link="libg3d-texture.html#g3d-texture-prepare"/> | ||
84 | <function name="g3d_texture_flip_y ()" link="libg3d-texture.html#g3d-texture-flip-y"/> | ||
85 | <function name="g3d_texture_merge_alpha ()" link="libg3d-texture.html#g3d-texture-merge-alpha"/> | ||
86 | <function name="enum G3DPluginType" link="libg3d-plugins.html#G3DPluginType"/> | ||
87 | <function name="G3DPluginInitFunc ()" link="libg3d-plugins.html#G3DPluginInitFunc"/> | ||
88 | <function name="G3DPluginCleanupFunc ()" link="libg3d-plugins.html#G3DPluginCleanupFunc"/> | ||
89 | <function name="G3DPluginLoadModelFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFunc"/> | ||
90 | <function name="G3DPluginLoadModelFromStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc"/> | ||
91 | <function name="G3DPluginLoadImageFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageFunc"/> | ||
92 | <function name="G3DPluginLoadImageStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageStreamFunc"/> | ||
93 | <function name="G3DPluginGetDescFunc ()" link="libg3d-plugins.html#G3DPluginGetDescFunc"/> | ||
94 | <function name="G3DPluginGetExtFunc ()" link="libg3d-plugins.html#G3DPluginGetExtFunc"/> | ||
95 | <function name="G3DPlugin" link="libg3d-plugins.html#G3DPlugin"/> | ||
96 | <function name="g3d_plugins_init ()" link="libg3d-plugins.html#g3d-plugins-init"/> | ||
97 | <function name="g3d_plugins_cleanup ()" link="libg3d-plugins.html#g3d-plugins-cleanup"/> | ||
98 | <function name="g3d_plugins_load_model ()" link="libg3d-plugins.html#g3d-plugins-load-model"/> | ||
99 | <function name="g3d_plugins_load_model_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-model-from-stream"/> | ||
100 | <function name="g3d_plugins_load_image ()" link="libg3d-plugins.html#g3d-plugins-load-image"/> | ||
101 | <function name="g3d_plugins_load_image_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-image-from-stream"/> | ||
102 | <function name="g3d_plugins_get_image_extensions ()" link="libg3d-plugins.html#g3d-plugins-get-image-extensions"/> | ||
103 | <function name="G3DStream" link="libg3d-stream.html#G3DStream"/> | ||
104 | <function name="g3d_stream_open_file ()" link="libg3d-stream.html#g3d-stream-open-file"/> | ||
105 | <function name="g3d_stream_open_structured_file ()" link="libg3d-stream.html#g3d-stream-open-structured-file"/> | ||
106 | <function name="g3d_stream_open_structured_file_from_stream ()" link="libg3d-stream.html#g3d-stream-open-structured-file-from-stream"/> | ||
107 | <function name="g3d_stream_open_zip ()" link="libg3d-stream.html#g3d-stream-open-zip"/> | ||
108 | <function name="g3d_stream_open_zip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-zip-from-stream"/> | ||
109 | <function name="g3d_stream_open_gzip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-gzip-from-stream"/> | ||
110 | <function name="g3d_stream_from_buffer ()" link="libg3d-stream.html#g3d-stream-from-buffer"/> | ||
111 | <function name="g3d_stream_zlib_inflate_stream ()" link="libg3d-stream.html#g3d-stream-zlib-inflate-stream"/> | ||
112 | <function name="g3d_stream_new_custom ()" link="libg3d-stream.html#g3d-stream-new-custom"/> | ||
113 | <function name="g3d_stream_close ()" link="libg3d-stream.html#g3d-stream-close"/> | ||
114 | <function name="g3d_stream_skip ()" link="libg3d-stream.html#g3d-stream-skip"/> | ||
115 | <function name="g3d_stream_seek ()" link="libg3d-stream.html#g3d-stream-seek"/> | ||
116 | <function name="g3d_stream_tell ()" link="libg3d-stream.html#g3d-stream-tell"/> | ||
117 | <function name="g3d_stream_size ()" link="libg3d-stream.html#g3d-stream-size"/> | ||
118 | <function name="g3d_stream_eof ()" link="libg3d-stream.html#g3d-stream-eof"/> | ||
119 | <function name="g3d_stream_is_seekable ()" link="libg3d-stream.html#g3d-stream-is-seekable"/> | ||
120 | <function name="g3d_stream_get_uri ()" link="libg3d-stream.html#g3d-stream-get-uri"/> | ||
121 | <function name="g3d_stream_line ()" link="libg3d-stream.html#g3d-stream-line"/> | ||
122 | <function name="g3d_stream_read ()" link="libg3d-stream.html#g3d-stream-read"/> | ||
123 | <function name="g3d_stream_read_line ()" link="libg3d-stream.html#g3d-stream-read-line"/> | ||
124 | <function name="g3d_stream_read_int8 ()" link="libg3d-stream.html#g3d-stream-read-int8"/> | ||
125 | <function name="g3d_stream_read_int16_be ()" link="libg3d-stream.html#g3d-stream-read-int16-be"/> | ||
126 | <function name="g3d_stream_read_int16_le ()" link="libg3d-stream.html#g3d-stream-read-int16-le"/> | ||
127 | <function name="g3d_stream_read_int32_be ()" link="libg3d-stream.html#g3d-stream-read-int32-be"/> | ||
128 | <function name="g3d_stream_read_int32_le ()" link="libg3d-stream.html#g3d-stream-read-int32-le"/> | ||
129 | <function name="g3d_stream_read_float_be ()" link="libg3d-stream.html#g3d-stream-read-float-be"/> | ||
130 | <function name="g3d_stream_read_float_le ()" link="libg3d-stream.html#g3d-stream-read-float-le"/> | ||
131 | <function name="g3d_stream_read_double_be ()" link="libg3d-stream.html#g3d-stream-read-double-be"/> | ||
132 | <function name="g3d_stream_read_double_le ()" link="libg3d-stream.html#g3d-stream-read-double-le"/> | ||
133 | <function name="g3d_stream_read_cstr ()" link="libg3d-stream.html#g3d-stream-read-cstr"/> | ||
134 | <function name="G3DStreamCloseFunc ()" link="libg3d-stream.html#G3DStreamCloseFunc"/> | ||
135 | <function name="G3DStreamEofFunc ()" link="libg3d-stream.html#G3DStreamEofFunc"/> | ||
136 | <function name="G3DStreamReadFunc ()" link="libg3d-stream.html#G3DStreamReadFunc"/> | ||
137 | <function name="G3DStreamReadLineFunc ()" link="libg3d-stream.html#G3DStreamReadLineFunc"/> | ||
138 | <function name="G3DStreamSeekFunc ()" link="libg3d-stream.html#G3DStreamSeekFunc"/> | ||
139 | <function name="G3DStreamSizeFunc ()" link="libg3d-stream.html#G3DStreamSizeFunc"/> | ||
140 | <function name="G3DStreamTellFunc ()" link="libg3d-stream.html#G3DStreamTellFunc"/> | ||
141 | <function name="G3D_IFF_PAD1" link="libg3d-iff.html#G3D-IFF-PAD1:CAPS"/> | ||
142 | <function name="G3D_IFF_PAD2" link="libg3d-iff.html#G3D-IFF-PAD2:CAPS"/> | ||
143 | <function name="G3D_IFF_PAD4" link="libg3d-iff.html#G3D-IFF-PAD4:CAPS"/> | ||
144 | <function name="G3D_IFF_PAD8" link="libg3d-iff.html#G3D-IFF-PAD8:CAPS"/> | ||
145 | <function name="G3D_IFF_LE" link="libg3d-iff.html#G3D-IFF-LE:CAPS"/> | ||
146 | <function name="G3D_IFF_LEN16" link="libg3d-iff.html#G3D-IFF-LEN16:CAPS"/> | ||
147 | <function name="G3D_IFF_SUBCHUNK_LEN16" link="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS"/> | ||
148 | <function name="G3D_IFF_MKID()" link="libg3d-iff.html#G3D-IFF-MKID:CAPS"/> | ||
149 | <function name="g3d_iff_check ()" link="libg3d-iff.html#g3d-iff-check"/> | ||
150 | <function name="g3d_iff_read_chunk ()" link="libg3d-iff.html#g3d-iff-read-chunk"/> | ||
151 | <function name="g3d_iff_handle_chunk ()" link="libg3d-iff.html#g3d-iff-handle-chunk"/> | ||
152 | <function name="g3d_iff_chunk_matches ()" link="libg3d-iff.html#g3d-iff-chunk-matches"/> | ||
153 | <function name="g3d_iff_read_ctnr ()" link="libg3d-iff.html#g3d-iff-read-ctnr"/> | ||
154 | <function name="g3d_iff_id_to_text ()" link="libg3d-iff.html#g3d-iff-id-to-text"/> | ||
155 | <function name="g3d_iff_open ()" link="libg3d-iff.html#g3d-iff-open"/> | ||
156 | <function name="g3d_iff_readchunk ()" link="libg3d-iff.html#g3d-iff-readchunk"/> | ||
157 | <function name="G3DIffChunkCallback ()" link="libg3d-iff.html#G3DIffChunkCallback"/> | ||
158 | <function name="g3d_iff_chunk_callback" link="libg3d-iff.html#g3d-iff-chunk-callback"/> | ||
159 | <function name="G3DIffChunkInfo" link="libg3d-iff.html#G3DIffChunkInfo"/> | ||
160 | <function name="g3d_iff_chunk_info" link="libg3d-iff.html#g3d-iff-chunk-info"/> | ||
161 | <function name="G3DIffGlobal" link="libg3d-iff.html#G3DIffGlobal"/> | ||
162 | <function name="g3d_iff_gdata" link="libg3d-iff.html#g3d-iff-gdata"/> | ||
163 | <function name="G3DIffLocal" link="libg3d-iff.html#G3DIffLocal"/> | ||
164 | <function name="g3d_iff_ldata" link="libg3d-iff.html#g3d-iff-ldata"/> | ||
165 | <function name="g3d_read_int8 ()" link="libg3d-read.html#g3d-read-int8"/> | ||
166 | <function name="g3d_read_int16_be ()" link="libg3d-read.html#g3d-read-int16-be"/> | ||
167 | <function name="g3d_read_int16_le ()" link="libg3d-read.html#g3d-read-int16-le"/> | ||
168 | <function name="g3d_read_int32_be ()" link="libg3d-read.html#g3d-read-int32-be"/> | ||
169 | <function name="g3d_read_int32_le ()" link="libg3d-read.html#g3d-read-int32-le"/> | ||
170 | <function name="g3d_read_float_be ()" link="libg3d-read.html#g3d-read-float-be"/> | ||
171 | <function name="g3d_read_float_le ()" link="libg3d-read.html#g3d-read-float-le"/> | ||
172 | <function name="g3d_read_double_be ()" link="libg3d-read.html#g3d-read-double-be"/> | ||
173 | <function name="g3d_read_double_le ()" link="libg3d-read.html#g3d-read-double-le"/> | ||
174 | <function name="g3d_read_cstr ()" link="libg3d-read.html#g3d-read-cstr"/> | ||
175 | <function name="g3d_primitive_cube ()" link="libg3d-primitive.html#g3d-primitive-cube"/> | ||
176 | <function name="g3d_primitive_box ()" link="libg3d-primitive.html#g3d-primitive-box"/> | ||
177 | <function name="g3d_primitive_box_strip_2d ()" link="libg3d-primitive.html#g3d-primitive-box-strip-2d"/> | ||
178 | <function name="g3d_primitive_mesh ()" link="libg3d-primitive.html#g3d-primitive-mesh"/> | ||
179 | <function name="g3d_primitive_cylinder ()" link="libg3d-primitive.html#g3d-primitive-cylinder"/> | ||
180 | <function name="g3d_primitive_tube ()" link="libg3d-primitive.html#g3d-primitive-tube"/> | ||
181 | <function name="g3d_primitive_sphere ()" link="libg3d-primitive.html#g3d-primitive-sphere"/> | ||
182 | <function name="G3DMatrix" link="libg3d-matrix.html#G3DMatrix"/> | ||
183 | <function name="g3d_matrix_identity ()" link="libg3d-matrix.html#g3d-matrix-identity"/> | ||
184 | <function name="g3d_matrix_multiply ()" link="libg3d-matrix.html#g3d-matrix-multiply"/> | ||
185 | <function name="g3d_matrix_translate ()" link="libg3d-matrix.html#g3d-matrix-translate"/> | ||
186 | <function name="g3d_matrix_rotate ()" link="libg3d-matrix.html#g3d-matrix-rotate"/> | ||
187 | <function name="g3d_matrix_rotate_xyz ()" link="libg3d-matrix.html#g3d-matrix-rotate-xyz"/> | ||
188 | <function name="g3d_matrix_scale ()" link="libg3d-matrix.html#g3d-matrix-scale"/> | ||
189 | <function name="g3d_matrix_transpose ()" link="libg3d-matrix.html#g3d-matrix-transpose"/> | ||
190 | <function name="g3d_matrix_determinant ()" link="libg3d-matrix.html#g3d-matrix-determinant"/> | ||
191 | <function name="g3d_matrix_dump ()" link="libg3d-matrix.html#g3d-matrix-dump"/> | ||
192 | <function name="G3DVector" link="libg3d-vector.html#G3DVector"/> | ||
193 | <function name="g3d_vector_normal ()" link="libg3d-vector.html#g3d-vector-normal"/> | ||
194 | <function name="g3d_vector_unify ()" link="libg3d-vector.html#g3d-vector-unify"/> | ||
195 | <function name="g3d_vector_transform ()" link="libg3d-vector.html#g3d-vector-transform"/> | ||
196 | <function name="G3DQuat" link="libg3d-quat.html#G3DQuat"/> | ||
197 | <function name="g3d_quat_add ()" link="libg3d-quat.html#g3d-quat-add"/> | ||
198 | <function name="g3d_quat_normalize ()" link="libg3d-quat.html#g3d-quat-normalize"/> | ||
199 | <function name="g3d_quat_rotate ()" link="libg3d-quat.html#g3d-quat-rotate"/> | ||
200 | <function name="g3d_quat_to_matrix ()" link="libg3d-quat.html#g3d-quat-to-matrix"/> | ||
201 | <function name="g3d_quat_to_rotation_xyz ()" link="libg3d-quat.html#g3d-quat-to-rotation-xyz"/> | ||
202 | <function name="g3d_quat_trackball ()" link="libg3d-quat.html#g3d-quat-trackball"/> | ||
203 | </functions> | ||
204 | </book> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2 b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2 new file mode 100644 index 0000000..07a1733 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2 | |||
@@ -0,0 +1,204 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
2 | <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> | ||
3 | <book xmlns="http://www.devhelp.net/book" title="libg3d Reference Manual" link="index.html" author="" name="libg3d" version="2"> | ||
4 | <chapters> | ||
5 | <sub name="Application interface" link="ch01.html"> | ||
6 | <sub name="types" link="libg3d-types.html"/> | ||
7 | <sub name="context" link="libg3d-context.html"/> | ||
8 | <sub name="model" link="libg3d-model.html"/> | ||
9 | <sub name="object" link="libg3d-object.html"/> | ||
10 | <sub name="face" link="libg3d-face.html"/> | ||
11 | <sub name="material" link="libg3d-material.html"/> | ||
12 | <sub name="texture" link="libg3d-texture.html"/> | ||
13 | </sub> | ||
14 | <sub name="Plugin interface" link="ch02.html"> | ||
15 | <sub name="plugins" link="libg3d-plugins.html"/> | ||
16 | <sub name="stream" link="libg3d-stream.html"/> | ||
17 | <sub name="iff" link="libg3d-iff.html"/> | ||
18 | <sub name="read" link="libg3d-read.html"/> | ||
19 | <sub name="primitive" link="libg3d-primitive.html"/> | ||
20 | <sub name="matrix" link="libg3d-matrix.html"/> | ||
21 | <sub name="vector" link="libg3d-vector.html"/> | ||
22 | <sub name="quat" link="libg3d-quat.html"/> | ||
23 | </sub> | ||
24 | </chapters> | ||
25 | <functions> | ||
26 | <keyword type="typedef" name="G3DSingle" link="libg3d-types.html#G3DSingle"/> | ||
27 | <keyword type="typedef" name="G3DDouble" link="libg3d-types.html#G3DDouble"/> | ||
28 | <keyword type="typedef" name="G3DFloat" link="libg3d-types.html#G3DFloat"/> | ||
29 | <keyword type="macro" name="G3D_FLOAT_IS_DOUBLE" link="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS"/> | ||
30 | <keyword type="struct" name="G3DContext" link="libg3d-context.html#G3DContext"/> | ||
31 | <keyword type="function" name="g3d_context_new ()" link="libg3d-context.html#g3d-context-new"/> | ||
32 | <keyword type="function" name="g3d_context_free ()" link="libg3d-context.html#g3d-context-free"/> | ||
33 | <keyword type="function" name="G3DSetBgColorFunc ()" link="libg3d-context.html#G3DSetBgColorFunc"/> | ||
34 | <keyword type="function" name="G3DUpdateInterfaceFunc ()" link="libg3d-context.html#G3DUpdateInterfaceFunc"/> | ||
35 | <keyword type="function" name="G3DUpdateProgressBarFunc ()" link="libg3d-context.html#G3DUpdateProgressBarFunc"/> | ||
36 | <keyword type="function" name="g3d_context_update_interface ()" link="libg3d-context.html#g3d-context-update-interface"/> | ||
37 | <keyword type="function" name="g3d_context_set_update_interface_func ()" link="libg3d-context.html#g3d-context-set-update-interface-func"/> | ||
38 | <keyword type="function" name="g3d_context_update_progress_bar ()" link="libg3d-context.html#g3d-context-update-progress-bar"/> | ||
39 | <keyword type="function" name="g3d_context_set_update_progress_bar_func ()" link="libg3d-context.html#g3d-context-set-update-progress-bar-func"/> | ||
40 | <keyword type="function" name="g3d_context_set_bgcolor ()" link="libg3d-context.html#g3d-context-set-bgcolor"/> | ||
41 | <keyword type="function" name="g3d_context_set_set_bgcolor_func ()" link="libg3d-context.html#g3d-context-set-set-bgcolor-func"/> | ||
42 | <keyword type="macro" name="G3D_MODEL_CENTER" link="libg3d-model.html#G3D-MODEL-CENTER:CAPS"/> | ||
43 | <keyword type="macro" name="G3D_MODEL_NOCHECK" link="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS"/> | ||
44 | <keyword type="macro" name="G3D_MODEL_OPTIMIZE" link="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS"/> | ||
45 | <keyword type="macro" name="G3D_MODEL_SCALE" link="libg3d-model.html#G3D-MODEL-SCALE:CAPS"/> | ||
46 | <keyword type="struct" name="G3DModel" link="libg3d-model.html#G3DModel"/> | ||
47 | <keyword type="function" name="g3d_model_new ()" link="libg3d-model.html#g3d-model-new"/> | ||
48 | <keyword type="function" name="g3d_model_load ()" link="libg3d-model.html#g3d-model-load"/> | ||
49 | <keyword type="function" name="g3d_model_load_full ()" link="libg3d-model.html#g3d-model-load-full"/> | ||
50 | <keyword type="function" name="g3d_model_check ()" link="libg3d-model.html#g3d-model-check"/> | ||
51 | <keyword type="function" name="g3d_model_center ()" link="libg3d-model.html#g3d-model-center"/> | ||
52 | <keyword type="function" name="g3d_model_transform ()" link="libg3d-model.html#g3d-model-transform"/> | ||
53 | <keyword type="function" name="g3d_model_clear ()" link="libg3d-model.html#g3d-model-clear"/> | ||
54 | <keyword type="function" name="g3d_model_free ()" link="libg3d-model.html#g3d-model-free"/> | ||
55 | <keyword type="function" name="g3d_model_get_object_by_name ()" link="libg3d-model.html#g3d-model-get-object-by-name"/> | ||
56 | <keyword type="struct" name="G3DObject" link="libg3d-object.html#G3DObject"/> | ||
57 | <keyword type="struct" name="G3DTransformation" link="libg3d-object.html#G3DTransformation"/> | ||
58 | <keyword type="function" name="g3d_object_free ()" link="libg3d-object.html#g3d-object-free"/> | ||
59 | <keyword type="function" name="g3d_object_radius ()" link="libg3d-object.html#g3d-object-radius"/> | ||
60 | <keyword type="function" name="g3d_object_scale ()" link="libg3d-object.html#g3d-object-scale"/> | ||
61 | <keyword type="function" name="g3d_object_transform ()" link="libg3d-object.html#g3d-object-transform"/> | ||
62 | <keyword type="function" name="g3d_object_transform_normals ()" link="libg3d-object.html#g3d-object-transform-normals"/> | ||
63 | <keyword type="function" name="g3d_object_duplicate ()" link="libg3d-object.html#g3d-object-duplicate"/> | ||
64 | <keyword type="function" name="g3d_object_optimize ()" link="libg3d-object.html#g3d-object-optimize"/> | ||
65 | <keyword type="function" name="g3d_object_smooth ()" link="libg3d-object.html#g3d-object-smooth"/> | ||
66 | <keyword type="function" name="g3d_object_merge ()" link="libg3d-object.html#g3d-object-merge"/> | ||
67 | <keyword type="macro" name="G3D_FLAG_MAT_TWOSIDE" link="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS"/> | ||
68 | <keyword type="macro" name="G3D_FLAG_FAC_NORMALS" link="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS"/> | ||
69 | <keyword type="macro" name="G3D_FLAG_FAC_TEXMAP" link="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS"/> | ||
70 | <keyword type="struct" name="G3DFace" link="libg3d-face.html#G3DFace"/> | ||
71 | <keyword type="function" name="g3d_face_get_normal ()" link="libg3d-face.html#g3d-face-get-normal"/> | ||
72 | <keyword type="function" name="g3d_face_free ()" link="libg3d-face.html#g3d-face-free"/> | ||
73 | <keyword type="struct" name="G3DMaterial" link="libg3d-material.html#G3DMaterial"/> | ||
74 | <keyword type="function" name="g3d_material_new ()" link="libg3d-material.html#g3d-material-new"/> | ||
75 | <keyword type="function" name="g3d_material_free ()" link="libg3d-material.html#g3d-material-free"/> | ||
76 | <keyword type="macro" name="G3D_FLAG_IMG_GREYSCALE" link="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS"/> | ||
77 | <keyword type="enum" name="enum G3DTexEnv" link="libg3d-texture.html#G3DTexEnv"/> | ||
78 | <keyword type="struct" name="G3DImage" link="libg3d-texture.html#G3DImage"/> | ||
79 | <keyword type="function" name="g3d_texture_load_cached ()" link="libg3d-texture.html#g3d-texture-load-cached"/> | ||
80 | <keyword type="function" name="g3d_texture_load_from_stream ()" link="libg3d-texture.html#g3d-texture-load-from-stream"/> | ||
81 | <keyword type="function" name="g3d_texture_load ()" link="libg3d-texture.html#g3d-texture-load"/> | ||
82 | <keyword type="function" name="g3d_texture_free ()" link="libg3d-texture.html#g3d-texture-free"/> | ||
83 | <keyword type="function" name="g3d_texture_prepare ()" link="libg3d-texture.html#g3d-texture-prepare"/> | ||
84 | <keyword type="function" name="g3d_texture_flip_y ()" link="libg3d-texture.html#g3d-texture-flip-y"/> | ||
85 | <keyword type="function" name="g3d_texture_merge_alpha ()" link="libg3d-texture.html#g3d-texture-merge-alpha"/> | ||
86 | <keyword type="enum" name="enum G3DPluginType" link="libg3d-plugins.html#G3DPluginType"/> | ||
87 | <keyword type="function" name="G3DPluginInitFunc ()" link="libg3d-plugins.html#G3DPluginInitFunc"/> | ||
88 | <keyword type="function" name="G3DPluginCleanupFunc ()" link="libg3d-plugins.html#G3DPluginCleanupFunc"/> | ||
89 | <keyword type="function" name="G3DPluginLoadModelFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFunc"/> | ||
90 | <keyword type="function" name="G3DPluginLoadModelFromStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc"/> | ||
91 | <keyword type="function" name="G3DPluginLoadImageFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageFunc"/> | ||
92 | <keyword type="function" name="G3DPluginLoadImageStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageStreamFunc"/> | ||
93 | <keyword type="function" name="G3DPluginGetDescFunc ()" link="libg3d-plugins.html#G3DPluginGetDescFunc"/> | ||
94 | <keyword type="function" name="G3DPluginGetExtFunc ()" link="libg3d-plugins.html#G3DPluginGetExtFunc"/> | ||
95 | <keyword type="struct" name="G3DPlugin" link="libg3d-plugins.html#G3DPlugin"/> | ||
96 | <keyword type="function" name="g3d_plugins_init ()" link="libg3d-plugins.html#g3d-plugins-init"/> | ||
97 | <keyword type="function" name="g3d_plugins_cleanup ()" link="libg3d-plugins.html#g3d-plugins-cleanup"/> | ||
98 | <keyword type="function" name="g3d_plugins_load_model ()" link="libg3d-plugins.html#g3d-plugins-load-model"/> | ||
99 | <keyword type="function" name="g3d_plugins_load_model_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-model-from-stream"/> | ||
100 | <keyword type="function" name="g3d_plugins_load_image ()" link="libg3d-plugins.html#g3d-plugins-load-image"/> | ||
101 | <keyword type="function" name="g3d_plugins_load_image_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-image-from-stream"/> | ||
102 | <keyword type="function" name="g3d_plugins_get_image_extensions ()" link="libg3d-plugins.html#g3d-plugins-get-image-extensions"/> | ||
103 | <keyword type="struct" name="G3DStream" link="libg3d-stream.html#G3DStream"/> | ||
104 | <keyword type="function" name="g3d_stream_open_file ()" link="libg3d-stream.html#g3d-stream-open-file"/> | ||
105 | <keyword type="function" name="g3d_stream_open_structured_file ()" link="libg3d-stream.html#g3d-stream-open-structured-file"/> | ||
106 | <keyword type="function" name="g3d_stream_open_structured_file_from_stream ()" link="libg3d-stream.html#g3d-stream-open-structured-file-from-stream"/> | ||
107 | <keyword type="function" name="g3d_stream_open_zip ()" link="libg3d-stream.html#g3d-stream-open-zip"/> | ||
108 | <keyword type="function" name="g3d_stream_open_zip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-zip-from-stream"/> | ||
109 | <keyword type="function" name="g3d_stream_open_gzip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-gzip-from-stream"/> | ||
110 | <keyword type="function" name="g3d_stream_from_buffer ()" link="libg3d-stream.html#g3d-stream-from-buffer"/> | ||
111 | <keyword type="function" name="g3d_stream_zlib_inflate_stream ()" link="libg3d-stream.html#g3d-stream-zlib-inflate-stream"/> | ||
112 | <keyword type="function" name="g3d_stream_new_custom ()" link="libg3d-stream.html#g3d-stream-new-custom"/> | ||
113 | <keyword type="function" name="g3d_stream_close ()" link="libg3d-stream.html#g3d-stream-close"/> | ||
114 | <keyword type="function" name="g3d_stream_skip ()" link="libg3d-stream.html#g3d-stream-skip"/> | ||
115 | <keyword type="function" name="g3d_stream_seek ()" link="libg3d-stream.html#g3d-stream-seek"/> | ||
116 | <keyword type="function" name="g3d_stream_tell ()" link="libg3d-stream.html#g3d-stream-tell"/> | ||
117 | <keyword type="function" name="g3d_stream_size ()" link="libg3d-stream.html#g3d-stream-size"/> | ||
118 | <keyword type="function" name="g3d_stream_eof ()" link="libg3d-stream.html#g3d-stream-eof"/> | ||
119 | <keyword type="function" name="g3d_stream_is_seekable ()" link="libg3d-stream.html#g3d-stream-is-seekable"/> | ||
120 | <keyword type="function" name="g3d_stream_get_uri ()" link="libg3d-stream.html#g3d-stream-get-uri"/> | ||
121 | <keyword type="function" name="g3d_stream_line ()" link="libg3d-stream.html#g3d-stream-line"/> | ||
122 | <keyword type="function" name="g3d_stream_read ()" link="libg3d-stream.html#g3d-stream-read"/> | ||
123 | <keyword type="function" name="g3d_stream_read_line ()" link="libg3d-stream.html#g3d-stream-read-line"/> | ||
124 | <keyword type="function" name="g3d_stream_read_int8 ()" link="libg3d-stream.html#g3d-stream-read-int8"/> | ||
125 | <keyword type="function" name="g3d_stream_read_int16_be ()" link="libg3d-stream.html#g3d-stream-read-int16-be"/> | ||
126 | <keyword type="function" name="g3d_stream_read_int16_le ()" link="libg3d-stream.html#g3d-stream-read-int16-le"/> | ||
127 | <keyword type="function" name="g3d_stream_read_int32_be ()" link="libg3d-stream.html#g3d-stream-read-int32-be"/> | ||
128 | <keyword type="function" name="g3d_stream_read_int32_le ()" link="libg3d-stream.html#g3d-stream-read-int32-le"/> | ||
129 | <keyword type="function" name="g3d_stream_read_float_be ()" link="libg3d-stream.html#g3d-stream-read-float-be"/> | ||
130 | <keyword type="function" name="g3d_stream_read_float_le ()" link="libg3d-stream.html#g3d-stream-read-float-le"/> | ||
131 | <keyword type="function" name="g3d_stream_read_double_be ()" link="libg3d-stream.html#g3d-stream-read-double-be"/> | ||
132 | <keyword type="function" name="g3d_stream_read_double_le ()" link="libg3d-stream.html#g3d-stream-read-double-le"/> | ||
133 | <keyword type="function" name="g3d_stream_read_cstr ()" link="libg3d-stream.html#g3d-stream-read-cstr"/> | ||
134 | <keyword type="function" name="G3DStreamCloseFunc ()" link="libg3d-stream.html#G3DStreamCloseFunc"/> | ||
135 | <keyword type="function" name="G3DStreamEofFunc ()" link="libg3d-stream.html#G3DStreamEofFunc"/> | ||
136 | <keyword type="function" name="G3DStreamReadFunc ()" link="libg3d-stream.html#G3DStreamReadFunc"/> | ||
137 | <keyword type="function" name="G3DStreamReadLineFunc ()" link="libg3d-stream.html#G3DStreamReadLineFunc"/> | ||
138 | <keyword type="function" name="G3DStreamSeekFunc ()" link="libg3d-stream.html#G3DStreamSeekFunc"/> | ||
139 | <keyword type="function" name="G3DStreamSizeFunc ()" link="libg3d-stream.html#G3DStreamSizeFunc"/> | ||
140 | <keyword type="function" name="G3DStreamTellFunc ()" link="libg3d-stream.html#G3DStreamTellFunc"/> | ||
141 | <keyword type="macro" name="G3D_IFF_PAD1" link="libg3d-iff.html#G3D-IFF-PAD1:CAPS"/> | ||
142 | <keyword type="macro" name="G3D_IFF_PAD2" link="libg3d-iff.html#G3D-IFF-PAD2:CAPS"/> | ||
143 | <keyword type="macro" name="G3D_IFF_PAD4" link="libg3d-iff.html#G3D-IFF-PAD4:CAPS"/> | ||
144 | <keyword type="macro" name="G3D_IFF_PAD8" link="libg3d-iff.html#G3D-IFF-PAD8:CAPS"/> | ||
145 | <keyword type="macro" name="G3D_IFF_LE" link="libg3d-iff.html#G3D-IFF-LE:CAPS"/> | ||
146 | <keyword type="macro" name="G3D_IFF_LEN16" link="libg3d-iff.html#G3D-IFF-LEN16:CAPS"/> | ||
147 | <keyword type="macro" name="G3D_IFF_SUBCHUNK_LEN16" link="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS"/> | ||
148 | <keyword type="macro" name="G3D_IFF_MKID()" link="libg3d-iff.html#G3D-IFF-MKID:CAPS"/> | ||
149 | <keyword type="function" name="g3d_iff_check ()" link="libg3d-iff.html#g3d-iff-check"/> | ||
150 | <keyword type="function" name="g3d_iff_read_chunk ()" link="libg3d-iff.html#g3d-iff-read-chunk"/> | ||
151 | <keyword type="function" name="g3d_iff_handle_chunk ()" link="libg3d-iff.html#g3d-iff-handle-chunk"/> | ||
152 | <keyword type="function" name="g3d_iff_chunk_matches ()" link="libg3d-iff.html#g3d-iff-chunk-matches"/> | ||
153 | <keyword type="function" name="g3d_iff_read_ctnr ()" link="libg3d-iff.html#g3d-iff-read-ctnr"/> | ||
154 | <keyword type="function" name="g3d_iff_id_to_text ()" link="libg3d-iff.html#g3d-iff-id-to-text"/> | ||
155 | <keyword type="function" name="g3d_iff_open ()" link="libg3d-iff.html#g3d-iff-open"/> | ||
156 | <keyword type="function" name="g3d_iff_readchunk ()" link="libg3d-iff.html#g3d-iff-readchunk"/> | ||
157 | <keyword type="function" name="G3DIffChunkCallback ()" link="libg3d-iff.html#G3DIffChunkCallback"/> | ||
158 | <keyword type="macro" name="g3d_iff_chunk_callback" link="libg3d-iff.html#g3d-iff-chunk-callback"/> | ||
159 | <keyword type="struct" name="G3DIffChunkInfo" link="libg3d-iff.html#G3DIffChunkInfo"/> | ||
160 | <keyword type="macro" name="g3d_iff_chunk_info" link="libg3d-iff.html#g3d-iff-chunk-info"/> | ||
161 | <keyword type="struct" name="G3DIffGlobal" link="libg3d-iff.html#G3DIffGlobal"/> | ||
162 | <keyword type="macro" name="g3d_iff_gdata" link="libg3d-iff.html#g3d-iff-gdata"/> | ||
163 | <keyword type="struct" name="G3DIffLocal" link="libg3d-iff.html#G3DIffLocal"/> | ||
164 | <keyword type="macro" name="g3d_iff_ldata" link="libg3d-iff.html#g3d-iff-ldata"/> | ||
165 | <keyword type="function" name="g3d_read_int8 ()" link="libg3d-read.html#g3d-read-int8"/> | ||
166 | <keyword type="function" name="g3d_read_int16_be ()" link="libg3d-read.html#g3d-read-int16-be"/> | ||
167 | <keyword type="function" name="g3d_read_int16_le ()" link="libg3d-read.html#g3d-read-int16-le"/> | ||
168 | <keyword type="function" name="g3d_read_int32_be ()" link="libg3d-read.html#g3d-read-int32-be"/> | ||
169 | <keyword type="function" name="g3d_read_int32_le ()" link="libg3d-read.html#g3d-read-int32-le"/> | ||
170 | <keyword type="function" name="g3d_read_float_be ()" link="libg3d-read.html#g3d-read-float-be"/> | ||
171 | <keyword type="function" name="g3d_read_float_le ()" link="libg3d-read.html#g3d-read-float-le"/> | ||
172 | <keyword type="function" name="g3d_read_double_be ()" link="libg3d-read.html#g3d-read-double-be"/> | ||
173 | <keyword type="function" name="g3d_read_double_le ()" link="libg3d-read.html#g3d-read-double-le"/> | ||
174 | <keyword type="function" name="g3d_read_cstr ()" link="libg3d-read.html#g3d-read-cstr"/> | ||
175 | <keyword type="function" name="g3d_primitive_cube ()" link="libg3d-primitive.html#g3d-primitive-cube"/> | ||
176 | <keyword type="function" name="g3d_primitive_box ()" link="libg3d-primitive.html#g3d-primitive-box"/> | ||
177 | <keyword type="function" name="g3d_primitive_box_strip_2d ()" link="libg3d-primitive.html#g3d-primitive-box-strip-2d"/> | ||
178 | <keyword type="function" name="g3d_primitive_mesh ()" link="libg3d-primitive.html#g3d-primitive-mesh"/> | ||
179 | <keyword type="function" name="g3d_primitive_cylinder ()" link="libg3d-primitive.html#g3d-primitive-cylinder"/> | ||
180 | <keyword type="function" name="g3d_primitive_tube ()" link="libg3d-primitive.html#g3d-primitive-tube"/> | ||
181 | <keyword type="function" name="g3d_primitive_sphere ()" link="libg3d-primitive.html#g3d-primitive-sphere"/> | ||
182 | <keyword type="typedef" name="G3DMatrix" link="libg3d-matrix.html#G3DMatrix"/> | ||
183 | <keyword type="function" name="g3d_matrix_identity ()" link="libg3d-matrix.html#g3d-matrix-identity"/> | ||
184 | <keyword type="function" name="g3d_matrix_multiply ()" link="libg3d-matrix.html#g3d-matrix-multiply"/> | ||
185 | <keyword type="function" name="g3d_matrix_translate ()" link="libg3d-matrix.html#g3d-matrix-translate"/> | ||
186 | <keyword type="function" name="g3d_matrix_rotate ()" link="libg3d-matrix.html#g3d-matrix-rotate"/> | ||
187 | <keyword type="function" name="g3d_matrix_rotate_xyz ()" link="libg3d-matrix.html#g3d-matrix-rotate-xyz"/> | ||
188 | <keyword type="function" name="g3d_matrix_scale ()" link="libg3d-matrix.html#g3d-matrix-scale"/> | ||
189 | <keyword type="function" name="g3d_matrix_transpose ()" link="libg3d-matrix.html#g3d-matrix-transpose"/> | ||
190 | <keyword type="function" name="g3d_matrix_determinant ()" link="libg3d-matrix.html#g3d-matrix-determinant"/> | ||
191 | <keyword type="function" name="g3d_matrix_dump ()" link="libg3d-matrix.html#g3d-matrix-dump"/> | ||
192 | <keyword type="typedef" name="G3DVector" link="libg3d-vector.html#G3DVector"/> | ||
193 | <keyword type="function" name="g3d_vector_normal ()" link="libg3d-vector.html#g3d-vector-normal"/> | ||
194 | <keyword type="function" name="g3d_vector_unify ()" link="libg3d-vector.html#g3d-vector-unify"/> | ||
195 | <keyword type="function" name="g3d_vector_transform ()" link="libg3d-vector.html#g3d-vector-transform"/> | ||
196 | <keyword type="typedef" name="G3DQuat" link="libg3d-quat.html#G3DQuat"/> | ||
197 | <keyword type="function" name="g3d_quat_add ()" link="libg3d-quat.html#g3d-quat-add"/> | ||
198 | <keyword type="function" name="g3d_quat_normalize ()" link="libg3d-quat.html#g3d-quat-normalize"/> | ||
199 | <keyword type="function" name="g3d_quat_rotate ()" link="libg3d-quat.html#g3d-quat-rotate"/> | ||
200 | <keyword type="function" name="g3d_quat_to_matrix ()" link="libg3d-quat.html#g3d-quat-to-matrix"/> | ||
201 | <keyword type="function" name="g3d_quat_to_rotation_xyz ()" link="libg3d-quat.html#g3d-quat-to-rotation-xyz"/> | ||
202 | <keyword type="function" name="g3d_quat_trackball ()" link="libg3d-quat.html#g3d-quat-trackball"/> | ||
203 | </functions> | ||
204 | </book> | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png new file mode 100644 index 0000000..92832e3 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png | |||
Binary files differ | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css b/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css new file mode 100644 index 0000000..4c57e41 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css | |||
@@ -0,0 +1,160 @@ | |||
1 | .synopsis, .classsynopsis | ||
2 | { | ||
3 | background: #eeeeee; | ||
4 | border: solid 1px #aaaaaa; | ||
5 | padding: 0.5em; | ||
6 | } | ||
7 | .programlisting | ||
8 | { | ||
9 | background: #eeeeff; | ||
10 | border: solid 1px #aaaaff; | ||
11 | padding: 0.5em; | ||
12 | } | ||
13 | .variablelist | ||
14 | { | ||
15 | padding: 4px; | ||
16 | margin-left: 3em; | ||
17 | } | ||
18 | .variablelist td:first-child | ||
19 | { | ||
20 | vertical-align: top; | ||
21 | } | ||
22 | |||
23 | /* this is needed so that the local anchors are displayed below the naviagtion */ | ||
24 | @media screen { | ||
25 | sup a.footnote | ||
26 | { | ||
27 | position: relative; | ||
28 | top: 0em ! important; | ||
29 | } | ||
30 | div.refnamediv a[name], div.refsect1 a[name] | ||
31 | { | ||
32 | position: relative; | ||
33 | top: -4.5em; | ||
34 | } | ||
35 | table.navigation#top | ||
36 | { | ||
37 | background: #ffeeee; | ||
38 | border: solid 1px #ffaaaa; | ||
39 | margin-top: 0; | ||
40 | margin-bottom: 0; | ||
41 | position: fixed; | ||
42 | top: 0; | ||
43 | left: 0; | ||
44 | height: 2em; | ||
45 | z-index: 1; | ||
46 | } | ||
47 | .navigation a | ||
48 | { | ||
49 | color: #770000; | ||
50 | } | ||
51 | .navigation a:visited | ||
52 | { | ||
53 | color: #550000; | ||
54 | } | ||
55 | td.shortcuts | ||
56 | { | ||
57 | color: #770000; | ||
58 | font-size: 80%; | ||
59 | } | ||
60 | div.refentry, div.chapter, div.reference, div.part, div.book, div.index, div.glossary, div.sect1, div.appendix, div.preface | ||
61 | { | ||
62 | position: relative; | ||
63 | top: 3em; | ||
64 | z-index: 0; | ||
65 | } | ||
66 | div.refnamediv | ||
67 | { | ||
68 | margin-top: 2em; | ||
69 | } | ||
70 | body | ||
71 | { | ||
72 | padding-bottom: 20em; | ||
73 | } | ||
74 | } | ||
75 | @media print { | ||
76 | table.navigation { | ||
77 | visibility: collapse; | ||
78 | display: none; | ||
79 | } | ||
80 | div.titlepage table.navigation { | ||
81 | visibility: visible; | ||
82 | display: table; | ||
83 | background: #ffeeee; | ||
84 | border: solid 1px #ffaaaa; | ||
85 | margin-top: 0; | ||
86 | margin-bottom: 0; | ||
87 | top: 0; | ||
88 | left: 0; | ||
89 | height: 2em; | ||
90 | } | ||
91 | } | ||
92 | |||
93 | .navigation .title | ||
94 | { | ||
95 | font-size: 200%; | ||
96 | } | ||
97 | |||
98 | |||
99 | div.gallery-float | ||
100 | { | ||
101 | float: left; | ||
102 | padding: 10px; | ||
103 | } | ||
104 | div.gallery-float img | ||
105 | { | ||
106 | border-style: none; | ||
107 | } | ||
108 | div.gallery-spacer | ||
109 | { | ||
110 | clear: both; | ||
111 | } | ||
112 | a | ||
113 | { | ||
114 | text-decoration: none; | ||
115 | } | ||
116 | a:hover | ||
117 | { | ||
118 | text-decoration: underline; | ||
119 | color: #FF0000; | ||
120 | } | ||
121 | |||
122 | div.table table | ||
123 | { | ||
124 | border-collapse: collapse; | ||
125 | border-spacing: 0px; | ||
126 | border-style: solid; | ||
127 | border-color: #777777; | ||
128 | border-width: 1px; | ||
129 | } | ||
130 | |||
131 | div.table table td, div.table table th | ||
132 | { | ||
133 | border-style: solid; | ||
134 | border-color: #777777; | ||
135 | border-width: 1px; | ||
136 | padding: 3px; | ||
137 | vertical-align: top; | ||
138 | } | ||
139 | |||
140 | div.table table th | ||
141 | { | ||
142 | background-color: #eeeeee; | ||
143 | } | ||
144 | |||
145 | hr | ||
146 | { | ||
147 | color: #777777; | ||
148 | background: #777777; | ||
149 | border: 0; | ||
150 | height: 1px; | ||
151 | clear: both; | ||
152 | } | ||
153 | |||
154 | .footer | ||
155 | { | ||
156 | padding-top: 3.5em; | ||
157 | color: #777777; | ||
158 | text-align: center; | ||
159 | font-size: 80%; | ||
160 | } | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png new file mode 100644 index 0000000..85b3e2a --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png | |||
Binary files differ | |||