*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@545 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-08 19:06:27 +00:00
parent 30460a0aad
commit ee43650523
+13 -3
View File
@@ -36,7 +36,19 @@ void mipstats(int a, int b, int c) { if(showm) conoutf("1x1/2x2/4x4: %d / %d / %
COMMAND(showmip, ARG_NONE);
#define stripend() { if(floorstrip || deltastrip) { addstrip(GL_TRIANGLE_STRIP, striptex, firstindex, verts.length()-firstindex); floorstrip = deltastrip = false; }; };
VAR(mergestrips, 0, 1, 1);
#define stripend() \
if(floorstrip || deltastrip) { \
int type = GL_TRIANGLE_STRIP, len = verts.length()-firstindex; \
if(mergestrips) switch(len) { \
case 3: type = GL_TRIANGLES; break; \
case 4: type = GL_QUADS; swap(vertex, verts.last(), verts[verts.length()-2]); break; \
}; \
addstrip(type, striptex, firstindex, len); \
floorstrip = deltastrip = false; \
};
void finishstrips() { stripend(); };
sqr sbright, sdark;
@@ -175,8 +187,6 @@ void render_flatdelta(int wtex, int x, int y, int size, float h1, float h2, floa
nquads++;
};
VAR(mergestrips, 0, 1, 1);
void render_2tris(sqr *h, sqr *s, int x1, int y1, int x2, int y2, int x3, int y3, sqr *l1, sqr *l2, sqr *l3) // floor/ceil tris on a corner cube
{
stripend();