Moved some of the new shader uid stuff to a common header file.

This commit is contained in:
NeoBrainX
2013-01-28 21:05:29 +01:00
parent ca0e292dd4
commit 3c8df842bb
9 changed files with 1196 additions and 80 deletions
@@ -40,7 +40,7 @@ class VertexShaderCache
struct VSCacheEntry
{
VERTEXSHADER shader;
ShaderUid safe_uid;
VertexShaderUid safe_uid;
VSCacheEntry() {}
void Destroy() {
// printf("Destroying vs %i\n", shader.glprogid);
@@ -49,12 +49,12 @@ class VertexShaderCache
}
};
typedef std::map<ShaderUid, VSCacheEntry> VSCache;
typedef std::map<VertexShaderUid, VSCacheEntry> VSCache;
static VSCache vshaders;
static VSCacheEntry* last_entry;
static ShaderUid last_uid; // TODO: Use reference instead..
static VertexShaderUid last_uid; // TODO: Use reference instead..
static GLuint CurrentShader;
static bool ShaderEnabled;