Ignore:
Timestamp:
05/26/15 17:35:06 (10 years ago)
Author:
epyon
Message:
  • MASSIVE commit
  • common.hh - size_t, ptrdiff_t, nv:: namespace, NV_ALIGN_OF and basic template tools
  • STL - algorithm.hh, iterator.hh, limits.hh, numeric.hh and type_info.hh
  • STL - updates to memory, array and string
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/obj_loader.cc

    r319 r374  
    5353        std::string next_name;
    5454
    55         std::size_t size;
    56         bool        eof;
     55        size_t size;
     56        bool   eof;
    5757
    5858        obj_reader();
     
    172172{
    173173        mesh_data_reader( bool normals ) : m_normals( normals ) {}
    174         virtual std::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 )
    175175        {
    176176                if ( count < 3 ) return 0; // TODO : report error?
     
    178178                // TODO : support if normals not present;
    179179                vec3 nullvec;
    180                 std::size_t result = 0;
     180                size_t result = 0;
    181181                // Simple triangulation - obj's shouldn't have more than quads anyway
    182182
     
    278278                }
    279279
    280                 for (std::size_t a = 0; a < count; ++a )
     280                for (size_t a = 0; a < count; ++a )
    281281                {
    282282                        const vec3& n = m_data[a].normal;
Note: See TracChangeset for help on using the changeset viewer.