ClanLib  2.3.7
Public Member Functions | List of all members
CL_Material_GL1 Class Reference

Material description. More...

#include <material.h>

Public Member Functions

 CL_Material_GL1 ()
 Construction. More...
 
 ~CL_Material_GL1 ()
 
CL_Colorf get_ambient () const
 !Attributes More...
 
CL_Colorf get_diffuse () const
 Returns the diffuse (spread over wide area) intensity of the material. More...
 
CL_Colorf get_emission () const
 Returns the emission of the material. More...
 
float get_shininess () const
 Returns the shininess of the material. More...
 
CL_Colorf get_specular () const
 Returns the specular (mirror reflective) intensity of the material. More...
 
void set_ambient (const CL_Colorf &color)
 Operations. More...
 
void set_ambient_and_diffuse (const CL_Colorf &color)
 Set the combined ambient and diffuse intensity of the material. More...
 
void set_diffuse (const CL_Colorf &color)
 Set the diffuse (spread over wide area) intensity of the material. More...
 
void set_emission (const CL_Colorf &color)
 Set the emission of the material. More...
 
void set_shininess (float value)
 Set the shininess of the material. More...
 
void set_specular (const CL_Colorf &color)
 Set the specular (mirror reflective) intensity of the material. More...
 

Detailed Description

Material description.

Constructor & Destructor Documentation

CL_Material_GL1::CL_Material_GL1 ( )

Construction.

Constructs a material.*/

CL_Material_GL1::~CL_Material_GL1 ( )

Member Function Documentation

CL_Colorf CL_Material_GL1::get_ambient ( ) const

!Attributes

Returns the ambient intensity of the material.

CL_Colorf CL_Material_GL1::get_diffuse ( ) const

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

CL_Colorf CL_Material_GL1::get_emission ( ) const

Returns the emission of the material.

float CL_Material_GL1::get_shininess ( ) const

Returns the shininess of the material.

CL_Colorf CL_Material_GL1::get_specular ( ) const

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

void CL_Material_GL1::set_ambient ( const CL_Colorf color)

Operations.

Set the ambient intensity of the material.

void CL_Material_GL1::set_ambient_and_diffuse ( const CL_Colorf color)

Set the combined ambient and diffuse intensity of the material.

void CL_Material_GL1::set_diffuse ( const CL_Colorf color)

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

void CL_Material_GL1::set_emission ( const CL_Colorf color)

Set the emission of the material.

void CL_Material_GL1::set_shininess ( float  value)

Set the shininess of the material.

void CL_Material_GL1::set_specular ( const CL_Colorf color)

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


The documentation for this class was generated from the following file: