Simulant  21.12-194
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
direction_manipulator.h
1 #pragma once
2 
3 #include "../particle_script.h"
4 #include "curves.h"
5 
6 namespace smlt {
7 
9  public Manipulator {
10 
11 public:
12  DirectionManipulator(ParticleScript* script, const smlt::Vec3& dir):
13  Manipulator(script, "direction"),
14  dir_(dir) {}
15 
16 
17 private:
18  void do_manipulate(
19  ParticleSystem* system,
20  Particle* particles,
21  std::size_t particle_count, float dt) const override;
22 
23  smlt::Vec3 dir_;
24 };
25 
26 
27 }
smlt::Manipulator
Definition: particle_script.h:38
smlt::Vec3
Definition: vec3.h:23
smlt
Definition: animation.cpp:25
smlt::ParticleSystem
Definition: particle_system.h:43
smlt::DirectionManipulator
Definition: direction_manipulator.h:9
smlt::Particle
Definition: particle_system.h:21
smlt::ParticleScript
Definition: particle_script.h:71