TDME2
1.9.121
src
tdme
engine
prototype
PrototypeParticleSystem_PointParticleEmitter.cpp
Go to the documentation of this file.
1
#include <
tdme/engine/prototype/PrototypeParticleSystem_PointParticleEmitter.h
>
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/engine/model/Color4.h
>
5
#include <
tdme/math/Vector3.h
>
6
7
using
tdme::engine::model::Color4
;
8
using
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter
;
9
using
tdme::math::Vector3
;
10
11
PrototypeParticleSystem_PointParticleEmitter::PrototypeParticleSystem_PointParticleEmitter()
12
{
13
count
= 2000;
14
lifeTime
= 1500;
15
lifeTimeRnd
= 500;
16
mass
= 0.0f;
17
massRnd
= 0.0f;
18
position
.
set
(0.0f, 0.0f, 0.0f);
19
velocity
.
set
(0.0f, 1.0f, 0.0f);
20
velocityRnd
.
set
(0.0f, 0.5f, 0.0f);
21
colorStart
.
set
(0.5f, 0.5f, 0.5f, 0.5f);
22
colorEnd
.
set
(1.0f, 1.0f, 1.0f, 0.5f);
23
}
Color4.h
PrototypeParticleSystem_PointParticleEmitter.h
Vector3.h
tdme::engine::model::Color4Base::set
void set(const array< float, 4 > &color)
Set up color.
Definition:
Color4Base.h:68
tdme::engine::model::Color4
Color 4 definition.
Definition:
Color4.h:20
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter
Prototype point particle emitter definition.
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:19
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::colorEnd
Color4 colorEnd
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:30
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::velocityRnd
Vector3 velocityRnd
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:28
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::velocity
Vector3 velocity
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:27
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::colorStart
Color4 colorStart
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:29
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::lifeTimeRnd
int64_t lifeTimeRnd
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:23
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::mass
float mass
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:24
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::lifeTime
int64_t lifeTime
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:22
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::position
Vector3 position
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:26
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::count
int count
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:21
tdme::engine::prototype::PrototypeParticleSystem_PointParticleEmitter::massRnd
float massRnd
Definition:
PrototypeParticleSystem_PointParticleEmitter.h:25
tdme::math::Vector3
3D vector 3 class
Definition:
Vector3.h:22
tdme::math::Vector3::set
Vector3 & set(float x, float y, float z)
Set up vector.
Definition:
Vector3.h:73
tdme.h
Generated by
1.9.3