Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how i make a multiple cube throughout qopengl es2.0 cube example
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 117 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gangyeolkim
    wrote on last edited by
    #1

    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(https://doc.qt.io/qt-5/qtopengl-cube-example.html)

    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
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved