MaterialSystem Class Reference

#include <imaterial.h>

Public Member Functions

 INTEGER_CONSTANT (Version, 1)
 STRING_CONSTANT (Name,"material")
virtual ~MaterialSystem ()
 MaterialSystem ()
void showMaterialDefinition (const std::string &append="")
const std::string getMaterialFilename () const
void importMaterialFile (const std::string &name)
void generateMaterialFromTexture ()
IShadergetMaterialForName (const std::string &name)

Private Types

typedef std::map< std::string,
MaterialShader * > 
MaterialShaders

Private Member Functions

void generateMaterialForFace (int contentFlags, int surfaceFlags, std::string &textureName, std::stringstream &stream)

Private Attributes

MaterialShaders _activeMaterialShaders

Detailed Description

Definition at line 100 of file imaterial.h.


Member Typedef Documentation

Definition at line 107 of file imaterial.h.


Constructor & Destructor Documentation

virtual MaterialSystem::~MaterialSystem (  )  [inline, virtual]

Definition at line 114 of file imaterial.h.

MaterialSystem::MaterialSystem (  ) 

Constructor


Member Function Documentation

void MaterialSystem::generateMaterialForFace ( int  contentFlags,
int  surfaceFlags,
std::string textureName,
std::stringstream &  stream 
) [private]
void MaterialSystem::generateMaterialFromTexture (  ) 

Generates material for the current selected textures

const std::string MaterialSystem::getMaterialFilename (  )  const
Returns:
The current material filename for the current loaded map
IShader* MaterialSystem::getMaterialForName ( const std::string name  ) 

activate the material for a given name and return it will return the default shader if name is not found

void MaterialSystem::importMaterialFile ( const std::string name  ) 

Import a material file to the already existing material definition

Parameters:
name The material file to import
MaterialSystem::INTEGER_CONSTANT ( Version  ,
 
)
void MaterialSystem::showMaterialDefinition ( const std::string append = ""  ) 

Shows the existing material definition and append new content to it.

Parameters:
append The material definition string to append to the existing one
MaterialSystem::STRING_CONSTANT ( Name  ,
"material"   
)

Field Documentation

Definition at line 108 of file imaterial.h.


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

Generated by  doxygen 1.6.2