Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Materials::Material Class Reference

Surface rendering and lighting properties and textures. More...

#include <Material.h>

Inheritance diagram for Teddy::Materials::Material:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Materials::Material:

Collaboration graph
[legend]
List of all members.

Public Methods

 Material (const Material &material)
 Copyconstructor. More...

 Material (const Material &material, Uint8 lighting)
 Copyconstructor with lighting mode change. More...

 Material (const std::string &name)
 Constructor with name. More...

 Material (const std::string &name, Uint8 mode, Uint8 lighting, unsigned long options)
 Constructor with name, lighting and shading modes. More...

 Material (const std::string &name, Color color)
 Constructor with name and ambient/diffuse color. More...

 Material (Color color)
 Constructor with ambient/diffuse color. More...

 Material (const std::string &name, const unsigned long options)
 Constructor with name and options. More...

virtual ~Material ()
 Destructor. More...

void copy (const Material &from)
void applyAmbient (Uint8 lighting)
 FIX. More...

void applyDiffuse (Uint8 lighting)
 FIX. More...

void applySpecular (Uint8 lighting)
 FIX. More...

void applyEmission (Uint8 lighting)
 FIX. More...

void applyShinyness (Uint8 lighting)
 FIX. More...

void applyBorder (Uint8 lighting)
 FIX. More...

virtual void setMode (Uint8 mode)
 Set Render mode. More...

virtual Uint8 getMode () const
 Get Render mode. More...

virtual void setLighting (Uint8 lighting)
 Set Render Lighting mode. More...

virtual Uint8 getLighting () const
 Get Render Lighting mode. More...

virtual void setEmission (const Color &e)
 Set Material emission component. More...

virtual Color getEmission () const
 Get Material emission component. More...

virtual void setAmbient (const Color &a)
 Set Material ambient component. More...

virtual Color getAmbient () const
 Get Material ambient component. More...

virtual void setDiffuse (const Color &d)
 Set diffuse component. More...

virtual Color getDiffuse () const
 Get Material diffuse component. More...

virtual void setSpecular (const Color &s)
 Set Material specular component. More...

virtual Color getSpecular () const
 Get Material specular component. More...

virtual void setShininess (float s)
 Set Material shininess. More...

virtual float getShininess () const
 Get shininess. More...

virtual void setBorder (const Color &s)
 Set Material border component. More...

virtual Color getBorder () const
 Get Material border component. More...

virtual void setPolygonOffset (const int offset)
virtual int getPolygonOffset () const
virtual void setMaxSmoothingAngle (const float angle)
virtual float getMaxSmoothingAngle () const
virtual Texture * getTexture ()
 Get Material Texture. More...

virtual void setTexture (Texture *t, bool enable=false)
 Set Material Texture. More...

 Material (const Material &material)
 Material (const Material &material, Uint8 lighting)
 Material (const std::string &name)
 Material (const std::string &name, Uint8 mode, Uint8 lighting, unsigned long options)
 Material (const std::string &name, Color color)
 Material (Color color)
 Material (const std::string &name, const unsigned long options)
virtual ~Material ()
void applyAmbient (Uint8 lighting)
void applyDiffuse (Uint8 lighting)
void applySpecular (Uint8 lighting)
void applyEmission (Uint8 lighting)
void applyShinyness (Uint8 lighting)
void applyBorder (Uint8 lighting)
virtual void setMode (Uint8 mode)
virtual Uint8 getMode () const
virtual void setLighting (Uint8 lighting)
virtual Uint8 getLighting () const
virtual void setEmission (const Color &e)
virtual Color getEmission () const
virtual void setAmbient (const Color &a)
virtual Color getAmbient () const
virtual void setDiffuse (const Color &d)
virtual Color getDiffuse () const
virtual void setSpecular (const Color &s)
virtual Color getSpecular () const
virtual void setShininess (float s)
virtual float getShininess () const
virtual void setBorder (const Color &s)
virtual Color getBorder () const
virtual void setPolygonOffset (const int offset)
virtual int getPolygonOffset () const
virtual void setMaxSmoothingAngle (const float angle)
virtual float getMaxSmoothingAngle () const
virtual Texture * getTexture ()
virtual void setTexture (Texture *t, bool enable=false)

Static Public Methods

char * render_option_to_str (int a)
void init ()
int getFeature (int a)

Static Public Attributes

