Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
explosion.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "inexor/engine/particles.hpp" // for listrenderer, ::PT_FIREBALL
4 
5 struct vec;
6 
8 {
9  fireballrenderer(const char *texname)
11  {}
12 
13  void startrender() override;
14 
15  void endrender() override;
16 
17  void cleanup() override;
18 
19  int finddepthfxranges(void **owners, float *ranges, int numranges, int maxranges, vec &bbmin, vec &bbmax);
20 
21  void seedemitter(particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity) override;
22 
23  void renderpart(listparticle *p, const vec &o, const vec &d, int blend, int ts) override;
24 };
27 
fireballrenderer bluefireballs
array< range, 5 > ranges
Definition: random.cpp:39
fireballrenderer fireballs
Definition: particles.hpp:45
Definition: particles.hpp:58
void seedemitter(particleemitter &pe, const vec &o, const vec &d, int fade, float size, int gravity) override
Definition: explosion.cpp:210
void cleanup() override
Definition: explosion.cpp:148
void startrender() override
Definition: explosion.cpp:130
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
Definition: particles.hpp:157
Definition: particles.hpp:151
Definition: explosion.hpp:7
void renderpart(listparticle *p, const vec &o, const vec &d, int blend, int ts) override
Definition: explosion.cpp:216
int d
Definition: octaedit.cpp:1749
int finddepthfxranges(void **owners, float *ranges, int numranges, int maxranges, vec &bbmin, vec &bbmax)
Definition: explosion.cpp:153
void endrender() override
Definition: explosion.cpp:143
Definition: particles.hpp:54
fireballrenderer(const char *texname)
Definition: explosion.hpp:9
Definition: particles.hpp:37
const char * texname
Definition: particles.hpp:111
GLuint GLuint GLintptr GLsizeiptr size
Definition: glexts.hpp:412