Implemented KRBundle's
Implementation of logic to allow dynamic loading and unloading of meshes and models for scenes larger than RAM in progress --HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4090
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#define KRMATERIALMANAGER_H
|
||||
|
||||
|
||||
|
||||
|
||||
#import "KREngine-common.h"
|
||||
|
||||
#include "KRMaterial.h"
|
||||
@@ -50,13 +52,16 @@ public:
|
||||
KRMaterialManager(KRContext &context, KRTextureManager *pTextureManager, KRShaderManager *pShaderManager);
|
||||
virtual ~KRMaterialManager();
|
||||
|
||||
bool loadFile(const char *szPath);
|
||||
bool load(const char *szName, KRDataBlock *data);
|
||||
KRMaterial *getMaterial(const char *szName);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
map<std::string, KRMaterial *> m_materials;
|
||||
KRTextureManager *m_pTextureManager;
|
||||
KRShaderManager *m_pShaderManager;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user