Changeset 204 for trunk/src/formats
- Timestamp:
- 08/17/13 21:22:56 (12 years ago)
- Location:
- trunk/src/formats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/md2_loader.cc
r200 r204 357 357 uint32 stats_collision = 0; 358 358 359 std::vector< sint32 > index_translation( md2->header.num_vertices, -1 );359 std::vector< sint32 > index_translation( static_cast< uint32 >( md2->header.num_vertices ), -1 ); 360 360 361 361 m_new_indexes.clear(); -
trunk/src/formats/obj_loader.cc
r198 r204 130 130 }; 131 131 132 s td::size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )132 size_t mesh_obj_reader::add_face( uint32* vi, uint32* ti, uint32* ni, size_t count ) 133 133 { 134 134 if ( count < 3 ) … … 181 181 std::vector< vec4 >& tg = m_tangent->get(); 182 182 183 s td::size_t count = vp.size();184 s td::size_t tcount = count / 3;183 size_t count = vp.size(); 184 size_t tcount = count / 3; 185 185 186 186 std::vector< vec3 > tan1( count ); … … 188 188 tg.resize( count ); 189 189 190 for (s td::size_t a = 0; a < tcount; ++a )191 { 192 uint32i1 = a * 3;193 uint32i2 = a * 3 + 1;194 uint32i3 = a * 3 + 2;190 for (size_t a = 0; a < tcount; ++a ) 191 { 192 size_t i1 = a * 3; 193 size_t i2 = a * 3 + 1; 194 size_t i3 = a * 3 + 2; 195 195 196 196 // TODO: simplify
Note: See TracChangeset
for help on using the changeset viewer.