1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/extern/shiny/Platforms/Ogre/OgreMaterialSerializer.hpp
2012-11-06 19:09:44 +01:00

30 lines
659 B
C++

#ifndef SH_OGREMATERIALSERIALIZER_H
#define SH_OGREMATERIALSERIALIZER_H
#include <OgreMaterialSerializer.h>
namespace Ogre
{
class Pass;
}
namespace sh
{
/**
* @brief This class allows me to let Ogre handle the pass & texture unit properties
*/
class OgreMaterialSerializer : public Ogre::MaterialSerializer
{
public:
bool setPassProperty (const std::string& param, std::string value, Ogre::Pass* pass);
bool setTextureUnitProperty (const std::string& param, std::string value, Ogre::TextureUnitState* t);
bool setMaterialProperty (const std::string& param, std::string value, Ogre::MaterialPtr m);
private:
void reset();
};
}
#endif