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:
@@ -29,6 +29,9 @@
|
||||
// or implied, of Kearwood Gilbert.
|
||||
//
|
||||
|
||||
#define KRENGINE_MAX_TEXTURE_UNITS 8
|
||||
#define KRENGINE_MAX_TEXTURE_HANDLES 20
|
||||
|
||||
#ifndef KRTEXTUREMANAGER_H
|
||||
#define KRTEXTUREMANAGER_H
|
||||
|
||||
@@ -45,17 +48,21 @@ public:
|
||||
KRTextureManager(KRContext &context);
|
||||
virtual ~KRTextureManager();
|
||||
|
||||
void selectTexture(int iTextureUnit, KRTexture *pTexture);
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
KRTexture *loadTexture(const char *szName, const char *szPath);
|
||||
KRTexture *loadTexture(const char *szName, KRDataBlock *data);
|
||||
|
||||
#endif
|
||||
|
||||
GLuint getTextureName(const char *szName);
|
||||
KRTexture *getTexture(const char *szFile);
|
||||
|
||||
private:
|
||||
std::map<std::string, KRTexture *> m_textures;
|
||||
|
||||
KRTexture *m_activeTextures[KRENGINE_MAX_TEXTURE_UNITS];
|
||||
std::set<KRTexture *> m_textureCache;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user