Ignore:
Timestamp:
07/23/15 17:29:49 (10 years ago)
Author:
epyon
Message:
  • massive amount of std::string removal
  • removed slurp, use filesystem::slurp instead
  • lua_values const_string support
  • several bugfixes
  • program_manager and shader loading without std::string/std::stream
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/texture_font.cc

    r405 r438  
    2929}
    3030
    31 texture_font::texture_font( texture_atlas* atlas, const char * filename, float size )
    32         : m_atlas( atlas ), m_filename(filename), m_size( size ),
     31texture_font::texture_font( texture_atlas* atlas, const string_view& filename, float size )
     32        : m_atlas( atlas ), m_filename( filename ), m_size( size ),
    3333        m_height(0), m_linegap(0), m_ascender(0), m_descender(0),
    3434        m_hinting( true ), m_filtering( true ), m_rlibrary( nullptr ), m_rface( nullptr )
     
    5353        NV_CHECK_FREETYPE_ERROR( error, "error on FT_Init_FreeType, code - ", error );
    5454
    55         error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename, 0, reinterpret_cast<FT_Face*>(&m_rface) );
     55        error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename.data(), 0, reinterpret_cast<FT_Face*>(&m_rface) );
    5656        NV_CHECK_FREETYPE_ERROR( error, "error on FT_New_Face, code - ", error );
    5757
Note: See TracChangeset for help on using the changeset viewer.