Login  Register

Re: glDrawElements() and glColorPointer()

Posted by gmseed on Dec 07, 2011; 12:52pm
URL: https://forum.jogamp.org/glDrawElements-and-glColorPointer-tp3564836p3567260.html

Hi gouessej

Yes, it's the same on both my desktop and laptop.

The geometry and colouring works fines with glInterleavedArrays() and glDrawArrays() as indicated.

However, glDrawElements() causes problems when using glColorMaterial() and lighting enabled.

I'm setting up 4 classes for rendering a triangle mesh using VAs, VAs with interleaving, VBOs and VBOs+shaders and encountered this problem when I started using indices with glDrawElements().

Graham