Re: glDrawElements() and glColorPointer()
Posted by
gmseed on
Dec 07, 2011; 5:15pm
URL: https://forum.jogamp.org/glDrawElements-and-glColorPointer-tp3564836p3568055.html
Hi
I read at:
http://www.khronos.org/opengles/sdk/1.1/docs/man/glColorPointer.xmlregarding glColorPointer():
"Specifies the number of components per color. Must be 4. The initial value is 4."
so I redid both of my vertex and colour arrays to handle size*4 and changed the pointer functions to specify the new size:
glv.glVertexPointer(4, GL.GL_FLOAT, 0, mVertices); // Set The Vertex Pointer To Our Vertex Data
glv.glColorPointer( 4, GL.GL_FLOAT, 0, mVertexColours);
and I get exactly the same problem of a half-rendered object?
Graham