Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
blend.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Blendmaps, used to blend two different images together.
4 #include "inexor/network/SharedVar.hpp" // for SharedVar
5 #include "inexor/shared/cube_types.hpp" // for uchar, uint
6 
7 struct ivec;
8 struct stream;
9 struct vec;
10 
11 
13 
14 struct BlendMapCache;
15 
17 extern void freeblendmapcache(BlendMapCache *&cache);
18 extern bool setblendmaporigin(BlendMapCache *cache, const ivec &o, int size);
19 extern bool hasblendmap(BlendMapCache *cache);
20 extern uchar lookupblendmap(BlendMapCache *cache, const vec &pos);
21 extern void resetblendmap();
22 extern void enlargeblendmap();
23 extern void shrinkblendmap(int octant);
24 extern void optimizeblendmap();
25 extern void stoppaintblendmap();
26 extern void trypaintblendmap();
27 extern void renderblendbrush(uint tex, float x, float y, float w, float h);
28 extern void renderblendbrush();
29 extern bool loadblendmap(stream *f, int info);
30 extern void saveblendmap(stream *f);
31 extern uchar shouldsaveblendmap();
unsigned int uint
Definition: cube_types.hpp:9
BlendMapCache * newblendmapcache()
Definition: blend.cpp:149
bool hasblendmap(BlendMapCache *cache)
Definition: blend.cpp:191
void optimizeblendmap()
Definition: blend.cpp:377
bool setblendmaporigin(BlendMapCache *cache, const ivec &o, int size)
Definition: blend.cpp:153
void saveblendmap(stream *f)
Definition: blend.cpp:882
void resetblendmap()
Definition: blend.cpp:459
void shrinkblendmap(int octant)
Definition: blend.cpp:481
ICOMMAND * f(float *a, float *b), floatret(*a **b)
vector with 3 floats and some useful methods.
Definition: geom.hpp:110
SharedVar< int > blendpaintmode
bool loadblendmap(stream *f, int info)
Definition: blend.cpp:857
void stoppaintblendmap()
Definition: blend.cpp:709
Legacy file system streams.
Definition: stream.hpp:22
unsigned char uchar
Basic type definitions.
Definition: cube_types.hpp:7
void renderblendbrush(uint tex, float x, float y, float w, float h)
Definition: renderva.cpp:706
void freeblendmapcache(BlendMapCache *&cache)
Definition: blend.cpp:151
GLuint GLuint GLintptr GLsizeiptr size
Definition: glexts.hpp:412
SharedVar wrapper for primitive/immutable objects.
Definition: SharedVar.hpp:55
void trypaintblendmap()
Definition: blend.cpp:715
Definition: blend.cpp:142
3-dimensional INTEGER vectors
Definition: geom.hpp:1226
uchar shouldsaveblendmap()
Definition: blend.cpp:887
uchar lookupblendmap(BlendMapCache *cache, const vec &pos)
Definition: blend.cpp:211
void enlargeblendmap()
Definition: blend.cpp:466