Ignore:
Timestamp:
11/14/08 17:22:49 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/VboFormatConverter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/VboFormatConverter/VboFormatConverter.cpp

    r3120 r3127  
    1919                delete [] mGeometry[i]->mVertices; 
    2020                delete [] mGeometry[i]->mNormals; 
     21                delete [] mGeometry[i]->mTangents; 
    2122                delete [] mGeometry[i]->mTexcoords; 
    2223 
     
    8384        geom->mVertices = new SimpleVec[numElements]; 
    8485        geom->mNormals = new SimpleVec[numElements]; 
     86        geom->mTangents = new SimpleVec[numElements]; 
    8587        geom->mTexcoords = new Texcoord[numElements]; 
    8688 
     
    105107                geom->mNormals[line] = normal; 
    106108                geom->mTexcoords[line] = tex; 
     109                geom->mTangents[line] = tangent; 
    107110 
    108111                ++ line; 
     
    125128        str.write(reinterpret_cast<char *>(geom->mVertices), sizeof(SimpleVec) * vertexCount); 
    126129        str.write(reinterpret_cast<char *>(geom->mNormals), sizeof(SimpleVec) * vertexCount); 
     130        str.write(reinterpret_cast<char *>(geom->mTangents), sizeof(SimpleVec) * vertexCount); 
    127131 
    128132        int texCoordCount = geom->mTexcoordCount; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/VboFormatConverter/VboFormatConverter.h

    r3119 r3127  
    3232                SimpleVec *mVertices; 
    3333                SimpleVec *mNormals; 
     34                SimpleVec *mTangents; 
    3435                Texcoord *mTexcoords; 
    3536 
Note: See TracChangeset for help on using the changeset viewer.