Added debugging macro for GL calls
Activated octree culling logic as a default Wide spread bug fixes related to occlusion culling and GPU resource management Implemented logic to automatically enable alpha blending for materials that do not contain an alpha blending statement but have a material-level opacity value set less than 1.0 Extended the krobject file format to 256 characters for material names. Added logic to prevent exported krobject files from being corrupted when long material names are used. --HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4096
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
//
|
||||
|
||||
#define KRENGINE_MAX_TEXTURE_UNITS 8
|
||||
#define KRENGINE_MAX_TEXTURE_HANDLES 1000
|
||||
#define KRENGINE_MAX_TEXTURE_HANDLES 10000
|
||||
#define KRENGINE_MAX_TEXTURE_MEM 100000000
|
||||
|
||||
#ifndef KRTEXTUREMANAGER_H
|
||||
@@ -49,6 +49,8 @@ public:
|
||||
KRTextureManager(KRContext &context);
|
||||
virtual ~KRTextureManager();
|
||||
|
||||
void rotateBuffers();
|
||||
|
||||
void selectTexture(int iTextureUnit, KRTexture *pTexture);
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
@@ -64,8 +66,9 @@ public:
|
||||
private:
|
||||
std::map<std::string, KRTexture *> m_textures;
|
||||
|
||||
KRTexture *m_activeTextures[KRENGINE_MAX_TEXTURE_UNITS];
|
||||
std::set<KRTexture *> m_textureCache;
|
||||
KRTexture *m_boundTextures[KRENGINE_MAX_TEXTURE_UNITS];
|
||||
std::set<KRTexture *> m_activeTextures;
|
||||
std::set<KRTexture *> m_poolTextures;
|
||||
|
||||
long m_textureMemUsed;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user