jasonbcox / rocket

ROCKET Engine
Other
1 stars 0 forks source link

Enable Graphics::Mesh and Graphics::Transform to be handled by multiple Scenes #12

Closed jasonbcox closed 11 years ago

jasonbcox commented 11 years ago

For Scene: Add two key-value maps with Mesh* keys and a set of Object* values (for opaque and transparent objects) so that each Scene keeps track of its own objects-mesh relationships. For Mesh and Transform: Record the number of scene users. Only delete if the count reaches 0. For Transform: only delete children in the destructor if that number reaches 0.

jasonbcox commented 11 years ago

There appears to be a memory cleanup bug as well. Although it may not be related to these changes, I'll fix that problem before closing this ticket. I want a completely stable build before merging this branch.

jasonbcox commented 11 years ago

Fix finished by a9a4e75