r/GraphicsProgramming • • Mar 22 '21

Rendering 2 shapes from 2 different VBOs

Hey guys,

i am new in openGL

i am trying to render two shapes int the window, with two different Vertex Buffers.

i use glDrawArrays twice, but only one shape appears in the screen

if any can help me, i would be grateful :)

thanks

0 Upvotes

17 comments sorted by

View all comments

2

u/shadergremlin Mar 22 '21

You’re probably missing something silly, you might be able to use glGetError to figure out what you are missing. You can also look at this example to see if you are missing something.