Changeset 2781 for GTP/trunk/App/Demos/Vis/CHC_revisited/Geometry.cpp
- Timestamp:
- 06/19/08 22:57:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Geometry.cpp
r2776 r2781 11 11 Vector3 *normals, 12 12 float *texcoords, 13 int numVertices): 13 int numVertices, 14 bool delData): 14 15 mVertices(vertices), 15 16 mNormals(normals), … … 19 20 { 20 21 Prepare(); 22 23 if (delData) 24 { 25 delete [] mVertices; mVertices = NULL; 26 delete [] mNormals; mNormals = NULL; 27 if (!mTexCoords) delete [] mTexCoords; mTexCoords = NULL; 28 } 21 29 } 22 30 31 Geometry::~Geometry() 32 { 33 if (!mVertices) delete [] mVertices; 34 if (!mNormals) delete [] mNormals; 35 if (!mTexCoords) delete [] mTexCoords; 23 36 37 // delete vbo 38 glDeleteBuffersARB(1, &mVboId); 39 } 40 41 24 42 void Geometry::Prepare() 25 43 {
Note: See TracChangeset
for help on using the changeset viewer.