Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ParticleSystem.cpp

00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 // Includes 00012 #include "ParticleSystem.h" 00013 #include <OpenCAL/Object.h> 00014 #include <OpenCAL/Renderer.h> 00015 using namespace OpenCAL; 00016 00017 using namespace std; 00018 00019 00020 /****************************** 00021 * Constructors and destructor * 00022 ******************************/ 00023 00024 ParticleSystem::ParticleSystem(System *parent) 00025 : PhysicsSystem(parent) 00026 { 00027 } 00028 00029 ParticleSystem::~ParticleSystem() 00030 { 00031 } 00032 00033 00034 /************************ 00035 * Get and set functions * 00036 ************************/ 00037 00038 00039 /****************** 00040 * Other functions * 00041 ******************/ 00042 00043 void ParticleSystem::render() 00044 { 00045 Renderer *renderer = m_parent->getRenderer(); 00046 if(!renderer) return; 00047 00048 for(unsigned int i = 0; i < m_objects.size(); ++i) 00049 renderer->renderPoint(m_objects[i]->getPosition(), 2.0f); 00050 } 00051 00052 /********************** 00053 * Protected functions * 00054 **********************/

Generated on Sun Aug 15 19:19:22 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8