Important: Please read the Qt Code of Conduct -

how i make a multiple cube throughout qopengl es2.0 cube example

  • hi !

    because of my project , i'm studying about Qt OpenGL ES 2.0
    currently, i 'm trying to make two cubes using cube Example(

    i tried ,

    doubling vbo(var name : vertices, indices), and changed like below,
    glDrawElements(GL_TRIANGLE_STRIP, 34, GL_UNSIGNED_SHORT, 0); // before
    glDrawElements(GL_TRIANGLE_STRIP, 68, GL_UNSIGNED_SHORT, 0); // after

    but, i can't get two cube ( of course, i changed other cube's vbo position )

    how i approach to this?

    if you have a good way or url , please give me please.

    thank you for reading!

    this is my test enviroment

    • ubuntu 16.04
    • Qt 5.6.3

Log in to reply