/usr/share/gtk-doc/html/libgwydraw/GwyGLMaterial.html is in libgwyddion20-doc 2.50-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 | <!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: Gwyddion Drawing Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<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.19 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#GwyGLMaterial.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#GwyGLMaterial.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="GwyGradient.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgwydraw-gwypixfield.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></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 class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GwyGLMaterial.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-ambient" title="gwy_gl_material_get_ambient ()">gwy_gl_material_get_ambient</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-ambient" title="gwy_gl_material_set_ambient ()">gwy_gl_material_set_ambient</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-diffuse" title="gwy_gl_material_get_diffuse ()">gwy_gl_material_get_diffuse</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-diffuse" title="gwy_gl_material_set_diffuse ()">gwy_gl_material_set_diffuse</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-specular" title="gwy_gl_material_get_specular ()">gwy_gl_material_get_specular</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-specular" title="gwy_gl_material_set_specular ()">gwy_gl_material_set_specular</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="libgwydraw-GwyRGBA.html#GwyRGBA" title="GwyRGBA"><span class="returnvalue">GwyRGBA</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-emission" title="gwy_gl_material_get_emission ()">gwy_gl_material_get_emission</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-emission" title="gwy_gl_material_set_emission ()">gwy_gl_material_set_emission</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="http://developer.gnome.org/doc/API/2.0/gtk/glibglib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-get-shininess" title="gwy_gl_material_get_shininess ()">gwy_gl_material_get_shininess</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-set-shininess" title="gwy_gl_material_set_shininess ()">gwy_gl_material_set_shininess</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-material-reset" title="gwy_gl_material_reset ()">gwy_gl_material_reset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../GwyInventory.html#GwyInventory-struct"><span class="returnvalue">GwyInventory</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwyGLMaterial.html#gwy-gl-materials" title="gwy_gl_materials ()">gwy_gl_materials</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GwyGLMaterial.html" title="GwyGLMaterial"><span class="returnvalue">GwyGLMaterial</span></a> *
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GwyGLMaterial.html#GWY-GL-MATERIAL-DEFAULT:CAPS" title="GWY_GL_MATERIAL_DEFAULT">GWY_GL_MATERIAL_DEFAULT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GwyGLMaterial.html#GWY-GL-MATERIAL-NONE:CAPS" title="GWY_GL_MATERIAL_NONE">GWY_GL_MATERIAL_NONE</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GwyGLMaterial.html#GwyGLMaterial-struct" title="struct GwyGLMaterial">GwyGLMaterial</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GwyGLMaterial.html#GwyGLMaterialClass" title="struct GwyGLMaterialClass">GwyGLMaterialClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="http://developer.gnome.org/doc/API/2.0/gtk/gobjectgobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> <a href="../GwyResource.html#GwyResource-struct">GwyResource</a>
<span class="lineart">╰──</span> GwyGLMaterial
</pre>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libdraw/gwydraw.h>
</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="../GwyInventory.html#gwy-inventory-new-item"><code class="function">gwy_inventory_new_item()</code></a> on the
<a href="../GwyInventory.html#GwyInventory-struct"><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.functions_details"></a><h2>Functions</h2>
<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="refsect3">
<a name="gwy-gl-material-get-ambient.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-material-get-ambient.returns"></a><h4>Returns</h4>
<p> Ambient reflectance (owned by GL material, must not be modified
nor freed).</p>
</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="refsect3">
<a name="gwy-gl-material-set-ambient.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ambient</p></td>
<td class="parameter_description"><p>Ambient reflectance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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="refsect3">
<a name="gwy-gl-material-get-diffuse.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-material-get-diffuse.returns"></a><h4>Returns</h4>
<p> Diffuse reflectance (owned by GL material, must not be modified
nor freed).</p>
</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="refsect3">
<a name="gwy-gl-material-set-diffuse.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>diffuse</p></td>
<td class="parameter_description"><p>Diffuse reflectance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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="refsect3">
<a name="gwy-gl-material-get-specular.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-material-get-specular.returns"></a><h4>Returns</h4>
<p> Specular reflectance (owned by GL material, must not be modified
nor freed).</p>
</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="refsect3">
<a name="gwy-gl-material-set-specular.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>specular</p></td>
<td class="parameter_description"><p>Specular reflectance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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="refsect3">
<a name="gwy-gl-material-get-emission.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-material-get-emission.returns"></a><h4>Returns</h4>
<p> Emission component (owned by GL material, must not be modified
nor freed).</p>
</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="refsect3">
<a name="gwy-gl-material-set-emission.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>emission</p></td>
<td class="parameter_description"><p>Emission component.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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/gtk/glibglib-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="refsect3">
<a name="gwy-gl-material-get-shininess.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-material-get-shininess.returns"></a><h4>Returns</h4>
<p> The shininess value (in range 0..1, not 0..128).</p>
</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/gtk/glibglib-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="refsect3">
<a name="gwy-gl-material-set-shininess.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>shininess</p></td>
<td class="parameter_description"><p>Shinniness value (in range 0..1, not 0..128).</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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/gtk/gdk-pixbufgdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
<p>Samples GL material to a provided pixbuf.</p>
<div class="refsect3">
<a name="gwy-gl-material-sample-to-pixbuf.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material to sample.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pixbuf</p></td>
<td class="parameter_description"><p>A pixbuf to sample gl_material to (in horizontal direction).</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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="refsect3">
<a name="gwy-gl-material-reset.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gl_material</p></td>
<td class="parameter_description"><p>A GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-gl-materials"></a><h3>gwy_gl_materials ()</h3>
<pre class="programlisting"><a href="../GwyInventory.html#GwyInventory-struct"><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="refsect3">
<a name="gwy-gl-materials.returns"></a><h4>Returns</h4>
<p> GL material inventory.</p>
</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/gtk/glibglib-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="refsect3">
<a name="gwy-gl-materials-get-gl-material.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>GL material name. May be <a href="http://developer.gnome.org/doc/API/2.0/gtk/glibglib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get the default GL material.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gwy-gl-materials-get-gl-material.returns"></a><h4>Returns</h4>
<p> 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.</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.other_details"></a><h2>Types and Values</h2>
<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="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>
</div>
<div class="refsect1">
<a name="GwyGLMaterial.see-also"></a><h2>See Also</h2>
<p><a href="../Gwy3DView.html#Gwy3DView-struct"><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="../GwyInventory.html#GwyInventory-struct"><span class="type">GwyInventory</span></a> -- the container holding all GL materials</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.19</div>
</body>
</html>
|