const unsigned long RENDER_MODE_POINT = 0x01
const unsigned long RENDER_MODE_LINE = 0x02
const unsigned long RENDER_MODE_FILL = 0x03
const unsigned long RENDER_MODE_FILL_OUTLINE = 0x04
const unsigned long RENDER_LIGHTING_COLOR = 0x01
const unsigned long RENDER_LIGHTING_CUSTOM = 0x02
const unsigned long RENDER_LIGHTING_PRIMARY_LIGHT_ONLY = 0x03
const unsigned long RENDER_LIGHTING_SIMPLE = 0x04
const unsigned long RENDER_LIGHTING_FULL = 0x05
const unsigned long RENDER_OPTION_RESERVED = 0l
const unsigned long RENDER_OPTION_SMOOTH = 1l
const unsigned long RENDER_OPTION_CULL_FACE = 2l
const unsigned long RENDER_OPTION_BLEND = 3l
const unsigned long RENDER_OPTION_FOG = 4l
const unsigned long RENDER_OPTION_NORMALIZE = 5l
const unsigned long RENDER_OPTION_ALPHA_TEST = 6l
const unsigned long RENDER_OPTION_DEPTH_TEST = 7l
const unsigned long RENDER_OPTION_STENCIL_TEST = 8l
const unsigned long RENDER_OPTION_SCISSOR_TEST = 9l
const unsigned long RENDER_OPTION_TEXTURE_1D = 10l
const unsigned long RENDER_OPTION_TEXTURE_2D = 11l
const unsigned long RENDER_OPTION_TEXTURE_3D = 12l
const unsigned long RENDER_OPTION_POINT_SMOOTH = 13l
const unsigned long RENDER_OPTION_LINE_SMOOTH = 14l
const unsigned long RENDER_OPTION_POLYGON_SMOOTH = 15l
const unsigned long RENDER_OPTION_AMBIENT = 16l
const unsigned long RENDER_OPTION_DIFFUSE = 17l
const unsigned long RENDER_OPTION_SPECULAR = 18l
const unsigned long RENDER_OPTION_EMISSION = 19l
const unsigned long RENDER_OPTION_SHINYNESS = 20l
const unsigned long RENDER_OPTION_BORDER = 21l
const unsigned long RENDER_OPTION_REMOVE_HIDDEN = 22l
const unsigned long RENDER_OPTION_FRUSTUM_CULL = 23l
const unsigned long RENDER_OPTION_SORT_OBJECTS = 24l
const unsigned long RENDER_OPTION_SORT_ELEMENTS = 25l
const unsigned long RENDER_OPTION_COLOR_MATERIAL = 26l
const unsigned long RENDER_OPTION_MASTER_LIGHTING_ONLY = 27l
const unsigned long RENDER_OPTION_RESERVED_M = (1l<<RENDER_OPTION_RESERVED )
const unsigned long RENDER_OPTION_SMOOTH_M = (1l<<RENDER_OPTION_SMOOTH )
const unsigned long RENDER_OPTION_CULL_FACE_M = (1l<<RENDER_OPTION_CULL_FACE )
const unsigned long RENDER_OPTION_BLEND_M = (1l<<RENDER_OPTION_BLEND )
const unsigned long RENDER_OPTION_FOG_M = (1l<<RENDER_OPTION_FOG )
const unsigned long RENDER_OPTION_NORMALIZE_M = (1l<<RENDER_OPTION_NORMALIZE )
const unsigned long RENDER_OPTION_ALPHA_TEST_M = (1l<<RENDER_OPTION_ALPHA_TEST )
const unsigned long RENDER_OPTION_DEPTH_TEST_M = (1l<<RENDER_OPTION_DEPTH_TEST )
const unsigned long RENDER_OPTION_STENCIL_TEST_M = (1l<<RENDER_OPTION_STENCIL_TEST )
const unsigned long RENDER_OPTION_SCISSOR_TEST_M = (1l<<RENDER_OPTION_SCISSOR_TEST )
const unsigned long RENDER_OPTION_TEXTURE_1D_M = (1l<<RENDER_OPTION_TEXTURE_1D )
const unsigned long RENDER_OPTION_TEXTURE_2D_M = (1l<<RENDER_OPTION_TEXTURE_2D )
const unsigned long RENDER_OPTION_TEXTURE_3D_M = (1l<<RENDER_OPTION_TEXTURE_3D )
const unsigned long RENDER_OPTION_POINT_SMOOTH_M = (1l<<RENDER_OPTION_POINT_SMOOTH )
const unsigned long RENDER_OPTION_LINE_SMOOTH_M = (1l<<RENDER_OPTION_LINE_SMOOTH )
const unsigned long RENDER_OPTION_POLYGON_SMOOTH_M = (1l<<RENDER_OPTION_POLYGON_SMOOTH )
const unsigned long RENDER_OPTION_AMBIENT_M = (1l<<RENDER_OPTION_AMBIENT )
const unsigned long RENDER_OPTION_DIFFUSE_M = (1l<<RENDER_OPTION_DIFFUSE )
const unsigned long RENDER_OPTION_SPECULAR_M = (1l<<RENDER_OPTION_SPECULAR )
const unsigned long RENDER_OPTION_EMISSION_M = (1l<<RENDER_OPTION_EMISSION )
const unsigned long RENDER_OPTION_SHINYNESS_M = (1l<<RENDER_OPTION_SHINYNESS )
const unsigned long RENDER_OPTION_BORDER_M = (1l<<RENDER_OPTION_BORDER )
const unsigned long RENDER_OPTION_REMOVE_HIDDEN_M = (1l<<RENDER_OPTION_REMOVE_HIDDEN )
const unsigned long RENDER_OPTION_FRUSTUM_CULL_M = (1l<<RENDER_OPTION_FRUSTUM_CULL )
const unsigned long RENDER_OPTION_SORT_OBJECTS_M = (1l<<RENDER_OPTION_SORT_OBJECTS )
const unsigned long RENDER_OPTION_SORT_ELEMENTS_M = (1l<<RENDER_OPTION_SORT_ELEMENTS )
const unsigned long RENDER_OPTION_COLOR_MATERIAL_M = (1l<<RENDER_OPTION_COLOR_MATERIAL )
const unsigned long RENDER_OPTION_MASTER_LIGHTING_ONLY_M = (1l<<RENDER_OPTION_MASTER_LIGHTING_ONLY )
const unsigned long RENDER_MODE_DEFAULT = Material::RENDER_MODE_FILL_OUTLINE
const unsigned long RENDER_LIGHTING_DEFAULT = Material::RENDER_LIGHTING_SIMPLE
const unsigned long RENDER_OPTION_DEFAULT_M
const unsigned long RENDER_OPTION_ALL_M
Material BLACK = Material( "Default Black Material", Color(C_BLACK ) )
Material GRAY_25 = Material( "Default Gray 25 Material", Color(C_GRAY_25 ) )
Material GRAY_50 = Material( "Default Gray 50 Material", Color(C_GRAY_50 ) )
Material GRAY_75 = Material( "Default Gray 75 Material", Color(C_GRAY_75 ) )
Material WHITE = Material( "Default White Material", Color(C_WHITE ) )
Material RED = Material( "Default Red Material", Color(C_RED ) )
Material YELLOW = Material( "Default Yellow Material", Color(C_YELLOW ) )
Material ORANGE = Material( "Default Orange Material", Color(C_ORANGE ) )
Material GREEN = Material( "Default Green Material", Color(C_GREEN ) )
Material CYAN = Material( "Default Cyan Material", Color(C_CYAN ) )
Material BLUE = Material( "Default Blue Material", Color(C_BLUE ) )
Material MAGENTA = Material( "Default Magenta Material", Color(C_MAGENTA ) )
Material DARK_ORANGE = Material( "Default Dark Orange Material", Color(C_DARK_ORANGE ) )
Material DARK_RED = Material( "Default Dark Red Material", Color(C_DARK_RED ) )
Material DARK_YELLOW = Material( "Default Dark Yellow Material", Color(C_DARK_YELLOW ) )
Material DARK_GREEN = Material( "Default Dark Green Material", Color(C_DARK_GREEN ) )
Material DARK_CYAN = Material( "Default Dark Cyan Material", Color(C_DARK_CYAN ) )
Material DARK_BLUE = Material( "Default Dark Blue Material", Color(C_DARK_BLUE ) )
Material DARK_MAGENTA = Material( "Default Dark Magenta Material", Color(C_DARK_MAGENTA ) )
Material LIGHT_ORANGE = Material( "Default Light Orange Material", Color(C_LIGHT_ORANGE ) )
Material LIGHT_RED = Material( "Default Light Red Material", Color(C_LIGHT_RED ) )
Material LIGHT_YELLOW = Material( "Default Light Yellow Material", Color(C_LIGHT_YELLOW ) )
Material LIGHT_GREEN = Material( "Default Light Green Material", Color(C_LIGHT_GREEN ) )
Material LIGHT_CYAN = Material( "Default Light Cyan Material", Color(C_LIGHT_CYAN ) )
Material LIGHT_BLUE = Material( "Default Light Blue Material", Color(C_LIGHT_BLUE ) )
Material LIGHT_MAGENTA = Material( "Default Light Magenta Material", Color(C_LIGHT_MAGENTA ) )

