Question is essentially how to replace OGL polygon drawing with OGL-ES triangles. I thought I could replace it with triangle fans but that didn’t work fully.
I store the original tex[] and vertex[] vector info in some global float arrays accessible via GetVertex () and GetTexture().
The model gets drawn ok, but small triangles and rectangulars are not correctly textured. They appear solid grey. As I move around in the game, the areas that are not correctly textured change all the time, resulting in a very flickery look and feel.
I’ve also tried to rewrite the polygon code by drawing n-2 triangles (GL_TRIANGLES) for an n polygon. The (not too surprising) result is exactly the same as for GL_TRIANGLE_FAN.
For the record…
The game draws (1) the 3D model using polygons and then (2) applies lightning also using polygons. Things get messed up if I only change GL_POLYGON to GL_TRIANGLE_FAN in (1), if I change this in (2) as well then all works just fine.