Added std::hash for String, made use of unordered_map

Former-commit-id: 20f3d12bc3222873706949f0a7d0a131e237a247
This commit is contained in:
Lynix
2013-06-23 16:53:37 +02:00
parent 3e82794b70
commit 3609f31708
9 changed files with 51 additions and 15 deletions

View File

@@ -13,6 +13,7 @@
#include <Nazara/Renderer/OpenGL.hpp>
#include <Nazara/Renderer/Shader.hpp>
#include <map>
#include <unordered_map>
class NzResource;
@@ -68,7 +69,7 @@ class NzGLSLShader : public NzAbstractShader, NzResourceListener
const NzTexture* texture;
};
mutable std::map<NzString, GLint> m_idCache; ///FIXME: unordered_map
mutable std::unordered_map<NzString, GLint> m_idCache;
std::map<GLint, TextureSlot> m_textures; ///FIXME: unordered_map
GLuint m_program;
GLuint m_shaders[nzShaderType_Max+1];