Changeset 374 for trunk/src/formats/obj_loader.cc
- Timestamp:
- 05/26/15 17:35:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/obj_loader.cc
r319 r374 53 53 std::string next_name; 54 54 55 s td::size_t size;56 bool 55 size_t size; 56 bool eof; 57 57 58 58 obj_reader(); … … 172 172 { 173 173 mesh_data_reader( bool normals ) : m_normals( normals ) {} 174 virtual s td::size_t add_face( uint32* vi, uint32* ti, uint32* ni, size_t count )174 virtual size_t add_face( uint32* vi, uint32* ti, uint32* ni, size_t count ) 175 175 { 176 176 if ( count < 3 ) return 0; // TODO : report error? … … 178 178 // TODO : support if normals not present; 179 179 vec3 nullvec; 180 s td::size_t result = 0;180 size_t result = 0; 181 181 // Simple triangulation - obj's shouldn't have more than quads anyway 182 182 … … 278 278 } 279 279 280 for (s td::size_t a = 0; a < count; ++a )280 for (size_t a = 0; a < count; ++a ) 281 281 { 282 282 const vec3& n = m_data[a].normal;
Note: See TracChangeset
for help on using the changeset viewer.