Protected Attributes

Texture * texture
Uint8 render_mode
Uint8 render_lighting
float shininess
Color ambient
Color diffuse
Color specular
Color emission
Color border
int polygon_offset
float max_smoothing_angle
Texture * texture

Static Private Attributes

int mode_to_feature [32]

Detailed Description

Surface rendering and lighting properties and textures.

Bug:
Destructors missing
Todo:
Front face (sidedness)

Textures

Multiple Materials with weighting

Blending

Fog

Definition at line 57 of file Material.h.


Constructor & Destructor Documentation

Teddy::Materials::Material::Material const Material &    material
 

Copyconstructor.

Definition at line 325 of file Material.cpp.

References ambient, border, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, render_mode, shininess, specular, and texture.

Teddy::Materials::Material::Material const Material &    material,
Uint8    lighting
 

Copyconstructor with lighting mode change.

Definition at line 345 of file Material.cpp.

References ambient, border, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, render_mode, shininess, specular, and texture.

Teddy::Materials::Material::Material const std::string &    name
 

Constructor with name.

Definition at line 252 of file Material.cpp.

References ambient, C_BLACK, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, RENDER_LIGHTING_SIMPLE, render_mode, RENDER_MODE_FILL, shininess, specular, and texture.

Teddy::Materials::Material::Material const std::string &    name,
Uint8    mode,
Uint8    lighting,
unsigned long    options
 

Constructor with name, lighting and shading modes.

Definition at line 305 of file Material.cpp.

References C_BLACK, and C_GRAY_50.

Teddy::Materials::Material::Material const std::string &    name,
Color    color
 

Constructor with name and ambient/diffuse color.

Definition at line 365 of file Material.cpp.

References ambient, border, C_BLACK, C_GRAY_75, C_WHITE, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, RENDER_LIGHTING_SIMPLE, render_mode, RENDER_MODE_FILL, shininess, specular, and texture.

Teddy::Materials::Material::Material Color    color
 

Constructor with ambient/diffuse color.

Definition at line 395 of file Material.cpp.

References ambient, border, C_BLACK, C_GRAY_75, C_WHITE, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, RENDER_LIGHTING_SIMPLE, render_mode, RENDER_MODE_FILL, shininess, specular, and texture.

Teddy::Materials::Material::Material const std::string &    name,
const unsigned long    options
 

Constructor with name and options.

Definition at line 270 of file Material.cpp.

References ambient, C_BLACK, diffuse, emission, max_smoothing_angle, polygon_offset, render_lighting, RENDER_LIGHTING_SIMPLE, render_mode, RENDER_MODE_FILL, shininess, specular, and texture.

Teddy::Materials::Material::~Material   [virtual]
 

Destructor.

Definition at line 425 of file Material.cpp.

Teddy::Materials::Material::Material const Material &    material
 

Teddy::Materials::Material::Material const Material &    material,
Uint8    lighting
 

Teddy::Materials::Material::Material const std::string &    name
 

Teddy::Materials::Material::Material const std::string &    name,
Uint8    mode,
Uint8    lighting,
unsigned long    options
 

Teddy::Materials::Material::Material const std::string &    name,
Color    color
 

Teddy::Materials::Material::Material Color    color
 

Teddy::Materials::Material::Material const std::string &    name,
const unsigned long    options
 

virtual Teddy::Materials::Material::~Material   [virtual]
 


Member Function Documentation

