Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
decal.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Decals are used to temporarily blend over the texture of a wall/model because of some past event.
4 // Could get superseeded by a background world loader/updater.
5 
6 #include "inexor/shared/geom.hpp"
7 
8 extern void initdecals();
9 extern void cleardecals();
10 extern void renderdecals(bool mainpass = false);
11 
12 // decal
13 enum
14 {
18 };
19 
20 extern void adddecal(int type, const vec &center, const vec &surface, float radius, const bvec &color = bvec(0xFF, 0xFF, 0xFF), int info = 0);
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
3-dimensional UNSIGNED CHAR vector.
Definition: geom.hpp:1398
void adddecal(int type, const vec &center, const vec &surface, float radius, const bvec &color=bvec(0xFF, 0xFF, 0xFF), int info=0)
Definition: decal.cpp:661
Definition: decal.hpp:16
void initdecals()
Definition: decal.cpp:618
void cleardecals()
Definition: decal.cpp:623
Definition: decal.hpp:17
void renderdecals(bool mainpass=false)
Definition: decal.cpp:635
mathmatics for vectors, matrices, quaterions and more
static void color(const bvec &v, uchar alpha=255)
Definition: glemu.hpp:71
Definition: decal.hpp:15