Changeset 148 for trunk


Ignore:
Timestamp:
07/07/13 03:10:37 (12 years ago)
Author:
epyon
Message:
  • md3 loader - work in progress
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/mesh.hh

    r142 r148  
    8080                {
    8181                        if ( m_indices ) delete m_indices; // error?
    82                         m_indices = new vertex_attribute<T>("");
    83                         return m_indices;
     82                        vertex_attribute<T>* result = new vertex_attribute<T>("");
     83                        m_indices = result;
     84                        return result;
    8485                }
    8586
  • trunk/nv/interface/stream.hh

    r124 r148  
    1717namespace nv
    1818{
     19
    1920        enum class origin : uint32
    2021        {
    21                 SET = 0x00,
    22                 CUR = 0x01,
    23                 END = 0x02,
     22                SET = 0,
     23                CUR = 1,
     24                END = 2,
    2425        };
    2526
  • trunk/src/formats/obj_loader.cc

    r147 r148  
    194194                uint32 i3 = a * 3 + 2;
    195195
     196                // TODO: simplify
     197
    196198                const vec3& v1 = vp[i1];
    197199                const vec3& v2 = vp[i2];
     
    206208                vec2 st1  = w2 - w1;
    207209                vec2 st2  = w3 - w1;
    208 
    209                 float x1 = v2.x - v1.x;
    210                 float y1 = v2.y - v1.y;
    211                 float z1 = v2.z - v1.z;
    212 
    213                 float x2 = v3.x - v1.x;
    214                 float y2 = v3.y - v1.y;
    215                 float z2 = v3.z - v1.z;
    216210
    217211                float s1 = w2.x - w1.x;
Note: See TracChangeset for help on using the changeset viewer.