PDA

View Full Version : How do I unrender a mesh once I've rendered it?



xman84
04-19-2012, 12:49 PM
Do I just clear out the index and vertex buffers?

I'm going to keep an array of meshes and as they go out of view I need to unrender them but I may reuse the same buffers when players come into view. Assuming that is a good idea.

tonyo_au
04-19-2012, 08:28 PM
Just don't draw them in the render loop.