- Timestamp:
- 06/11/15 20:01:25 (10 years ago)
- Location:
- trunk/nv
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/engine/resource_system.hh
r379 r394 17 17 #include <nv/interface/context.hh> 18 18 #include <nv/lua/lua_state.hh> 19 #include <unordered_map> 19 #include <nv/stl/unordered_map.hh> 20 #include <nv/stl/vector.hh> 20 21 21 22 namespace nv … … 42 43 43 44 lua::state* m_lua; 44 std::unordered_map< std::string, resource_id > m_names;45 unordered_map< std::string, resource_id > m_names; 45 46 }; 46 47 … … 84 85 } 85 86 86 std::vector< T > m_data;87 vector< T > m_data; 87 88 }; 88 89 … … 97 98 virtual ~resource_system(); 98 99 protected: 99 std::vector< resource_manager_base* > m_managers;100 std::unordered_map< std::string, resource_id > m_manager_names;100 vector< resource_manager_base* > m_managers; 101 unordered_map< std::string, resource_id > m_manager_names; 101 102 lua::state* m_lua_state; 102 103 }; -
trunk/nv/gfx/texture_atlas.hh
r368 r394 13 13 #include <nv/stl/math.hh> 14 14 #include <nv/gfx/image.hh> 15 //#include <nv/stl/vector.hh> 15 16 #include <vector> 16 17 -
trunk/nv/gfx/texture_font.hh
r379 r394 10 10 #include <nv/core/common.hh> 11 11 #include <nv/stl/string.hh> 12 #include < unordered_map>12 #include <nv/stl/unordered_map.hh> 13 13 #include <nv/stl/math.hh> 14 14 #include <nv/gfx/texture_atlas.hh> … … 24 24 vec2 tl; //!< Top-left of the glyph's bounding box. 25 25 vec2 br; //!< Bottom-right of the glyph's bounding box. 26 std::unordered_map< uint16, float > kerning; //!< Kerning space between other characters.26 unordered_map< uint16, float > kerning; //!< Kerning space between other characters. 27 27 28 28 /** … … 51 51 void generate_kerning(); 52 52 private: 53 std::unordered_map< uint16, texture_glyph > m_glyphs; //!< Hash table of glyphs for this font.53 unordered_map< uint16, texture_glyph > m_glyphs; //!< Hash table of glyphs for this font. 54 54 55 55 texture_atlas* m_atlas; //!< Atlas Image object for this font. -
trunk/nv/gui/gui_gfx_renderer.hh
r354 r394 59 59 size_t load_image( const std::string& filename ); 60 60 61 typedef std::unordered_map< std::string, size_t > names;62 typedef std::vector< texture_font* > font_vector;63 typedef std::vector< image_info > image_vector;61 typedef unordered_map< std::string, size_t > names; 62 typedef vector< texture_font* > font_vector; 63 typedef vector< image_info > image_vector; 64 64 65 65 context* m_context; -
trunk/nv/interface/font.hh
r319 r394 9 9 10 10 #include <nv/core/common.hh> 11 #include <nv/ core/math.hh>12 #include < unordered_map>11 #include <nv/stl/math.hh> 12 #include <nv/stl/unordered_map.hh> 13 13 14 14 namespace nv … … 22 22 vec2 tl; 23 23 vec2 br; 24 std::unordered_map< uint16, float > kerning;24 unordered_map< uint16, float > kerning; 25 25 26 26 gylph(); … … 33 33 const gylph* get_gylph( uint16 charcode ) const; 34 34 private: 35 std::unordered_map< uint16, gylph > m_gylphs;36 } 35 unordered_map< uint16, gylph > m_gylphs; 36 }; 37 37 38 38 -
trunk/nv/stl/cstring_store.hh
r392 r394 68 68 bool exists( const char* cstr ) 69 69 { 70 return m_map.find( cstr ) != std::end( m_map);70 return m_map.find( cstr ) != m_map.end(); 71 71 } 72 72 … … 79 79 { 80 80 auto it = m_map.find( cstr ); 81 if ( it != std::end( m_map) )81 if ( it != m_map.end() ) 82 82 { 83 83 return it->second; … … 98 98 { 99 99 auto it = m_map.find( cstr ); 100 if ( it == std::end( m_map) )100 if ( it == m_map.end() ) 101 101 { 102 102 return push( cstr );
Note: See TracChangeset
for help on using the changeset viewer.