Main | API | WebRender | clearVBO

Function

clearVBO(vbo);

Clears the data in the vertex buffer with the id provided.

Parameters

vbo - [Unsigned Integer]

The id of the texture this is effecting. The id was provided by getVBOId.

Return

None.

Description

This allows for vertex data stored in WebRender to be 'deleted' once they it is no longer needed. The vertex data array is set to null and will be completely deleted by garbage collection. The id can then be reused on a new vertex buffer if needed.

See more detailed information about vertex buffers here.

Additional Notes

None.