Ignore:
Timestamp:
05/30/13 20:13:08 (12 years ago)
Author:
epyon
Message:
  • root class for object trees
  • revised exception throwing - now using NV_THROW macro
  • exceptions thrown are logged
  • formatting fixes
File:
1 edited

Legend:

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

    r45 r64  
    4444         
    4545        error = FT_Init_FreeType( (FT_Library*)(&m_rlibrary) );
    46         if ( error ) throw std::runtime_error( "FT_Error" );
     46        if ( error ) NV_THROW( std::runtime_error, "FT_Error" );
    4747
    4848        error = FT_New_Face( (FT_Library)(m_rlibrary), filename, 0, (FT_Face*)(&m_rface) );
    49         if ( error ) throw std::runtime_error( "FT_Error" );
     49        if ( error ) NV_THROW( std::runtime_error, "FT_Error" );
    5050
    5151        error = FT_Set_Char_Size( (FT_Face)(m_rface), (int)(size*64), 0, 72*64, 72 );
    52         if ( error ) throw std::runtime_error( "FT_Error" );
     52        if ( error ) NV_THROW( std::runtime_error, "FT_Error" );
    5353
    5454    FT_Set_Transform( (FT_Face)(m_rface), &matrix, NULL );
     
    106106                        error_msg << "FT_Error while loading glyphs, error: "
    107107                                << error << " code: " << c;
    108                         throw std::runtime_error( error_msg.str().c_str() );
     108                        NV_THROW( std::runtime_error, error_msg.str().c_str() );
    109109                }
    110110
     
    124124                                << "r.pos.x: " << r.pos.x << " code: "
    125125                                << c;
    126                         throw std::runtime_error( error_msg.str().c_str() );
     126                        NV_THROW( std::runtime_error, error_msg.str().c_str() );
    127127                }
    128128                r.size.x -= 1;
Note: See TracChangeset for help on using the changeset viewer.