/usr/share/gtk-doc/html/libgwydraw/GwyGLMaterial.html is in libgwyddion20-doc 2.26-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GwyGLMaterial</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Gwyddion Drawing Library Reference Manual">
<link rel="up" href="index.html" title="Gwyddion Drawing Library Reference Manual">
<link rel="prev" href="GwyGradient.html" title="GwyGradient">
<link rel="next" href="libgwydraw-gwypixfield.html" title="gwypixfield">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GwyGradient.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Gwyddion Drawing Library Reference Manual</th>
<td><a accesskey="n" href="libgwydraw-gwypixfield.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GwyGLMaterial.synopsis" class="shortcut">Top</a>
|
<a href="#GwyGLMaterial.description" class="shortcut">Description</a>
|
<a href="#GwyGLMaterial.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="GwyGLMaterial"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GwyGLMaterial.top_of_page"></a>GwyGLMaterial</span></h2>
<p>GwyGLMaterial — OpenGL material representation</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GwyGLMaterial.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <libdraw/gwydraw.h>
struct <a class="link" href="GwyGLMaterial.html#GwyGLMaterial-struct" title="struct GwyGLMaterial">GwyGLMaterial</a>;
struct <a class="link" href="GwyGLMaterial.html#GwyGLMaterialClass" title="struct GwyGLMaterialClass">GwyGLMaterialClass</a>;
#define <a class="link" href="GwyGLMaterial.html#GWY-GL-MATERIAL-DEFAULT:CAPS" title="GWY_GL_MATERIAL_DEFAULT">GWY_GL_MATERIAL_DEFAULT</a>
#define <a class="link" href="GwyGLMaterial.html#GWY-GL-MATERIAL-NONE:CAPS" title="GWY_GL_MATERIAL_NONE">GWY_GL_MATERIAL_NONE</a>
const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-ambient" title="gwy_gl_material_get_ambient ()">gwy_gl_material_get_ambient</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-diffuse" title="gwy_gl_material_get_diffuse ()">gwy_gl_material_get_diffuse</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-emission" title="gwy_gl_material_get_emission ()">gwy_gl_material_get_emission</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-shininess" title="gwy_gl_material_get_shininess ()">gwy_gl_material_get_shininess</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-specular" title="gwy_gl_material_get_specular ()">gwy_gl_material_get_specular</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-reset" title="gwy_gl_material_reset ()">gwy_gl_material_reset</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-sample-to-pixbuf" title="gwy_gl_material_sample_to_pixbuf ()">gwy_gl_material_sample_to_pixbuf</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-ambient" title="gwy_gl_material_set_ambient ()">gwy_gl_material_set_ambient</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *ambient</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-diffuse" title="gwy_gl_material_set_diffuse ()">gwy_gl_material_set_diffuse</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *diffuse</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-emission" title="gwy_gl_material_set_emission ()">gwy_gl_material_set_emission</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *emission</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-shininess" title="gwy_gl_material_set_shininess ()">gwy_gl_material_set_shininess</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> shininess</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-specular" title="gwy_gl_material_set_specular ()">gwy_gl_material_set_specular</a> (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *specular</code></em>);
<a href="./../libgwyddion/libgwyddion/GwyInventory.html"><span class="returnvalue">GwyInventory</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-materials" title="gwy_gl_materials ()">gwy_gl_materials</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="returnvalue">GwyGLMaterial</span></a> * <a class="link" href="GwyGLMaterial.html#gwy-gl-materials-get-gl-material" title="gwy_gl_materials_get_gl_material ()">gwy_gl_materials_get_gl_material</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----<a href="./../libgwyddion/libgwyddion/GwyResource.html">GwyResource</a>
+----GwyGLMaterial
</pre>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.description"></a><h2>Description</h2>
<p>
<a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> represents an OpenGL material. Its properties directly map
to corresponding OpenGL material characteristics, all are in the range
[0,1].
</p>
<p>
Gradient objects can be obtained from <a class="link" href="GwyGLMaterial.html#gwy-gl-materials-get-gl-material" title="gwy_gl_materials_get_gl_material ()"><code class="function">gwy_gl_materials_get_gl_material()</code></a>.
New GL materials can be created with <a href="./../libgwyddion/libgwyddion/GwyInventory.html#gwy-inventory-new-item"><code class="function">gwy_inventory_new_item()</code></a> on the
<a href="./../libgwyddion/libgwyddion/GwyInventory.html"><span class="type">GwyInventory</span></a> returned by <a class="link" href="GwyGLMaterial.html#gwy-gl-materials" title="gwy_gl_materials ()"><code class="function">gwy_gl_materials()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GwyGLMaterial-struct"></a><h3>struct GwyGLMaterial</h3>
<pre class="programlisting">struct GwyGLMaterial;</pre>
<p>
The <a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> struct contains private data only and should be accessed
using the functions below.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GwyGLMaterialClass"></a><h3>struct GwyGLMaterialClass</h3>
<pre class="programlisting">struct GwyGLMaterialClass;</pre>
<p>
<a class="link" href="GwyGLMaterial.html#GwyGLMaterialClass" title="struct GwyGLMaterialClass"><span class="type">GwyGLMaterialClass</span></a> does not contain any public members.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GWY-GL-MATERIAL-DEFAULT:CAPS"></a><h3>GWY_GL_MATERIAL_DEFAULT</h3>
<pre class="programlisting">#define GWY_GL_MATERIAL_DEFAULT "OpenGL-Default"
</pre>
<p>
The name of the default OpenGL material.
</p>
<p>
It is guaranteed to always exist.
</p>
<p>
Note this is not the same as user's default material which corresponds to
the default item in <a class="link" href="GwyGLMaterial.html#gwy-gl-materials" title="gwy_gl_materials ()"><code class="function">gwy_gl_materials()</code></a> inventory and it change over time.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GWY-GL-MATERIAL-NONE:CAPS"></a><h3>GWY_GL_MATERIAL_NONE</h3>
<pre class="programlisting">#define GWY_GL_MATERIAL_NONE "None"
</pre>
<p>
The name of special void material with all characteristics zero.
</p>
<p>
It is guaranteed to exist, but you should rarely actually need it.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-get-ambient"></a><h3>gwy_gl_material_get_ambient ()</h3>
<pre class="programlisting">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * gwy_gl_material_get_ambient (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Gets the ambient reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Ambient reflectance (owned by GL material, must not be modified
nor freed).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-get-diffuse"></a><h3>gwy_gl_material_get_diffuse ()</h3>
<pre class="programlisting">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * gwy_gl_material_get_diffuse (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Gets the diffuse reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Diffuse reflectance (owned by GL material, must not be modified
nor freed).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-get-emission"></a><h3>gwy_gl_material_get_emission ()</h3>
<pre class="programlisting">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * gwy_gl_material_get_emission (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Gets the emission component of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Emission component (owned by GL material, must not be modified
nor freed).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-get-shininess"></a><h3>gwy_gl_material_get_shininess ()</h3>
<pre class="programlisting"><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_gl_material_get_shininess (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Gets the shininess value of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The shininess value (in range 0..1, not 0..128).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-get-specular"></a><h3>gwy_gl_material_get_specular ()</h3>
<pre class="programlisting">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> * gwy_gl_material_get_specular (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Gets the specular reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Specular reflectance (owned by GL material, must not be modified
nor freed).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-reset"></a><h3>gwy_gl_material_reset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_reset (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>);</pre>
<p>
Resets a GL material to default values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-sample-to-pixbuf"></a><h3>gwy_gl_material_sample_to_pixbuf ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_sample_to_pixbuf (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
<p>
Samples GL material to a provided pixbuf.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material to sample.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>A pixbuf to sample gl_material to (in horizontal direction).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-set-ambient"></a><h3>gwy_gl_material_set_ambient ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_set_ambient (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *ambient</code></em>);</pre>
<p>
Sets the ambient reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ambient</code></em> :</span></p></td>
<td>Ambient reflectance.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-set-diffuse"></a><h3>gwy_gl_material_set_diffuse ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_set_diffuse (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *diffuse</code></em>);</pre>
<p>
Sets the diffuse reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>diffuse</code></em> :</span></p></td>
<td>Diffuse reflectance.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-set-emission"></a><h3>gwy_gl_material_set_emission ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_set_emission (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *emission</code></em>);</pre>
<p>
Sets the emission component of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>emission</code></em> :</span></p></td>
<td>Emission component.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-set-shininess"></a><h3>gwy_gl_material_set_shininess ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_set_shininess (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> shininess</code></em>);</pre>
<p>
Sets the shininess value of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>shininess</code></em> :</span></p></td>
<td>Shinniness value (in range 0..1, not 0..128).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-material-set-specular"></a><h3>gwy_gl_material_set_specular ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_gl_material_set_specular (<em class="parameter"><code><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="type">GwyGLMaterial</span></a> *gl_material</code></em>,
<em class="parameter"><code>const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> *specular</code></em>);</pre>
<p>
Sets the specular reflectance of a GL material.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gl_material</code></em> :</span></p></td>
<td>A GL material.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>specular</code></em> :</span></p></td>
<td>Specular reflectance.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-materials"></a><h3>gwy_gl_materials ()</h3>
<pre class="programlisting"><a href="./../libgwyddion/libgwyddion/GwyInventory.html"><span class="returnvalue">GwyInventory</span></a> * gwy_gl_materials (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets inventory with all the GL materials.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>GL material inventory.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-materials-get-gl-material"></a><h3>gwy_gl_materials_get_gl_material ()</h3>
<pre class="programlisting"><a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="returnvalue">GwyGLMaterial</span></a> * gwy_gl_materials_get_gl_material (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Convenience function to get a GL material from <a class="link" href="GwyGLMaterial.html#gwy-gl-materials" title="gwy_gl_materials ()"><code class="function">gwy_gl_materials()</code></a> by name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>GL material name. May be <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get the default GL material.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>GL material identified by <em class="parameter"><code>name</code></em> or the default GL material if <em class="parameter"><code>name</code></em>
does not exist.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.see-also"></a><h2>See Also</h2>
<a href="./../libgwydgets/libgwydgets/Gwy3DView.html"><span class="type">Gwy3DView</span></a> -- 3D data display widget,
<a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="type">GwyRGBA</span></a> -- representation of color components,
<a href="./../libgwyddion/libgwyddion/GwyInventory.html"><span class="type">GwyInventory</span></a> -- the container holding all GL materials
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.8</div>
</body>
</html>
|