void Teddy::Materials::Material::applyAmbient Uint8    lighting
 

void Teddy::Materials::Material::applyAmbient Uint8    lighting
 

FIX.

Definition at line 430 of file Material.cpp.

References ambient, RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, and RENDER_LIGHTING_SIMPLE.

void Teddy::Materials::Material::applyBorder Uint8    lighting
 

void Teddy::Materials::Material::applyBorder Uint8    lighting
 

FIX.

Definition at line 525 of file Material.cpp.

References border, RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, and RENDER_LIGHTING_SIMPLE.

void Teddy::Materials::Material::applyDiffuse Uint8    lighting
 

void Teddy::Materials::Material::applyDiffuse Uint8    lighting
 

FIX.

Definition at line 453 of file Material.cpp.

References diffuse, RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, and RENDER_LIGHTING_SIMPLE.

void Teddy::Materials::Material::applyEmission Uint8    lighting
 

void Teddy::Materials::Material::applyEmission Uint8    lighting
 

FIX.

Definition at line 502 of file Material.cpp.

References emission, RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, and RENDER_LIGHTING_SIMPLE.

void Teddy::Materials::Material::applyShinyness Uint8    lighting
 

void Teddy::Materials::Material::applyShinyness Uint8    lighting
 

FIX.

Definition at line 549 of file Material.cpp.

References RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, RENDER_LIGHTING_SIMPLE, and shininess.

void Teddy::Materials::Material::applySpecular Uint8    lighting
 

void Teddy::Materials::Material::applySpecular Uint8    lighting
 

FIX.

Definition at line 479 of file Material.cpp.

References RENDER_LIGHTING_COLOR, RENDER_LIGHTING_CUSTOM, RENDER_LIGHTING_FULL, RENDER_LIGHTING_PRIMARY_LIGHT_ONLY, RENDER_LIGHTING_SIMPLE, and specular.

void Teddy::Materials::Material::copy const Material &    from
 

Definition at line 287 of file Material.cpp.

References ambient, border, diffuse, emission, max_smoothing_angle, Teddy::MixIn::Options::options, polygon_offset, render_lighting, render_mode, shininess, specular, and texture.

virtual Color Teddy::Materials::Material::getAmbient   const [virtual]
 

Color Teddy::Materials::Material::getAmbient   const [virtual]
 

Get Material ambient component.

Definition at line 614 of file Material.cpp.

References ambient.

virtual Color Teddy::Materials::Material::getBorder   const [virtual]
 

Color Teddy::Materials::Material::getBorder   const [virtual]
 

Get Material border component.

Definition at line 650 of file Material.cpp.

References border.

virtual Color Teddy::Materials::Material::getDiffuse   const [virtual]
 

Color Teddy::Materials::Material::getDiffuse   const [virtual]
 

Get Material diffuse component.

Definition at line 626 of file Material.cpp.

References diffuse.

virtual Color Teddy::Materials::Material::getEmission   const [virtual]
 

Color Teddy::Materials::Material::getEmission   const [virtual]
 

Get Material emission component.

Definition at line 602 of file Material.cpp.

References emission.

int Teddy::Materials::Material::getFeature int    a [static]
 

Definition at line 213 of file Material.cpp.

References mode_to_feature.

virtual Uint8 Teddy::Materials::Material::getLighting   const [virtual]
 

Uint8 Teddy::Materials::Material::getLighting   const [virtual]
 

Get Render Lighting mode.

Definition at line 590 of file Material.cpp.

References render_lighting.

virtual float Teddy::Materials::Material::getMaxSmoothingAngle   const [virtual]
 

float Teddy::Materials::Material::getMaxSmoothingAngle   const [virtual]
 

Definition at line 697 of file Material.cpp.

References max_smoothing_angle.

virtual Uint8 Teddy::Materials::Material::getMode   const [virtual]
 

Uint8 Teddy::Materials::Material::getMode   const [virtual]
 

Get Render mode.

Definition at line 578 of file Material.cpp.

References render_mode.

virtual int Teddy::Materials::Material::getPolygonOffset   const [virtual]
 

int Teddy::Materials::Material::getPolygonOffset   const [virtual]
 

Definition at line 687 of file Material.cpp.

References polygon_offset.

virtual float Teddy::Materials::Material::getShininess   const [virtual]
 

float Teddy::Materials::Material::getShininess   const [virtual]
 

Get shininess.

Definition at line 677 of file Material.cpp.

References shininess.

virtual Color Teddy::Materials::Material::getSpecular   const [virtual]
 

Color Teddy::Materials::Material::getSpecular   const [virtual]
 

Get Material specular component.

Definition at line 638 of file Material.cpp.

References specular.

virtual Texture* Teddy::Materials::Material::getTexture   [virtual]
 

Texture * Teddy::Materials::Material::getTexture   [virtual]
 

Get Material Texture.

Definition at line 656 of file Material.cpp.

References texture.

void Teddy::Materials::Material::init   [static]
 

Definition at line 182 of file Material.cpp.

References Teddy::SysSupport::dmsg, Teddy::SysSupport::M_INIT, mode_to_feature, RENDER_OPTION_ALPHA_TEST, RENDER_OPTION_AMBIENT, RENDER_OPTION_BLEND, RENDER_OPTION_BORDER, RENDER_OPTION_COLOR_MATERIAL, RENDER_OPTION_CULL_FACE, RENDER_OPTION_DEPTH_TEST, RENDER_OPTION_DIFFUSE, RENDER_OPTION_EMISSION, RENDER_OPTION_FOG, RENDER_OPTION_FRUSTUM_CULL, RENDER_OPTION_LINE_SMOOTH, RENDER_OPTION_NORMALIZE, RENDER_OPTION_POINT_SMOOTH, RENDER_OPTION_POLYGON_SMOOTH, RENDER_OPTION_REMOVE_HIDDEN, RENDER_OPTION_RESERVED, RENDER_OPTION_SCISSOR_TEST, RENDER_OPTION_SHINYNESS, RENDER_OPTION_SMOOTH, RENDER_OPTION_SORT_ELEMENTS, RENDER_OPTION_SORT_OBJECTS, RENDER_OPTION_SPECULAR, RENDER_OPTION_STENCIL_TEST, RENDER_OPTION_TEXTURE_1D, RENDER_OPTION_TEXTURE_2D, and RENDER_OPTION_TEXTURE_3D.

