Ignore:
Timestamp:
05/16/15 23:12:22 (10 years ago)
Author:
epyon
Message:
  • fixed compilation and warnings on gcc
  • slowly removing/merging external includes
File:
1 edited

Legend:

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

    r365 r367  
    66#include "nv/gfx/texture_font.hh"
    77
    8 #include <sstream>
    9 #include <stdexcept>
    108#include "nv/lib/freetype2.hh"
    119#include "nv/core/logging.hh"
     
    126124                if ( error )
    127125                {
    128                         std::stringstream error_msg;
    129                         error_msg << "FT_Error while loading glyphs, error: "
    130                                 << error << " code: " << c;
    131                         NV_THROW( std::runtime_error, error_msg.str().c_str() );
     126                        NV_LOG_ERROR( "FT_Error while loading glyphs, error: ", error, " code: ", c );
     127                        NV_THROW( std::runtime_error, "FT_Error while loading glyphs" );
    132128                }
    133129
     
    144140                if ( r.pos.x < 0 )
    145141                {
    146                         std::stringstream error_msg;
    147                         error_msg << "Atlas full while loading glyphs, "
    148                                 << "r.pos.x: " << r.pos.x << " code: "
    149                                 << c;
    150                         NV_THROW( std::runtime_error, error_msg.str().c_str() );
     142                        NV_LOG_ERROR( "Atlas full while loading glyphs, r.pos.x: ", r.pos.x, " code: ", c );
     143                        NV_THROW( std::runtime_error, "Atlas full while loading glyphs" );
    151144                }
    152145                if (depth == 4)
Note: See TracChangeset for help on using the changeset viewer.