void SMreadPostAsCompactPre::close() { nverts = -1; nfaces = -1; v_count = -1; f_count = -1; bb_min_f = 0; bb_max_f = 0; smreader->close(); delete vertex_hash; delete waiting_area; delete output_triangles; destroyVertexBuffer(); destroyTriangleBuffer(); }
VertexBuffer::~VertexBuffer() { destroyVertexBuffer(); }
OgreVertexBuffer::~OgreVertexBuffer() { destroyVertexBuffer(); }
void OgreVertexBuffer::resizeVertexBuffer() { mVertexCount = mNeedVertexCount + RENDER_ITEM_STEEP_REALLOCK; destroyVertexBuffer(); createVertexBuffer(); }
void destroyGlApplication() { destroyShader(); destroyVertexBuffer(); }