Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
renderparticles.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 struct extentity;
4 struct physent;
5 struct vec;
6 
7 extern void particleinit();
8 extern void clearparticles();
9 extern void clearparticleemitters();
10 extern void seedparticles();
11 extern void updateparticles();
12 extern void renderparticles(bool mainpass = false);
13 extern bool printparticles(extentity &e, char *buf, int len);
14 extern void regularshape(int type, int radius, int color, int dir, int num, int fade, const vec &p, float size, int gravity, int vel = 200, const vec* modfrom=nullptr, const vec* modto=nullptr); // bomberman
15 
16 
17 extern bool canaddparticles();
18 extern void regular_particle_splash(int type, int num, int fade, const vec &p, int color = 0xFFFFFF, float size = 1.0f, int radius = 150, int gravity = 2, int delay = 0);
19 extern void regular_particle_flame(int type, const vec &p, float radius, float height, int color, int density = 3, float scale = 2.0f, float speed = 200.0f, float fade = 600.0f, int gravity = -15);
20 extern void particle_splash(int type, int num, int fade, const vec &p, int color = 0xFFFFFF, float size = 1.0f, int radius = 150, int gravity = 2);
21 extern void particle_trail(int type, int fade, const vec &from, const vec &to, int color = 0xFFFFFF, float size = 1.0f, int gravity = 20);
22 extern void particle_text(const vec &s, const char *t, int type, int fade = 2000, int color = 0xFFFFFF, float size = 2.0f, int gravity = 0);
23 extern void particle_textcopy(const vec &s, const char *t, int type, int fade = 2000, int color = 0xFFFFFF, float size = 2.0f, int gravity = 0);
24 extern void particle_icon(const vec &s, int ix, int iy, int type, int fade = 2000, int color = 0xFFFFFF, float size = 2.0f, int gravity = 0);
25 extern void particle_meter(const vec &s, float val, int type, int fade = 1, int color = 0xFFFFFF, int color2 = 0xFFFFF, float size = 2.0f);
26 extern void particle_flare(const vec &p, const vec &dest, int fade, int type, int color = 0xFFFFFF, float size = 0.28f, physent *owner = nullptr);
27 extern void particle_fireball(const vec &dest, float max, int type, int fade = -1, int color = 0xFFFFFF, float size = 4.0f);
28 extern void removetrackedparticles(physent *owner = nullptr);
29 
void particle_trail(int type, int fade, const vec &from, const vec &to, int color=0xFFFFFF, float size=1.0f, int gravity=20)
Definition: renderparticles.cpp:950
const T & max(const inexor::rpc::SharedVar< T > &a, const T &b)
Definition: SharedVar.hpp:224
GLenum GLsizei GLsizei height
Definition: glexts.hpp:291
void particle_flare(const vec &p, const vec &dest, int fade, int type, int color=0xFFFFFF, float size=0.28f, physent *owner=nullptr)
Definition: renderparticles.cpp:1003
void updateparticles()
Definition: renderparticles.cpp:1289
void regularshape(int type, int radius, int color, int dir, int num, int fade, const vec &p, float size, int gravity, int vel=200, const vec *modfrom=nullptr, const vec *modto=nullptr)
Definition: renderparticles.cpp:1044
void regular_particle_flame(int type, const vec &p, float radius, float height, int color, int density=3, float scale=2.0f, float speed=200.0f, float fade=600.0f, int gravity=-15)
Definition: renderparticles.cpp:1161
void clearparticles()
Definition: renderparticles.cpp:774
Definition: ents.hpp:128
bool canaddparticles()
Definition: renderparticles.cpp:931
void particle_splash(int type, int num, int fade, const vec &p, int color=0xFFFFFF, float size=1.0f, int radius=150, int gravity=2)
Definition: renderparticles.cpp:942
ICOMMAND * f(float *a, float *b), floatret(*a **b)
void particle_meter(const vec &s, float val, int type, int fade=1, int color=0xFFFFFF, int color2=0xFFFFF, float size=2.0f)
Definition: renderparticles.cpp:993
void particle_icon(const vec &s, int ix, int iy, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
Definition: renderparticles.cpp:986
void renderparticles(bool mainpass=false)
Definition: renderparticles.cpp:806
Definition: ents.hpp:102
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
void removetrackedparticles(physent *owner=nullptr)
Definition: renderparticles.cpp:785
void seedparticles()
Definition: renderparticles.cpp:1271
void particleinit()
Definition: renderparticles.cpp:767
void t(T x, const char *cmp)
Definition: utilTest.cpp:52
void clearparticleemitters()
Definition: renderparticles.cpp:101
#define dir(name, v, d, s, os)
Definition: physics.cpp:2014
GLuint GLuint GLintptr GLsizeiptr size
Definition: glexts.hpp:412
void particle_textcopy(const vec &s, const char *t, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
Definition: renderparticles.cpp:977
bool printparticles(extentity &e, char *buf, int len)
Definition: renderparticles.cpp:1254
static void color(const bvec &v, uchar alpha=255)
Definition: glemu.hpp:71
void particle_text(const vec &s, const char *t, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
Definition: renderparticles.cpp:969
void particle_fireball(const vec &dest, float max, int type, int fade=-1, int color=0xFFFFFF, float size=4.0f)
Definition: renderparticles.cpp:1009
void regular_particle_splash(int type, int num, int fade, const vec &p, int color=0xFFFFFF, float size=1.0f, int radius=150, int gravity=2, int delay=0)
Definition: renderparticles.cpp:936