gpuCache/gpuCacheMaterialBakers.h
#ifndef _gpuCacheMaterialBakers_h_
#define _gpuCacheMaterialBakers_h_
#include "gpuCacheMaterial.h"
namespace GPUCache {
class MaterialBaker : boost::noncopyable
{
public:
MaterialBaker();
virtual ~MaterialBaker();
MaterialGraphMap::Ptr get();
private:
class MaterialGraphBaker;
typedef boost::shared_ptr<MaterialGraphBaker> MaterialGraphBakerPtr;
typedef boost::unordered_map<MString,MaterialGraphBakerPtr,MStringHash> MaterialGraphBakers;
MaterialGraphBakers fMaterialGraphBakers;
typedef boost::unordered_map<MString,MaterialGraph::Ptr,MStringHash> NamedMaterialGraphs;
NamedMaterialGraphs fExistingGraphs;
};
}
#endif