Hi,
I can see how to render wireframe primitives in open gl. By using glPolygonMode, however this call seems to be missing from Open GL ES.
Does anyone know how to render primitives in wireframe on Open GL ES?
Thanks Rich
Hi,
I can see how to render wireframe primitives in open gl. By using glPolygonMode, however this call seems to be missing from Open GL ES.
Does anyone know how to render primitives in wireframe on Open GL ES?
Thanks Rich
I'm not entirely certain, my exposure to OpenGL ES is just enough to it dangerous for me to play with, but my impression of how it works is:
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
Turns on drawing full textures. Rather than doing that, if you use
glEnableClientState(GL_COLOR_ARRAY);
and use the color array instead of the texture array, then it will simply draw lines instead of fill textures. I think.
It not possible to render wireframe in OpenGL ES. You can draw using lines/line strip instead of triangles but some of the lines will be lost. It's not real wireframe but it can help you see some problems. In OpenGL(not ES) you can change the way polygons are rendered using glPolygonMode, but this is not supported in OpenGL ES