Changeset 24 for trunk/nv/gl/texture_font.hh
- Timestamp:
- 05/18/13 10:55:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/gl/texture_font.hh
r22 r24 17 17 namespace nv 18 18 { 19 struct texture_g ylph19 struct texture_glyph 20 20 { 21 21 uint16 charcode; … … 27 27 std::unordered_map< uint16, float > kerning; 28 28 29 texture_g ylph();29 texture_glyph(); 30 30 float get_kerning( const uint16 charcode ); 31 31 }; … … 35 35 public: 36 36 texture_font( texture_atlas* atlas, const char * filename, float size ); 37 const texture_g ylph* get_gylph( uint16 charcode ) const;37 const texture_glyph* get_glyph( uint16 charcode ) const; 38 38 bool load_glyphs( const std::string& codes ); 39 39 ~texture_font(); … … 41 41 void generate_kerning(); 42 42 private: 43 std::unordered_map< uint16, texture_g ylph > m_gylphs;43 std::unordered_map< uint16, texture_glyph > m_glyphs; 44 44 texture_atlas* m_atlas; 45 45 std::string m_filename;
Note: See TracChangeset
for help on using the changeset viewer.