add header for stain

master
Daniel Kolesa 2020-05-13 00:52:56 +02:00
parent ff68228a6f
commit 274faebccc
7 changed files with 22 additions and 12 deletions

View File

@ -1,3 +1,4 @@
#include "stain.hh"
#include "texture.hh"
#include "engine.hh"

View File

@ -320,17 +320,6 @@ extern void renderparticles(int layer = PL_ALL);
extern bool printparticles(extentity &e, char *buf, int len);
extern void cleanupparticles();
// stain
enum { STAINBUF_OPAQUE = 0, STAINBUF_TRANSPARENT, STAINBUF_MAPMODEL, NUMSTAINBUFS };
struct stainrenderer;
extern void initstains();
extern void clearstains();
extern bool renderstains(int sbuf, bool gbuf, int layer = 0);
extern void cleanupstains();
extern void genstainmmtri(stainrenderer *s, const vec v[3]);
#endif
#endif

View File

@ -7,6 +7,7 @@
#include "rendertext.hh"
#include "renderva.hh"
#include "shader.hh"
#include "stain.hh"
#include "texture.hh"
#include "world.hh"

View File

@ -5,6 +5,7 @@
#include "rendergl.hh"
#include "rendersky.hh"
#include "renderva.hh"
#include "stain.hh"
#include "texture.hh"
#include "world.hh"

View File

@ -1,5 +1,6 @@
#include "material.hh"
#include "rendergl.hh"
#include "stain.hh"
#include "texture.hh"
#include "engine.hh"
@ -748,7 +749,7 @@ struct stainrenderer
}
};
stainrenderer stains[] =
static stainrenderer stains[] =
{
stainrenderer("<grey>media/particle/blood.png", SF_RND4|SF_ROTATE|SF_INVMOD),
stainrenderer("<grey>media/particle/pulse_scorch.png", SF_ROTATE, 500),

View File

@ -0,0 +1,16 @@
#ifndef ENGINE_STAIN_HH
#define ENGINE_STAIN_HH
#include <shared/geom.hh>
enum { STAINBUF_OPAQUE = 0, STAINBUF_TRANSPARENT, STAINBUF_MAPMODEL, NUMSTAINBUFS };
struct stainrenderer;
void initstains();
void clearstains();
bool renderstains(int sbuf, bool gbuf, int layer = 0);
void cleanupstains();
void genstainmmtri(stainrenderer *s, const vec v[3]);
#endif

View File

@ -4,6 +4,7 @@
#include "octa.hh"
#include "rendergl.hh" /* fovy */
#include "renderlights.hh"
#include "stain.hh"
#include "texture.hh"
#include "worldio.hh"
#include "world.hh"