From 470783c8823b168c730176e6d713807d09e9feba Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 22 Oct 2002 07:10:26 +0000 Subject: [PATCH] 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 --- gl_backend.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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) -- 2.39.2