Referenced by Teddy::Application::BaseRoot::start.

char * Teddy::Materials::Material::render_option_to_str int    a [static]
 

Definition at line 147 of file Material.cpp.

References RENDER_OPTION_ALPHA_TEST, RENDER_OPTION_AMBIENT, RENDER_OPTION_BLEND, RENDER_OPTION_BORDER, RENDER_OPTION_COLOR_MATERIAL, RENDER_OPTION_CULL_FACE, RENDER_OPTION_DEPTH_TEST, RENDER_OPTION_DIFFUSE, RENDER_OPTION_EMISSION, RENDER_OPTION_FOG, RENDER_OPTION_FRUSTUM_CULL, RENDER_OPTION_LINE_SMOOTH, RENDER_OPTION_NORMALIZE, RENDER_OPTION_POINT_SMOOTH, RENDER_OPTION_POLYGON_SMOOTH, RENDER_OPTION_REMOVE_HIDDEN, RENDER_OPTION_RESERVED, RENDER_OPTION_SCISSOR_TEST, RENDER_OPTION_SHINYNESS, RENDER_OPTION_SMOOTH, RENDER_OPTION_SORT_ELEMENTS, RENDER_OPTION_SORT_OBJECTS, RENDER_OPTION_SPECULAR, RENDER_OPTION_STENCIL_TEST, RENDER_OPTION_TEXTURE_1D, RENDER_OPTION_TEXTURE_2D, and RENDER_OPTION_TEXTURE_3D.

virtual void Teddy::Materials::Material::setAmbient const Color &    a [virtual]
 

void Teddy::Materials::Material::setAmbient const Color &    a [virtual]
 

Set Material ambient component.

Definition at line 608 of file Material.cpp.

References ambient.

Referenced by Teddy::Imports::LWSurface::LWSurface.

virtual void Teddy::Materials::Material::setBorder const Color &    s [virtual]
 

void Teddy::Materials::Material::setBorder const Color &    s [virtual]
 

Set Material border component.

Definition at line 644 of file Material.cpp.

References border.

Referenced by Teddy::Imports::LWSurface::LWSurface.

virtual void Teddy::Materials::Material::setDiffuse const Color &    d [virtual]
 

void Teddy::Materials::Material::setDiffuse const Color &    d [virtual]
 

Set diffuse component.

Definition at line 620 of file Material.cpp.

References diffuse.

Referenced by Teddy::Imports::LWSurface::LWSurface.

virtual void Teddy::Materials::Material::setEmission const Color &    e [virtual]
 

void Teddy::Materials::Material::setEmission const Color &    e [virtual]
 

Set Material emission component.

Definition at line 596 of file Material.cpp.

References emission.

Referenced by Teddy::Imports::LWSurface::LWSurface.

virtual void Teddy::Materials::Material::setLighting Uint8    lighting [virtual]
 

void Teddy::Materials::Material::setLighting Uint8    lighting [virtual]
 

Set Render Lighting mode.

Definition at line 584 of file Material.cpp.

References render_lighting.

virtual void Teddy::Materials::Material::setMaxSmoothingAngle const float    angle [virtual]
 

void Teddy::Materials::Material::setMaxSmoothingAngle const float    angle [virtual]
 

Definition at line 692 of file Material.cpp.

References max_smoothing_angle.

virtual void Teddy::Materials::Material::setMode Uint8    mode [virtual]
 

void Teddy::Materials::Material::setMode Uint8    mode [virtual]
 

Set Render mode.

Definition at line 572 of file Material.cpp.

References render_mode.

virtual void Teddy::Materials::Material::setPolygonOffset const int    offset [virtual]
 

void Teddy::Materials::Material::setPolygonOffset const int    offset [virtual]
 

Definition at line 682 of file Material.cpp.

References polygon_offset.

Referenced by Teddy::Imports::LWSurface::readComment_S0.

virtual void Teddy::Materials::Material::setShininess float    s [virtual]
 

void Teddy::Materials::Material::setShininess float    s [virtual]
 

Set Material shininess.

Definition at line 671 of file Material.cpp.

References shininess.

virtual void Teddy::Materials::Material::setSpecular const Color &    s [virtual]
 

void Teddy::Materials::Material::setSpecular const Color &    s [virtual]
 

Set Material specular component.

Definition at line 632 of file Material.cpp.

References specular.

Referenced by Teddy::Imports::LWSurface::LWSurface.

virtual void Teddy::Materials::Material::setTexture Texture *    t,
bool    enable = false
[virtual]
 

Reimplemented in Teddy::Imports::LWSurface.

void Teddy::Materials::Material::setTexture Texture *    t,
bool    enable = false
[virtual]
 

Set Material Texture.

Reimplemented in Teddy::Imports::LWSurface.

Definition at line 662 of file Material.cpp.

References Teddy::MixIn::Options::enable, RENDER_OPTION_TEXTURE_2D_M, and texture.


Member Data Documentation

Color Teddy::Materials::Material::ambient [protected]
 

Definition at line 104 of file MaterialOptions.h.

