Module gwy :: Class GLMaterial
[show private | hide private]
[frames | no frames]

Class GLMaterial


The GLMaterial struct contains private data only and should be accessed using the functions below.
Method Summary
  get_ambient()
Gets the ambient reflectance of a GL material.
  get_diffuse()
Gets the diffuse reflectance of a GL material.
  get_emission()
Gets the emission component of a GL material.
  get_shininess()
Gets the shininess value of a GL material.
  get_specular()
Gets the specular reflectance of a GL material.
  reset()
Resets a GL material to default values.
  sample_to_pixbuf(pixbuf)
Samples GL material to a provided pixbuf.
  set_ambient(ambient)
Sets the ambient reflectance of a GL material.
  set_diffuse(diffuse)
Sets the diffuse reflectance of a GL material.
  set_emission(emission)
Sets the emission component of a GL material.
  set_shininess(shininess)
Sets the shininess value of a GL material.
  set_specular(specular)
Sets the specular reflectance of a GL material.

Method Details

get_ambient()

Gets the ambient reflectance of a GL material.
Returns:
Ambient reflectance (owned by GL material, must not be modified nor freed).

get_diffuse()

Gets the diffuse reflectance of a GL material.
Returns:
Diffuse reflectance (owned by GL material, must not be modified nor freed).

get_emission()

Gets the emission component of a GL material.
Returns:
Emission component (owned by GL material, must not be modified nor freed).

get_shininess()

Gets the shininess value of a GL material.
Returns:
The shininess value (in range 0..1, not 0..128).

get_specular()

Gets the specular reflectance of a GL material.
Returns:
Specular reflectance (owned by GL material, must not be modified nor freed).

reset()

Resets a GL material to default values.

sample_to_pixbuf(pixbuf)

Samples GL material to a provided pixbuf.
Parameters:
pixbuf - A pixbuf to sample gl_material to (in horizontal direction). (GdkPixbuf*)

set_ambient(ambient)

Sets the ambient reflectance of a GL material.
Parameters:
ambient - Ambient reflectance. (const-RGBA*)

set_diffuse(diffuse)

Sets the diffuse reflectance of a GL material.
Parameters:
diffuse - Diffuse reflectance. (const-RGBA*)

set_emission(emission)

Sets the emission component of a GL material.
Parameters:
emission - Emission component. (const-RGBA*)

set_shininess(shininess)

Sets the shininess value of a GL material.
Parameters:
shininess - Shinniness value (in range 0..1, not 0..128). (float)

set_specular(specular)

Sets the specular reflectance of a GL material.
Parameters:
specular - Specular reflectance. (const-RGBA*)

Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 http://epydoc.sf.net