Replaced most std::map's with std::unordered_map's for more scalability.

This commit is contained in:
2013-04-24 18:12:03 -07:00
parent 0c67ffbbd1
commit 9ef3f4590f
33 changed files with 130 additions and 85 deletions

View File

@@ -67,11 +67,11 @@ public:
long getShaderHandlesUsed();
private:
//std::map<std::string, KRShader *> m_shaders;
//std::unordered_map<std::string, KRShader *> m_shaders;
std::map<std::pair<std::string, std::vector<int> >, KRShader *> m_shaders;
std::map<std::string, std::string> m_fragShaderSource;
std::map<std::string, std::string> m_vertShaderSource;
std::unordered_map<std::string, std::string> m_fragShaderSource;
std::unordered_map<std::string, std::string> m_vertShaderSource;
KRShader *m_pShader;
char m_szCurrentShaderKey[256];