C4 Engine
C4 Engine API Documentation


Defined in:  C4Renderable.h
Unmaps a vertex buffer.

void EndUpdate(void);

void EndUpdateSync(void);

The EndUpdate function unmaps the storage for a vertex buffer that was previously mapped using the VertexBuffer::BeginUpdate function. Once a vertex buffer is unmapped, it is no longer legal to write to the buffer returned by the BeginUpdate function.

The EndUpdateSync variant of the EndUpdate function should normally be called to ensure that the GPU driver is being accessed properly in multithreaded contexts. The EndUpdate function should only be called if it's a certainty that it is being called from the main thread. Both functions have the same effect.
See Also