diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html | 174 |
1 files changed, 174 insertions, 0 deletions
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> | ||