OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Model3D::Material Class Reference

#include <model3d.h>

Public Member Functions

 Material ()
 
 ~Material ()
 

Public Attributes

floatm_ambient
 4D Ambient color of the material More...
 
floatm_diffuse
 4D Diffuse color of the material More...
 
floatm_specular
 4D Specular color of the material More...
 
floatm_emmision
 4D Emissive color of the material More...
 
floatm_shine
 Shine exponent of the material. More...
 
floatm_transparency
 Transparency of the material. More...
 

Detailed Description

Objects of Material class contains material definitions A model can have zero or more materials if one or more materials are available then the third component of the first texture coordinates will contain the material id. all the materials available in the model can be sent as a uniform buffer object to the shaders indexed by the material id.

Definition at line 55 of file model3d.h.

Constructor & Destructor Documentation

Model3D::Material::Material ( )

Default constructor sets all pointers to NULL

Definition at line 73 of file model3d.cpp.

Model3D::Material::~Material ( )

Default destructor sets all pointers to NULL

Definition at line 83 of file model3d.cpp.

Member Data Documentation

float* Model3D::Material::m_ambient

4D Ambient color of the material

Definition at line 68 of file model3d.h.

float* Model3D::Material::m_diffuse

4D Diffuse color of the material

Definition at line 69 of file model3d.h.

float* Model3D::Material::m_emmision

4D Emissive color of the material

Definition at line 71 of file model3d.h.

float* Model3D::Material::m_shine

Shine exponent of the material.

Definition at line 72 of file model3d.h.

float* Model3D::Material::m_specular

4D Specular color of the material

Definition at line 70 of file model3d.h.

float* Model3D::Material::m_transparency

Transparency of the material.

Definition at line 73 of file model3d.h.


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