YourGameLib
Loading...
Searching...
No Matches
particles.h
Go to the documentation of this file.
1/*
2Copyright (c) 2019-2024 Alexander Scholz
3
4This software is provided 'as-is', without any express or implied
5warranty. In no event will the authors be held liable for any damages
6arising from the use of this software.
7
8Permission is granted to anyone to use this software for any purpose,
9including commercial applications, and to alter it and redistribute it
10freely, subject to the following restrictions:
11
121. The origin of this software must not be misrepresented; you must not
13 claim that you wrote the original software. If you use this software
14 in a product, an acknowledgment in the product documentation would be
15 appreciated but is not required.
162. Altered source versions must be plainly marked as such, and must not be
17 misrepresented as being the original software.
183. This notice may not be removed or altered from any source distribution.
19*/
20#ifndef YOURGAME_GLPARTICLES_H
21#define YOURGAME_GLPARTICLES_H
22
24#include "yourgame/gl_include.h"
26
27namespace yourgame
28{
29 namespace gl
30 {
32 {
33 public:
34 static Particles *make(const Config cfg, yourgame::gl::Geometry *geo);
35 ~Particles();
36 void tick(float dt) override;
38 GLsizei numParticles();
39
40 private:
43 };
44 } // namespace gl
45} // namespace yourgame
46
47#endif
Definition geometry.h:35
Definition particles.h:32
~Particles()
Definition particles.cpp:47
static Particles * make(const Config cfg, yourgame::gl::Geometry *geo)
Definition particles.cpp:28
GLsizei numParticles()
Definition particles.cpp:63
yourgame::gl::Geometry * geo()
Definition particles.cpp:58
void tick(float dt) override
ticks the particle system
Definition particles.cpp:52
Definition particles.h:39
Definition audio.h:27
Particle system configuration.
Definition particles.h:48