C4 Engine
C4 Engine API Documentation

SharedVertexBuffer::Release

Defined in:  C4Renderable.h
Releases a reference to a shared vertex buffer.
Prototype

int32 Release(void);

Description
The Release function decrements the reference count for a shared vertex buffer and returns the new reference count. If the new reference count becomes zero, then the Release function also deallocates the vertex buffer's resources by calling the VertexBuffer::EstablishVertexBuffer function with a size parameter of zero before returning.

The Release function should be called to balance each previous call to the SharedVertexBuffer::Retain function for the same shared vertex buffer.
See Also

SharedVertexBuffer::Retain