Пример #1
0
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();
}
Пример #2
0
	VertexBuffer::~VertexBuffer()
	{
		destroyVertexBuffer();
	}
	OgreVertexBuffer::~OgreVertexBuffer()
	{
		destroyVertexBuffer();
	}
	void OgreVertexBuffer::resizeVertexBuffer()
	{
		mVertexCount = mNeedVertexCount + RENDER_ITEM_STEEP_REALLOCK;
		destroyVertexBuffer();
		createVertexBuffer();
	}
Пример #5
0
void destroyGlApplication()
{
    destroyShader();
    destroyVertexBuffer();
}