forked from OctaForge/OctaCore
add header for stain
This commit is contained in:
parent
ff68228a6f
commit
274faebccc
|
@ -1,3 +1,4 @@
|
|||
#include "stain.hh"
|
||||
#include "texture.hh"
|
||||
|
||||
#include "engine.hh"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "rendertext.hh"
|
||||
#include "renderva.hh"
|
||||
#include "shader.hh"
|
||||
#include "stain.hh"
|
||||
#include "texture.hh"
|
||||
#include "world.hh"
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "rendergl.hh"
|
||||
#include "rendersky.hh"
|
||||
#include "renderva.hh"
|
||||
#include "stain.hh"
|
||||
#include "texture.hh"
|
||||
#include "world.hh"
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
16
src/engine/stain.hh
Normal file
16
src/engine/stain.hh
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue