Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MS_Material Class Reference

#include <MilkShape.h>

List of all members.

Public Member Functions

 MS_Material ()
virtual ~MS_Material ()
void clear ()
void activate ()
void reloadTexture ()
bool loadFromAsciiSegment (const char *path, FILE *file)

Public Attributes

char name [MS_MAX_NAME]
float ambient [4]
float diffuse [4]
float specular [4]
float emissive [4]
float shininess
float transparency
char diffuse_name [MS_MAX_NAME]
char alpha_name [MS_MAX_NAME]
TextureID texture


Detailed Description

Definition at line 69 of file MilkShape.h.


Constructor & Destructor Documentation

MS_Material::MS_Material  ) 
 

MS_Material.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file MS_Material.cpp.

MS_Material::~MS_Material  )  [virtual]
 

Definition at line 12 of file MS_Material.cpp.

References clear().

Here is the call graph for this function:


Member Function Documentation

void MS_Material::activate  ) 
 

Definition at line 116 of file MS_Material.cpp.

References app, Renderer::apply(), Application::renderer, and Renderer::setTextures().

Referenced by MilkShape::render().

Here is the call graph for this function:

void MS_Material::clear  ) 
 

Definition at line 16 of file MS_Material.cpp.

References app, Renderer::deleteTexture(), and Application::renderer.

Referenced by MilkShape::clear(), and ~MS_Material().

Here is the call graph for this function:

bool MS_Material::loadFromAsciiSegment const char path,
FILE *  file
 

Definition at line 29 of file MS_Material.cpp.

References name, and reloadTexture().

Here is the call graph for this function:

void MS_Material::reloadTexture  ) 
 

Definition at line 20 of file MS_Material.cpp.

References Renderer::addTexture(), app, Application::renderer, texture, and TEXTURE_NONE.

Referenced by loadFromAsciiSegment().

Here is the call graph for this function:


Member Data Documentation

char MS_Material::alpha_name[MS_MAX_NAME]
 

Definition at line 88 of file MilkShape.h.

float MS_Material::ambient[4]
 

Definition at line 81 of file MilkShape.h.

float MS_Material::diffuse[4]
 

Definition at line 82 of file MilkShape.h.

char MS_Material::diffuse_name[MS_MAX_NAME]
 

Definition at line 87 of file MilkShape.h.

float MS_Material::emissive[4]
 

Definition at line 84 of file MilkShape.h.

char MS_Material::name[MS_MAX_NAME]
 

Definition at line 80 of file MilkShape.h.

Referenced by loadFromAsciiSegment().

float MS_Material::shininess
 

Definition at line 85 of file MilkShape.h.

float MS_Material::specular[4]
 

Definition at line 83 of file MilkShape.h.

TextureID MS_Material::texture
 

Definition at line 89 of file MilkShape.h.

Referenced by reloadTexture().

float MS_Material::transparency
 

Definition at line 86 of file MilkShape.h.


Generated on Sun Jun 5 15:50:21 2005 for Defacto by  doxygen 1.4.3