Changeset 471 for trunk/src/gfx
- Timestamp:
- 09/21/15 19:13:26 (10 years ago)
- Location:
- trunk/src/gfx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/mesh_creator.cc
r470 r471 17 17 if ( m_data->m_flat ) return; 18 18 merge_keys(); 19 uint 32max_frames = 0;19 uint16 max_frames = 0; 20 20 21 21 nv::vector< sint16 > ids; … … 65 65 size_t count = ( keys ? keys->get_channel_size(0) : 0 ); 66 66 size_t pcount = ( pkeys ? pkeys->get_channel_size(0) : 0 ); 67 max_frames = nv::max<uint 32>( count, max_frames );67 max_frames = nv::max<uint16>( uint16( count ), max_frames ); 68 68 if ( pkeys && pkeys->size() > 0 && keys && keys->size() > 0 ) 69 69 { -
trunk/src/gfx/skeletal_mesh.cc
r470 r471 48 48 { 49 49 float fframe = ( a_ms_time * 0.001f ) * m_fps; 50 uint32 frame = math::floor( fframe);50 uint32 frame = uint32( math::floor( fframe ) ); 51 51 float reminder = fframe - static_cast<float>( frame ); 52 52 uint32 duration = get_frame_count(); -
trunk/src/gfx/texture_atlas.cc
r398 r471 22 22 region r ( ivec2(0,0), size ); 23 23 24 int best_height = INT_MAX;24 int best_height = nv::limits::si_max; 25 25 int best_index = -1; 26 int best_width = INT_MAX;26 int best_width = nv::limits::si_max; 27 27 28 28 for( size_t i=0; i < m_nodes.size(); ++i ) -
trunk/src/gfx/texture_font.cc
r438 r471 172 172 FT_Load_Glyph( face, glyph_index, FT_LOAD_RENDER | FT_LOAD_NO_HINTING); 173 173 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 ); 175 175 } 176 176 generate_kerning();
Note: See TracChangeset
for help on using the changeset viewer.