Changeset 471 for trunk/src/gfx


Ignore:
Timestamp:
09/21/15 19:13:26 (10 years ago)
Author:
epyon
Message:
  • full math library
  • GLM dependency removed
Location:
trunk/src/gfx
Files:
4 edited

Legend:

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

    r470 r471  
    1717        if ( m_data->m_flat ) return;
    1818        merge_keys();
    19         uint32 max_frames = 0;
     19        uint16 max_frames = 0;
    2020
    2121        nv::vector< sint16 > ids;
     
    6565                size_t count     = ( keys ? keys->get_channel_size(0) : 0 );
    6666                size_t pcount    = ( pkeys ? pkeys->get_channel_size(0) : 0 );
    67                 max_frames = nv::max<uint32>( count, max_frames );
     67                max_frames = nv::max<uint16>( uint16( count ), max_frames );
    6868                if ( pkeys && pkeys->size() > 0 && keys && keys->size() > 0 )
    6969                {
  • trunk/src/gfx/skeletal_mesh.cc

    r470 r471  
    4848{
    4949        float  fframe   = ( a_ms_time * 0.001f ) * m_fps;
    50         uint32 frame    = math::floor( fframe );
     50        uint32 frame    = uint32( math::floor( fframe ) );
    5151        float  reminder = fframe - static_cast<float>( frame );
    5252        uint32 duration = get_frame_count();
  • trunk/src/gfx/texture_atlas.cc

    r398 r471  
    2222        region r ( ivec2(0,0), size );
    2323
    24         int best_height = INT_MAX;
     24        int best_height = nv::limits::si_max;
    2525        int best_index  = -1;
    26         int best_width  = INT_MAX;
     26        int best_width  = nv::limits::si_max;
    2727
    2828        for( size_t i=0; i < m_nodes.size(); ++i )
  • trunk/src/gfx/texture_font.cc

    r438 r471  
    172172                FT_Load_Glyph( face, glyph_index, FT_LOAD_RENDER | FT_LOAD_NO_HINTING);
    173173                slot = face->glyph;
    174                 g->advance = ivec2( slot->advance.x/64.0f, slot->advance.y/64.0f );
     174                g->advance = vec2( slot->advance.x/64.0f, slot->advance.y/64.0f );
    175175        }
    176176        generate_kerning();
Note: See TracChangeset for help on using the changeset viewer.