#include <iostream>#include <vector>#include "GraphicsLib.h"#include "ThreadTimer.h"#include <math.h>#include "ParticleSystems.h"#include "Debugger.h"Go to the source code of this file.
Namespaces | |
| namespace | std |
Functions | |
| void | MakeFloor () |
| void | display () |
| void | update () |
| void | initPSManager () |
| void | multiCollision () |
| void | fire () |
| void | smoke () |
| void | init () |
| void | InitGL () |
| void | resetPMManager () |
| void | KeyPressed (unsigned char ch, int x, int y) |
| void | SpecialKeyPressed (int key, int x, int y) |
| void | motion (int x, int y) |
| static void | Button (int button, int down, int x, int y) |
| void | intro () |
| int | main (int argc, char **argv) |
Variables | |
| Emitter * | emit |
| DataStructure * | dataParticle |
| ParticleSystem * | particleSys |
| ParticleSystemManager * | manager |
| int | WIDTH = 1024 |
| int | HEIGHT = 800 |
| int | FRAMESPERSEC = 25 |
| Camera | Cam |
| int | spinxface = 0 |
| int | spinyface = 0 |
| int | spinzface = 0 |
| int | origx |
| int | origy |
| int | origz |
| int | RotateXY |
| int | RotateXZ = 0 |
| int | Rotate |
|
||||||||||||||||||||
|
The button callback is called when a mouse key is pressed Definition at line 439 of file main.cpp. References origx, origy, and Rotate. Referenced by main(). |
|
|
The draw Function draws according to the Framerate Definition at line 88 of file main.cpp. References FRAMESPERSEC, manager, ParticleSystems::ParticleSystemManager::render(), spinxface, spinyface, spinzface, and ParticleSystems::ParticleSystemManager::update(). Referenced by main(). |
|
|
This demonstration shows the use of a texture as well as the change in colour over time. Definition at line 242 of file main.cpp. References ParticleSystems::Solver::addForce(), ParticleSystems::ParticleSystemManager::addSystem(), dataParticle, emit, ParticleSystems::Emitter::flareColor, ParticleSystems::ParticleSystemManager::getNextID(), manager, ParticleSystems::Emitter::particleLife, ParticleSystems::Emitter::particleSizeFlare, and particleSys. Referenced by KeyPressed(). |
|
|
Main init Function initalises the ParticleSystemManager Definition at line 322 of file main.cpp. References initPSManager(). Referenced by main(). |
|
|
InitGL set's up the opengl drawing state Definition at line 327 of file main.cpp. References Cam. Referenced by main(). |
|
|
Initialises the ParticleSystemManager Definition at line 149 of file main.cpp. References manager. Referenced by init(), and KeyPressed(). |
|
|
Prints the main functions to the screen Definition at line 459 of file main.cpp. Referenced by main(). |
|
||||||||||||||||
|
Definition at line 365 of file main.cpp. References fire(), initPSManager(), manager, multiCollision(), ParticleSystems::ParticleSystemManager::pause(), resetPMManager(), and smoke(). Referenced by main(). |
|
||||||||||||
|
Application main loop Definition at line 478 of file main.cpp. References Button(), display(), HEIGHT, init(), InitGL(), intro(), KeyPressed(), motion(), SpecialKeyPressed(), update(), and WIDTH. |
|
|
Draws a Floor from J. Maceys CameraTest example |
|
||||||||||||
|
Mouse rotation funciton Definition at line 424 of file main.cpp. References origx, origy, Rotate, spinxface, and spinyface. Referenced by main(). |
|
|
This method test two things first running multiple ParticleSystems second apply collision detection to both Definition at line 161 of file main.cpp. References ParticleSystems::DataStructure::addCollisionObject(), ParticleSystems::Solver::addForce(), ParticleSystems::ParticleSystemManager::addSystem(), ParticleSystems::DataStructure::collision, ParticleSystems::Emitter::flareColor, ParticleSystems::ParticleSystemManager::getNextID(), manager, and ParticleSystems::Emitter::particleLife. Referenced by KeyPressed(). |
|
|
Function to reset the particles and start again Definition at line 358 of file main.cpp. References manager, ParticleSystems::ParticleSystemManager::reset(), and ParticleSystems::ParticleSystemManager::restart(). Referenced by KeyPressed(). |
|
|
Definition at line 279 of file main.cpp. References ParticleSystems::Solver::addForce(), ParticleSystems::ParticleSystemManager::addSystem(), dataParticle, emit, ParticleSystems::Emitter::flareColor, ParticleSystems::ParticleSystemManager::getNextID(), manager, ParticleSystems::Emitter::particleLife, ParticleSystems::Emitter::particleSizeFlare, and particleSys. Referenced by KeyPressed(). |
|
||||||||||||||||
|
Camera controls Definition at line 388 of file main.cpp. References Cam. Referenced by main(). |
|
|
Gets called when the system is idle Definition at line 143 of file main.cpp. Referenced by main(). |
|
|
Definition at line 47 of file main.cpp. Referenced by InitGL(), and SpecialKeyPressed(). |
|
|
|
|
|
Used by the fire and smoke demo Definition at line 28 of file main.cpp. Referenced by fire(), ParticleSystems::ParticleSystem::ParticleSystem(), and smoke(). |
|
|
Frame rate per second Definition at line 44 of file main.cpp. Referenced by display(). |
|
|
height of the window Definition at line 41 of file main.cpp. Referenced by main(). |
|
|
The ParticleSystemManager to controll all the ParticleSystems
Definition at line 36 of file main.cpp. Referenced by display(), fire(), initPSManager(), KeyPressed(), multiCollision(), resetPMManager(), and smoke(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 51 of file main.cpp. Referenced by display(). |
|
|
width of the window Definition at line 39 of file main.cpp. Referenced by main(). |
1.4.1