Changeset 394


Ignore:
Timestamp:
06/11/15 20:01:25 (10 years ago)
Author:
epyon
Message:
  • further removal of platform STL
Location:
trunk/nv
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/engine/resource_system.hh

    r379 r394  
    1717#include <nv/interface/context.hh>
    1818#include <nv/lua/lua_state.hh>
    19 #include <unordered_map>
     19#include <nv/stl/unordered_map.hh>
     20#include <nv/stl/vector.hh>
    2021
    2122namespace nv
     
    4243
    4344                lua::state* m_lua;
    44                 std::unordered_map< std::string, resource_id > m_names;
     45                unordered_map< std::string, resource_id > m_names;
    4546        };
    4647
     
    8485                }
    8586
    86                 std::vector< T > m_data;
     87                vector< T > m_data;
    8788        };
    8889
     
    9798                virtual ~resource_system();
    9899        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;
    101102                lua::state* m_lua_state;
    102103        };
  • trunk/nv/gfx/texture_atlas.hh

    r368 r394  
    1313#include <nv/stl/math.hh>
    1414#include <nv/gfx/image.hh>
     15//#include <nv/stl/vector.hh>
    1516#include <vector>
    1617
  • trunk/nv/gfx/texture_font.hh

    r379 r394  
    1010#include <nv/core/common.hh>
    1111#include <nv/stl/string.hh>
    12 #include <unordered_map>
     12#include <nv/stl/unordered_map.hh>
    1313#include <nv/stl/math.hh>
    1414#include <nv/gfx/texture_atlas.hh>
     
    2424                vec2   tl;      //!< Top-left of the glyph's bounding box.
    2525                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.
    2727
    2828                /**
     
    5151                        void generate_kerning();
    5252                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.
    5454
    5555                        texture_atlas* m_atlas; //!< Atlas Image object for this font.
  • trunk/nv/gui/gui_gfx_renderer.hh

    r354 r394  
    5959                        size_t load_image( const std::string& filename );
    6060
    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;
    6464
    6565                        context*      m_context;
  • trunk/nv/interface/font.hh

    r319 r394  
    99
    1010#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>
    1313
    1414namespace nv
     
    2222            vec2 tl;
    2323            vec2 br;
    24                 std::unordered_map< uint16, float > kerning;
     24                unordered_map< uint16, float > kerning;
    2525
    2626                gylph();
     
    3333                const gylph* get_gylph( uint16 charcode ) const;
    3434        private:
    35                 std::unordered_map< uint16, gylph > m_gylphs;
    36         }
     35                unordered_map< uint16, gylph > m_gylphs;
     36        };
    3737
    3838
  • trunk/nv/stl/cstring_store.hh

    r392 r394  
    6868                bool exists( const char* cstr )
    6969                {
    70                         return m_map.find( cstr ) != std::end( m_map );
     70                        return m_map.find( cstr ) != m_map.end();
    7171                }
    7272               
     
    7979                {
    8080                        auto it = m_map.find( cstr );
    81                         if ( it != std::end( m_map ) )
     81                        if ( it != m_map.end() )
    8282                        {
    8383                                return it->second;
     
    9898                {
    9999                        auto it = m_map.find( cstr );
    100                         if ( it == std::end( m_map ) )
     100                        if ( it == m_map.end() )
    101101                        {
    102102                                return push( cstr );
Note: See TracChangeset for help on using the changeset viewer.