Referenced by applyAmbient, copy, getAmbient, Material, Teddy::Imports::LWSurface::readBaseColor_COL12_VX, Teddy::Imports::LWSurface::readBaseColor_COL4, Teddy::Imports::LWSurface::readDiffuse_FP4, Teddy::Imports::LWSurface::readDiffuse_FP4_VX, Teddy::Imports::LWSurface::readDiffuse_IP2, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_FP4_VX, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSurface::readSpecular_FP4, Teddy::Imports::LWSurface::readSpecular_FP4_VX, Teddy::Imports::LWSurface::readSpecular_IP2_4, setAmbient, and Teddy::Imports::LWSurface::useTextureColormap.

Material Teddy::Materials::Material::BLACK = Material( "Default Black Material", Color(C_BLACK ) ) [static]
 

Definition at line 113 of file MaterialOptions.h.

Material Teddy::Materials::Material::BLUE = Material( "Default Blue Material", Color(C_BLUE ) ) [static]
 

Definition at line 123 of file MaterialOptions.h.

Color Teddy::Materials::Material::border [protected]
 

Definition at line 108 of file MaterialOptions.h.

Referenced by applyBorder, copy, getBorder, Material, and setBorder.

Material Teddy::Materials::Material::CYAN = Material( "Default Cyan Material", Color(C_CYAN ) ) [static]
 

Definition at line 122 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_BLUE = Material( "Default Dark Blue Material", Color(C_DARK_BLUE ) ) [static]
 

Definition at line 130 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_CYAN = Material( "Default Dark Cyan Material", Color(C_DARK_CYAN ) ) [static]
 

Definition at line 129 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_GREEN = Material( "Default Dark Green Material", Color(C_DARK_GREEN ) ) [static]
 

Definition at line 128 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_MAGENTA = Material( "Default Dark Magenta Material", Color(C_DARK_MAGENTA ) ) [static]
 

Definition at line 131 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_ORANGE = Material( "Default Dark Orange Material", Color(C_DARK_ORANGE ) ) [static]
 

Definition at line 125 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_RED = Material( "Default Dark Red Material", Color(C_DARK_RED ) ) [static]
 

Definition at line 126 of file MaterialOptions.h.

Material Teddy::Materials::Material::DARK_YELLOW = Material( "Default Dark Yellow Material", Color(C_DARK_YELLOW ) ) [static]
 

Definition at line 127 of file MaterialOptions.h.

Color Teddy::Materials::Material::diffuse [protected]
 

Definition at line 105 of file MaterialOptions.h.

Referenced by applyDiffuse, copy, getDiffuse, Material, Teddy::Imports::LWSurface::readBaseColor_COL12_VX, Teddy::Imports::LWSurface::readBaseColor_COL4, Teddy::Imports::LWSurface::readDiffuse_FP4, Teddy::Imports::LWSurface::readDiffuse_FP4_VX, Teddy::Imports::LWSurface::readDiffuse_IP2, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_FP4_VX, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSurface::readSpecular_FP4, Teddy::Imports::LWSurface::readSpecular_FP4_VX, Teddy::Imports::LWSurface::readSpecular_IP2_4, setDiffuse, and Teddy::Imports::LWSurface::useTextureColormap.

Color Teddy::Materials::Material::emission [protected]
 

Definition at line 107 of file MaterialOptions.h.

Referenced by applyEmission, copy, getEmission, Material, Teddy::Imports::LWSurface::readBaseColor_COL12_VX, Teddy::Imports::LWSurface::readBaseColor_COL4, Teddy::Imports::LWSurface::readDiffuse_FP4, Teddy::Imports::LWSurface::readDiffuse_FP4_VX, Teddy::Imports::LWSurface::readDiffuse_IP2, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_FP4_VX, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSurface::readSpecular_FP4, Teddy::Imports::LWSurface::readSpecular_FP4_VX, Teddy::Imports::LWSurface::readSpecular_IP2_4, setEmission, and Teddy::Imports::LWSurface::useTextureColormap.

Material Teddy::Materials::Material::GRAY_25 = Material( "Default Gray 25 Material", Color(C_GRAY_25 ) ) [static]
 

Definition at line 114 of file MaterialOptions.h.

Material Teddy::Materials::Material::GRAY_50 = Material( "Default Gray 50 Material", Color(C_GRAY_50 ) ) [static]
 

Definition at line 115 of file MaterialOptions.h.

Material Teddy::Materials::Material::GRAY_75 = Material( "Default Gray 75 Material", Color(C_GRAY_75 ) ) [static]
 

Definition at line 116 of file MaterialOptions.h.

Material Teddy::Materials::Material::GREEN = Material( "Default Green Material", Color(C_GREEN ) ) [static]
 

Definition at line 121 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_BLUE = Material( "Default Light Blue Material", Color(C_LIGHT_BLUE ) ) [static]
 

Definition at line 137 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_CYAN = Material( "Default Light Cyan Material", Color(C_LIGHT_CYAN ) ) [static]
 

Definition at line 136 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_GREEN = Material( "Default Light Green Material", Color(C_LIGHT_GREEN ) ) [static]
 

Definition at line 135 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_MAGENTA = Material( "Default Light Magenta Material", Color(C_LIGHT_MAGENTA ) ) [static]
 

Definition at line 138 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_ORANGE = Material( "Default Light Orange Material", Color(C_LIGHT_ORANGE ) ) [static]
 

Definition at line 132 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_RED = Material( "Default Light Red Material", Color(C_LIGHT_RED ) ) [static]
 

Definition at line 133 of file MaterialOptions.h.

Material Teddy::Materials::Material::LIGHT_YELLOW = Material( "Default Light Yellow Material", Color(C_LIGHT_YELLOW ) ) [static]
 

