Home | All Classes | Grouped Classes | Index | Search

Class CL_Material

glMaterial container. More...

Derived from: none
Derived by: none
Group: GL (Display 3D)

#include <ClanLib/gl.h>

Construction:

CL_Material

Constructs a material.

Attributes:

get_ambient

Returns the ambient intensity of the material.

get_diffuse

Returns the diffuse (spread over wide area) intensity of the material.

get_specular

Returns the specular (mirror reflective) intensity of the material.

get_ambient_and_diffuse

Returns the combined ambient and diffuse intensity of the material.

get_emission

Returns the emission of the material.

get_shininess

Returns the shininess of the material.

Operations:

set_ambient

Set the ambient intensity of the material.

set_diffuse

Set the diffuse (spread over wide area) intensity of the material.

set_specular

Set the specular (mirror reflective) intensity of the material.

set_ambient_and_diffuse

Set the combined ambient and diffuse intensity of the material.

set_emission

Set the emission of the material.

set_shininess

Set the shininess of the material.

setup_material

Send the material configuration to OpenGL.

Detailed description:



Questions or comments, write to the
ClanLib mailing list.