From: havoc Date: Tue, 22 Oct 2002 07:10:26 +0000 (+0000) Subject: added a comment describing GL triangle strip order (why add it to this? convenience) X-Git-Tag: RELEASE_0_2_0_RC1~118 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=470783c8823b168c730176e6d713807d09e9feba;p=xonotic%2Fdarkplaces.git added a comment describing GL triangle strip order (why add it to this? convenience) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2550 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index c8ab4bef..bf28711a 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -85,6 +85,23 @@ static int backendunits, backendactive; static qbyte *varray_bcolor; static mempool_t *gl_backend_mempool; +/* +note: here's strip order for a terrain row: +0--1--2--3--4 +|\ |\ |\ |\ | +| \| \| \| \| +A--B--C--D--E + +A0B, 01B, B1C, 12C, C2D, 23D, D3E, 34E + +*elements++ = i + row; +*elements++ = i; +*elements++ = i + row + 1; +*elements++ = i; +*elements++ = i + 1; +*elements++ = i + row + 1; +*/ + int polygonelements[768]; void GL_Backend_AllocArrays(void)