Definition at line 134 of file MaterialOptions.h.

Material Teddy::Materials::Material::MAGENTA = Material( "Default Magenta Material", Color(C_MAGENTA ) ) [static]
 

Definition at line 124 of file MaterialOptions.h.

float Teddy::Materials::Material::max_smoothing_angle [protected]
 

Definition at line 110 of file MaterialOptions.h.

Referenced by copy, getMaxSmoothingAngle, Teddy::Imports::LWSurface::LWSurface, Material, Teddy::Imports::LWSurface::readMaxSmoothingAngle_ANG4, Teddy::Imports::LWSurface::readMaxSmoothingAngle_DEG4, and setMaxSmoothingAngle.

int Teddy::Materials::Material::mode_to_feature [static, private]
 

Definition at line 145 of file Material.cpp.

Referenced by getFeature, and init.

Material Teddy::Materials::Material::ORANGE = Material( "Default Orange Material", Color(C_ORANGE ) ) [static]
 

Definition at line 120 of file MaterialOptions.h.

int Teddy::Materials::Material::polygon_offset [protected]
 

Definition at line 109 of file MaterialOptions.h.

Referenced by copy, getPolygonOffset, Material, and setPolygonOffset.

Material Teddy::Materials::Material::RED = Material( "Default Red Material", Color(C_RED ) ) [static]
 

Definition at line 118 of file MaterialOptions.h.

Uint8 Teddy::Materials::Material::render_lighting [protected]
 

Definition at line 102 of file MaterialOptions.h.

Referenced by copy, getLighting, Material, and setLighting.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_COLOR = 0x01 [static]
 

Definition at line 44 of file Material.cpp.

Referenced by applyAmbient, applyBorder, applyDiffuse, applyEmission, applyShinyness, and applySpecular.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_CUSTOM = 0x02 [static]
 

Definition at line 45 of file Material.cpp.

Referenced by applyAmbient, applyBorder, applyDiffuse, applyEmission, applyShinyness, and applySpecular.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_DEFAULT = Material::RENDER_LIGHTING_SIMPLE [static]
 

Definition at line 110 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_FULL = 0x05 [static]
 

Definition at line 48 of file Material.cpp.

Referenced by applyAmbient, applyBorder, applyDiffuse, applyEmission, applyShinyness, and applySpecular.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_PRIMARY_LIGHT_ONLY = 0x03 [static]
 

Definition at line 46 of file Material.cpp.

Referenced by applyAmbient, applyBorder, applyDiffuse, applyEmission, applyShinyness, and applySpecular.

const unsigned long Teddy::Materials::Material::RENDER_LIGHTING_SIMPLE = 0x04 [static]
 

Definition at line 47 of file Material.cpp.

Referenced by applyAmbient, applyBorder, applyDiffuse, applyEmission, applyShinyness, applySpecular, and Material.

Uint8 Teddy::Materials::Material::render_mode [protected]
 

Definition at line 101 of file MaterialOptions.h.

Referenced by copy, getMode, Material, and setMode.

const unsigned long Teddy::Materials::Material::RENDER_MODE_DEFAULT = Material::RENDER_MODE_FILL_OUTLINE [static]
 

Definition at line 109 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_MODE_FILL = 0x03 [static]
 

Definition at line 41 of file Material.cpp.

Referenced by Material.

const unsigned long Teddy::Materials::Material::RENDER_MODE_FILL_OUTLINE = 0x04 [static]
 

Definition at line 42 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_MODE_LINE = 0x02 [static]
 

Definition at line 40 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_MODE_POINT = 0x01 [static]
 

Definition at line 39 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_ALL_M [static]
 

Initial value:

Definition at line 116 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_ALPHA_TEST = 6l [static]
 

Definition at line 56 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_ALPHA_TEST_M = (1l<<RENDER_OPTION_ALPHA_TEST ) [static]
 

Definition at line 85 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_AMBIENT = 16l [static]
 

Definition at line 66 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_AMBIENT_M = (1l<<RENDER_OPTION_AMBIENT ) [static]
 

Definition at line 95 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_BLEND = 3l [static]
 

Definition at line 53 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_BLEND_M = (1l<<RENDER_OPTION_BLEND ) [static]
 

Definition at line 82 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_BORDER = 21l [static]
 

Definition at line 71 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_BORDER_M = (1l<<RENDER_OPTION_BORDER ) [static]
 

Definition at line 100 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_COLOR_MATERIAL = 26l [static]
 

Definition at line 76 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_COLOR_MATERIAL_M = (1l<<RENDER_OPTION_COLOR_MATERIAL ) [static]
 

Definition at line 105 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_CULL_FACE = 2l [static]
 

Definition at line 52 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_CULL_FACE_M = (1l<<RENDER_OPTION_CULL_FACE ) [static]
 

Definition at line 81 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_DEFAULT_M [static]
 

Initial value:

Definition at line 111 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_DEPTH_TEST = 7l [static]
 

Definition at line 57 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_DEPTH_TEST_M = (1l<<RENDER_OPTION_DEPTH_TEST ) [static]
 

Definition at line 86 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_DIFFUSE = 17l [static]
 

Definition at line 67 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_DIFFUSE_M = (1l<<RENDER_OPTION_DIFFUSE ) [static]
 

Definition at line 96 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_EMISSION = 19l [static]
 

Definition at line 69 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_EMISSION_M = (1l<<RENDER_OPTION_EMISSION ) [static]
 

Definition at line 98 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_FOG = 4l [static]
 

Definition at line 54 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_FOG_M = (1l<<RENDER_OPTION_FOG ) [static]
 

Definition at line 83 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_FRUSTUM_CULL = 23l [static]
 

