-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrenderpatch_scene.cpp
More file actions
executable file
·48 lines (46 loc) · 1.15 KB
/
Copy pathrenderpatch_scene.cpp
File metadata and controls
executable file
·48 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Scene {
public:
bool enableblending;
bool enabledepthtest;
bool enablestenciltest;
bool enabletexture;
bool enableshading;
int depthfunction;
int stencilfunction;
double stencilreferencevalue;
int stencilfail;
int stencilpassdepthbufferfail;
int stencilpassdepthbufferpass;
bool depthbufferwrite;
bool colorbufferwrite;
int culling;
int blendfunction[2];
double blendcolor[4];
Shading Q;
Texture T;
RenderImage I;
Transformation TT;
Scene()
{
enableblending=false;
enabledepthtest=false;
enablestenciltest=false;
enabletexture=false;
enableshading=false;
depthfunction =2;
stencilfunction =1;
stencilreferencevalue =0;
stencilfail = 0;
stencilpassdepthbufferfail=0;
stencilpassdepthbufferpass=0;
depthbufferwrite = true;
colorbufferwrite = true;
culling=1;
blendfunction[0]=7;
blendfunction[1]=6;
blendcolor[0]=1;
blendcolor[1]=0;
blendcolor[2]=0;
blendcolor[3]=1;
}
};