History

added update to particle

ZappoMan committed 12 years ago

Commit 68a51f51 parent d0944b010 files · +76 −13Browse files

Showing the changes to interface/src/ParticleTreeRenderer.cpp (1 of 10 files). Show all

Unified · Split

interface/src/ParticleTreeRenderer.cpp+7−0
@@ -18,6 +18,13 @@ ParticleTreeRenderer::ParticleTreeRenderer() : · 17 unmodified lines
18ParticleTreeRenderer::~ParticleTreeRenderer() {18ParticleTreeRenderer::~ParticleTreeRenderer() {
19}19}
20 20
21void ParticleTreeRenderer::update() {
22 if (_tree) {
23 ParticleTree* tree = (ParticleTree*)_tree;
24 tree->update();
25 }
26}
27
21void ParticleTreeRenderer::renderElement(OctreeElement* element) {28void ParticleTreeRenderer::renderElement(OctreeElement* element) {
22 // actually render it here...29 // actually render it here...
23 // we need to iterate the actual particles of the element30 // we need to iterate the actual particles of the element