Changeset 148
- Timestamp:
- 07/07/13 03:10:37 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/interface/mesh.hh
r142 r148 80 80 { 81 81 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; 84 85 } 85 86 -
trunk/nv/interface/stream.hh
r124 r148 17 17 namespace nv 18 18 { 19 19 20 enum class origin : uint32 20 21 { 21 SET = 0 x00,22 CUR = 0x01,23 END = 0x02,22 SET = 0, 23 CUR = 1, 24 END = 2, 24 25 }; 25 26 -
trunk/src/formats/obj_loader.cc
r147 r148 194 194 uint32 i3 = a * 3 + 2; 195 195 196 // TODO: simplify 197 196 198 const vec3& v1 = vp[i1]; 197 199 const vec3& v2 = vp[i2]; … … 206 208 vec2 st1 = w2 - w1; 207 209 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;216 210 217 211 float s1 = w2.x - w1.x;
Note: See TracChangeset
for help on using the changeset viewer.