Definition at line 73 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_FRUSTUM_CULL_M = (1l<<RENDER_OPTION_FRUSTUM_CULL ) [static]
 

Definition at line 102 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_LINE_SMOOTH = 14l [static]
 

Definition at line 64 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_LINE_SMOOTH_M = (1l<<RENDER_OPTION_LINE_SMOOTH ) [static]
 

Definition at line 93 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_MASTER_LIGHTING_ONLY = 27l [static]
 

Definition at line 77 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_MASTER_LIGHTING_ONLY_M = (1l<<RENDER_OPTION_MASTER_LIGHTING_ONLY ) [static]
 

Definition at line 106 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_NORMALIZE = 5l [static]
 

Definition at line 55 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_NORMALIZE_M = (1l<<RENDER_OPTION_NORMALIZE ) [static]
 

Definition at line 84 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_POINT_SMOOTH = 13l [static]
 

Definition at line 63 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_POINT_SMOOTH_M = (1l<<RENDER_OPTION_POINT_SMOOTH ) [static]
 

Definition at line 92 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_POLYGON_SMOOTH = 15l [static]
 

Definition at line 65 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_POLYGON_SMOOTH_M = (1l<<RENDER_OPTION_POLYGON_SMOOTH ) [static]
 

Definition at line 94 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_REMOVE_HIDDEN = 22l [static]
 

Definition at line 72 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_REMOVE_HIDDEN_M = (1l<<RENDER_OPTION_REMOVE_HIDDEN ) [static]
 

Definition at line 101 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_RESERVED = 0l [static]
 

Definition at line 50 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_RESERVED_M = (1l<<RENDER_OPTION_RESERVED ) [static]
 

Definition at line 79 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SCISSOR_TEST = 9l [static]
 

Definition at line 59 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SCISSOR_TEST_M = (1l<<RENDER_OPTION_SCISSOR_TEST ) [static]
 

Definition at line 88 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SHINYNESS = 20l [static]
 

Definition at line 70 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SHINYNESS_M = (1l<<RENDER_OPTION_SHINYNESS ) [static]
 

Definition at line 99 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SMOOTH = 1l [static]
 

Definition at line 51 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SMOOTH_M = (1l<<RENDER_OPTION_SMOOTH ) [static]
 

Definition at line 80 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SORT_ELEMENTS = 25l [static]
 

Definition at line 75 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SORT_ELEMENTS_M = (1l<<RENDER_OPTION_SORT_ELEMENTS ) [static]
 

Definition at line 104 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SORT_OBJECTS = 24l [static]
 

Definition at line 74 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SORT_OBJECTS_M = (1l<<RENDER_OPTION_SORT_OBJECTS ) [static]
 

Definition at line 103 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SPECULAR = 18l [static]
 

Definition at line 68 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_SPECULAR_M = (1l<<RENDER_OPTION_SPECULAR ) [static]
 

Definition at line 97 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_STENCIL_TEST = 8l [static]
 

Definition at line 58 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_STENCIL_TEST_M = (1l<<RENDER_OPTION_STENCIL_TEST ) [static]
 

Definition at line 87 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_1D = 10l [static]
 

Definition at line 60 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_1D_M = (1l<<RENDER_OPTION_TEXTURE_1D ) [static]
 

Definition at line 89 of file Material.cpp.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_2D = 11l [static]
 

Definition at line 61 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_2D_M = (1l<<RENDER_OPTION_TEXTURE_2D ) [static]
 

Definition at line 90 of file Material.cpp.

Referenced by setTexture.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_3D = 12l [static]
 

Definition at line 62 of file Material.cpp.

Referenced by init, and render_option_to_str.

const unsigned long Teddy::Materials::Material::RENDER_OPTION_TEXTURE_3D_M = (1l<<RENDER_OPTION_TEXTURE_3D ) [static]
 

Definition at line 91 of file Material.cpp.

float Teddy::Materials::Material::shininess [protected]
 

Definition at line 103 of file MaterialOptions.h.

Referenced by applyShinyness, copy, getShininess, Teddy::Imports::LWSurface::LWSurface, Material, Teddy::Imports::LWSurface::readSpecularGlossiness_FP4_VX, Teddy::Imports::LWSurface::readSpecularGlossiness_I2_4, and setShininess.

Color Teddy::Materials::Material::specular [protected]
 

Definition at line 106 of file MaterialOptions.h.

Referenced by applySpecular, copy, getSpecular, Material, Teddy::Imports::LWSurface::readBaseColor_COL12_VX, Teddy::Imports::LWSurface::readBaseColor_COL4, Teddy::Imports::LWSurface::readDiffuse_FP4, Teddy::Imports::LWSurface::readDiffuse_FP4_VX, Teddy::Imports::LWSurface::readDiffuse_IP2, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_FP4_VX, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSurface::readSpecular_FP4, Teddy::Imports::LWSurface::readSpecular_FP4_VX, Teddy::Imports::LWSurface::readSpecular_IP2_4, setSpecular, and Teddy::Imports::LWSurface::useTextureColormap.

Texture* Teddy::Materials::Material::texture [protected]
 

Definition at line 100 of file MaterialOptions.h.

Texture* Teddy::Materials::Material::texture [protected]
 

Definition at line 184 of file Material.h.

Referenced by copy, getTexture, Material, and setTexture.

Material Teddy::Materials::Material::WHITE = Material( "Default White Material", Color(C_WHITE ) ) [static]
 

Definition at line 117 of file MaterialOptions.h.

Material Teddy::Materials::Material::YELLOW = Material( "Default Yellow Material", Color(C_YELLOW ) ) [static]
 

Definition at line 119 of file MaterialOptions.h.


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