Use unordered_map instead of map for GROUPS_MAP
This commit is contained in:
parent
256f52f27e
commit
1994cc3ae2
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <wx/glcanvas.h>
|
#include <wx/glcanvas.h>
|
||||||
|
|
||||||
#include <map>
|
#include <unordered_map>
|
||||||
#include <boost/smart_ptr/shared_array.hpp>
|
#include <boost/smart_ptr/shared_array.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ private:
|
||||||
static GLuint fontTexture; ///< Bitmap font texture handle (shared)
|
static GLuint fontTexture; ///< Bitmap font texture handle (shared)
|
||||||
|
|
||||||
// Vertex buffer objects related fields
|
// Vertex buffer objects related fields
|
||||||
typedef std::map< unsigned int, std::shared_ptr<VERTEX_ITEM> > GROUPS_MAP;
|
typedef std::unordered_map< unsigned int, std::shared_ptr<VERTEX_ITEM> > GROUPS_MAP;
|
||||||
GROUPS_MAP groups; ///< Stores informations about VBO objects (groups)
|
GROUPS_MAP groups; ///< Stores informations about VBO objects (groups)
|
||||||
unsigned int groupCounter; ///< Counter used for generating keys for groups
|
unsigned int groupCounter; ///< Counter used for generating keys for groups
|
||||||
VERTEX_MANAGER* currentManager; ///< Currently used VERTEX_MANAGER (for storing VERTEX_ITEMs)
|
VERTEX_MANAGER* currentManager; ///< Currently used VERTEX_MANAGER (for storing VERTEX_ITEMs)
|
||||||
|
|
Loading…
Reference in New Issue