#include <MaterialFactory.h>
Public Types | |
typedef MaterialBase *(* | CreateMaterialCallBack )() |
Public Member Functions | |
bool | registerMaterial (std::string materialType, CreateMaterialCallBack cb) |
MaterialBase * | createMaterial (std::string &materialType) const |
void | destroy () |
Static Public Member Functions | |
static MaterialFactory * | instance () |
typedef MaterialBase*(* shells::MaterialFactory::CreateMaterialCallBack)() |
shells::MaterialBase * shells::MaterialFactory::createMaterial | ( | std::string & | materialType | ) | const |
Referenced by shells::MaterialContainer::readMaterialStream().
void shells::MaterialFactory::destroy | ( | ) |
shells::MaterialFactory * shells::MaterialFactory::instance | ( | ) | [static] |
bool shells::MaterialFactory::registerMaterial | ( | std::string | materialType, | |
CreateMaterialCallBack | cb | |||
) |
Referenced by shells::MaterialContainer::instance().