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. IndexBuffer and vertex size
Qt 6.11 is out! See what's new in the release blog

IndexBuffer and vertex size

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 342 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by
    #1

    I'm confused about the basics of vbo and ibo.
    I think ibo contains indices to vertices in a vbo.
    In this case how does the ibo "know" the size of each vertex in the vbo?
    E.g. suppose each vertex consists of three floats x, y, z. The vbo contains x, y, and z for each vertex. Now if the ibo references vertices 0, 1 and 2, how do the opengl drawing primitives know that the ibo's reference to vertex 0 starts at byte 0 of the vbo, vertex 1 starts at 3*sizeof(float) in the vbo, and so on?

    Thanks
    Tom

    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