My Project: openb3dlib.mod/openb3d/src/stencil.h Source File

My Project

stencil.h
Go to the documentation of this file.
1 /*
2 * stencil.h
3 * minib3d
4 *
5 *
6 */
7
8 #ifndef STENCIL_H
9 #define STENCIL_H
10
11 #include "entity.h"
12 #include "camera.h"
13 #include "mesh.h"
14 //#include "surface.h"
15
16 class Stencil{
17 public:
18
19 static int midStencilVal;
20
21 list<Mesh*> StencilMesh_list;
22 list<int> StencilMode_list;
23
24 float cls_r,cls_g,cls_b;
25 bool cls_color,cls_zbuffer;
26
27 float alpha;
28 int stencil_mode;
29 int stencil_operator;
30
31 Stencil(){
32 cls_r=0;cls_g=0;cls_b=0;
33 cls_color=true;cls_zbuffer=true;
34 alpha=1;
35 stencil_mode=1;
36 stencil_operator=1;
37 }
38
39 static Stencil* CreateStencil();
40 void StencilMesh(Mesh* mesh, int mode=1);
41 void StencilClsColor(float r,float g,float b);
42 void StencilClsMode(int color,int zbuffer);
43 void StencilAlpha(float a);
44 void StencilMode(int m, int o=1);
45
46 void UseStencil();
47
48 };
49
50
51
52
53 #endif
54
entity.h
Stencil::cls_zbuffer
bool cls_zbuffer
Definition: stencil.h:25
Stencil::StencilMesh_list
list< Mesh * > StencilMesh_list
Definition: stencil.h:21
Mesh
Definition: mesh.h:34
Stencil::UseStencil
void UseStencil()
Definition: stencil.cpp:72
Stencil::cls_color
bool cls_color
Definition: stencil.h:25
Stencil::cls_r
float cls_r
Definition: stencil.h:24
camera.h
mesh.h
Stencil::StencilClsMode
void StencilClsMode(int color, int zbuffer)
Definition: stencil.cpp:55
Stencil
Definition: stencil.h:16
Stencil::alpha
float alpha
Definition: stencil.h:27
Stencil::CreateStencil
static Stencil * CreateStencil()
Definition: stencil.cpp:26
Stencil::cls_b
float cls_b
Definition: stencil.h:24
Stencil::midStencilVal
static int midStencilVal
Definition: stencil.h:19
Stencil::Stencil
Stencil()
Definition: stencil.h:31
Stencil::StencilClsColor
void StencilClsColor(float r, float g, float b)
Definition: stencil.cpp:47
load3ds::mesh
Mesh * mesh
Definition: 3ds.cpp:46
Stencil::stencil_mode
int stencil_mode
Definition: stencil.h:28
Stencil::stencil_operator
int stencil_operator
Definition: stencil.h:29
Stencil::StencilMode_list
list< int > StencilMode_list
Definition: stencil.h:22
Stencil::StencilMode
void StencilMode(int m, int o=1)
Definition: stencil.cpp:66
Stencil::StencilMesh
void StencilMesh(Mesh *mesh, int mode=1)
Definition: stencil.cpp:36
Stencil::StencilAlpha
void StencilAlpha(float a)
Definition: stencil.cpp:62
Stencil::cls_g
float cls_g
Definition: stencil.h:24