Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Question about OGL Example
i'm working on an OpenGL project and looked in the Qt Examples. I found this example code:
Can someone tell me, where the ogl shader is actually told that the indices are located in VBO 1 and the positions in VBO 0??
Do you mean in the
Yes, most of it I understand. But I don't know why ogl knows that the indices are in vbo 1 and not in 0 or 2.
That's done in
ouch, i haven't seen the different. Thank you
arrayBuf.allocate(vertices, 24 * sizeof(VertexData));
indexBuf.allocate(indices, 34 * sizeof(GLushort));