Public Member Functions | Protected Attributes

OpenTissue::utility::Material Class Reference

#include <utility_material.h>

Inheritance diagram for OpenTissue::utility::Material:
OpenTissue::gl::Material

List of all members.

Public Member Functions

 Material ()
void ambient (float const &red, float const &green, float const &blue, float const &alpha=1.0f)
void diffuse (float const &red, float const &green, float const &blue, float const &alpha=1.0f)
void specular (float const &red, float const &green, float const &blue, float const &alpha=1.0f)
void shininess (float const &value)
void set_default ()

Protected Attributes

float m_ambient [4]
 The ambient color rgba.
float m_diffuse [4]
 The diffuse color rgba.
float m_specular [4]
 The specular color rgba.
float m_shininess
 The shininess of this material 0..180.

Detailed Description

A Material. This class encapsulates openGL material parameters.


Constructor & Destructor Documentation

OpenTissue::utility::Material::Material (  )  [inline]

Member Function Documentation

void OpenTissue::utility::Material::ambient ( float const &  red,
float const &  green,
float const &  blue,
float const &  alpha = 1.0f 
) [inline]
void OpenTissue::utility::Material::diffuse ( float const &  red,
float const &  green,
float const &  blue,
float const &  alpha = 1.0f 
) [inline]
void OpenTissue::utility::Material::set_default (  )  [inline]
void OpenTissue::utility::Material::shininess ( float const &  value  )  [inline]
void OpenTissue::utility::Material::specular ( float const &  red,
float const &  green,
float const &  blue,
float const &  alpha = 1.0f 
) [inline]

Member Data Documentation

The ambient color rgba.

The diffuse color rgba.

The shininess of this material 0..180.

The specular color rgba.


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