Added std::hash for String, made use of unordered_map
Former-commit-id: 20f3d12bc3222873706949f0a7d0a131e237a247
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user