Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Mesh::Material Class Reference

#include <mesh.h>

Collaboration diagram for Mesh::Material:

Collaboration graph
List of all members.

Public Member Functions

 Material ()

Public Attributes

Color diffuse
Color emissive
ResourceHandle maps [TextureSemanticMax]
float opacity
Color specular
float specularPower

Constructor & Destructor Documentation

Mesh::Material::Material  ) 
 

Definition at line 48 of file mesh.cpp.

References InvalidResource, and maps.

00048                        :
00049     diffuse(0.0f, 0.0f, 0.0f),
00050     emissive(0.0f, 0.0f, 0.0f),
00051     specular(0.0f, 0.0f, 0.0f),
00052     specularPower(1.0f),
00053     opacity(1.0f)
00054 {
00055     for (int i = 0; i < TextureSemanticMax; i++)
00056         maps[i] = InvalidResource;
00057         
00058 }


Member Data Documentation

Color Mesh::Material::diffuse
 

Definition at line 120 of file mesh.h.

Referenced by Convert3DSMesh(), Convert3DSModel(), BinaryModelLoader::loadMaterial(), and AsciiModelLoader::loadMaterial().

Color Mesh::Material::emissive
 

Definition at line 121 of file mesh.h.

Referenced by BinaryModelLoader::loadMaterial(), and AsciiModelLoader::loadMaterial().

ResourceHandle Mesh::Material::maps[TextureSemanticMax]
 

Definition at line 125 of file mesh.h.

Referenced by Convert3DSMesh(), Convert3DSModel(), RenderContext::drawGroup(), BinaryModelLoader::loadMaterial(), AsciiModelLoader::loadMaterial(), Material(), and RenderContext::setMaterial().

float Mesh::Material::opacity
 

Definition at line 124 of file mesh.h.

Referenced by Convert3DSMesh(), Convert3DSModel(), Model::OpacityComparator::getOpacity(), BinaryModelLoader::loadMaterial(), and AsciiModelLoader::loadMaterial().

Color Mesh::Material::specular
 

Definition at line 122 of file mesh.h.

Referenced by Convert3DSMesh(), Convert3DSModel(), BinaryModelLoader::loadMaterial(), and AsciiModelLoader::loadMaterial().

float Mesh::Material::specularPower
 

Definition at line 123 of file mesh.h.

Referenced by Convert3DSMesh(), Convert3DSModel(), BinaryModelLoader::loadMaterial(), and AsciiModelLoader::loadMaterial().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:27 2006 for Celestia by  doxygen 1.4.1