Re: glDrawElements with TRIANGLE_STRIP
Posted by millerni456 on Sep 28, 2011; 7:27pm
URL: https://forum.jogamp.org/glDrawElements-with-TRIANGLE-STRIP-tp3374872p3377083.html
Unfortunately I am unsure what you mean by this.
When I switch to the "Buffer" object, I can no longer fill it with data.
So I tried switching to "ByteBuffer" to fill them as such:
for(int i = 0; i<vertices.length; i++)
{
vertexBuffer.put( (byte) vertices[i] ); //casts the float vertex to a byte.
}
However, my geometry will not render at all if I do this.