Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
ParticleFountainUpdater.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2015 DIVIDE-Studio
3 Copyright (c) 2009 Ionut Cava
4
5 This file is part of DIVIDE Framework.
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software
8 and associated documentation files (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
11 subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
19 OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21 */
22
23#pragma once
24#ifndef DVD_PARTICLE_FOUNTAIN_UPDATER_H_
25#define DVD_PARTICLE_FOUNTAIN_UPDATER_H_
26
28
29namespace Divide
30{
31
33{
34public:
48
49 void update(const U64 deltaTime, ParticleData &p) override;
50};
51};
52
53#endif //DVD_PARTICLE_FOUNTAIN_UPDATER_H_
Container to store data for a given set of particles.
Definition: ParticleData.h:59
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
int32_t I32
uint64_t U64
F32 _velocityVariance
velocity variance (_velocity + rand(-_velocityVariance, _velocityVariance))
I32 _emissionInterval
particles per second
F32 _velocity
particle velocity on emission
I32 _lifetime
lifetime, in milliseconds of each particle
void update(const U64 deltaTime, ParticleData &p) override
I32 _emissionIntervalVariance
particles per second used to vary emission (_emissionInterval + rand(-_emissionIntervalVariance,...
I32 _lifetimeVariance
liftime variance (_lifetime + rand(-_lifetimeVariance, _lifetimeVariance))