I think it would if I was also passing in GL_TRIANGLE_STRIPS, but I am just using GL_TRIANGLES.Gibble wrote:Not near a pi atm, and can't quite remember in OpenGL ES, but just thinking, should glDrawArrays take 6 instead of 18 indices in this particular case ?
Code: Select all
glDrawArrays(GL_TRIANGLES, 0, 6);
Here we go;AndyD wrote:Hi Dave,
Please do post back a link to the working code.
I'm afraid for OpenGL ES and the PI glut isn't that good as you need to use EGL to create a context, and if you are using ES 2.0 most of what come with glut (and free glut etc) is deprecated. At present there is no easy direct replacement for GLUT but I've written some code which you can see on my blog.For learning purpose (OpenGL or GL ES) I recommend using "Glut" because it does the whole OpenGL Setup for you.
Users browsing this forum: No registered users and 1 guest