Changeset 367 for trunk/src/gfx


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
Location:
trunk/src/gfx
Files:
4 edited

Legend:

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

    r319 r367  
    55#include "nv/gfx/keyframed_mesh.hh"
    66
    7 #include <glm/gtc/matrix_access.hpp>
    8 #include <glm/gtx/matrix_interpolation.hpp>
    97#include "nv/interface/context.hh"
    108#include "nv/interface/device.hh"
    11 
    12 
    139#include "nv/core/logging.hh"
    1410
  • trunk/src/gfx/skeletal_mesh.cc

    r323 r367  
    55#include "nv/gfx/skeletal_mesh.hh"
    66
    7 #include <glm/gtc/matrix_access.hpp>
    8 #include <glm/gtx/matrix_interpolation.hpp>
    97#include "nv/interface/context.hh"
    108#include "nv/interface/device.hh"
    11 
    129
    1310nv::skeletal_mesh_cpu::skeletal_mesh_cpu( context* a_context, const mesh_data* a_mesh_data, const mesh_nodes_data* bones )
  • trunk/src/gfx/texture_atlas.cc

    r319 r367  
    88
    99#include "nv/core/logging.hh"
    10 #include <iostream>
    1110
    1211using namespace nv;
  • 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.