CMSC23700 Common Code Library
Support code for CS23700 programming projects
OBJ::Material Struct Reference

Structure that defines a material in a model. More...

#include <obj.hxx>

Public Attributes

std::string name
 name of material More...
 
int illum
 illumination mode (NoLight, etc.) More...
 
cs237::color3f ambient
 ambient component More...
 
cs237::color3f diffuse
 diffuse component More...
 
cs237::color3f specular
 specular component More...
 
float shininess
 specular exponent More...
 
std::string ambientMap
 optional texture map for ambient More...
 
std::string diffuseMap
 optional texture map for diffuse lighting More...
 
std::string specularMap
 optional texture map for specular highlights More...
 
std::string normalMap
 optional normal map for bump mapping More...
 

Detailed Description

Structure that defines a material in a model.

Member Data Documentation

cs237::color3f OBJ::Material::ambient

ambient component

std::string OBJ::Material::ambientMap

optional texture map for ambient

cs237::color3f OBJ::Material::diffuse

diffuse component

std::string OBJ::Material::diffuseMap

optional texture map for diffuse lighting

int OBJ::Material::illum

illumination mode (NoLight, etc.)

std::string OBJ::Material::name

name of material

std::string OBJ::Material::normalMap

optional normal map for bump mapping

float OBJ::Material::shininess

specular exponent

cs237::color3f OBJ::Material::specular

specular component

std::string OBJ::Material::specularMap

optional texture map for specular highlights


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