1
2
3
4
5
6
7
8
9
10
11
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
+
+
|
// rendercubes.cpp: sits in between worldrender.cpp and rendergl.cpp and fills
// the vertex array for different cube surfaces.
#include "cube.h"
#import "Command.h"
static struct vertex *verts = NULL;
int curvert;
static int curmaxverts = 10000;
void
setarraypointers()
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
-
-
+
-
-
+
-
|
const float TEXTURESCALE = 32.0f;
bool floorstrip = false, deltastrip = false;
int oh, oy, ox, ogltex; // the o* vars are used by the stripification
int ol3r, ol3g, ol3b, ol4r, ol4g, ol4b;
int firstindex;
bool showm = false;
void
showmip()
COMMAND(showmip, ARG_NONE, ^{
{
showm = !showm;
}
})
COMMAND(showmip, ARG_NONE)
void
mipstats(int a, int b, int c)
{
if (showm)
conoutf(@"1x1/2x2/4x4: %d / %d / %d", a, b, c);
}
|