Open.GL icon indicating copy to clipboard operation
Open.GL copied to clipboard

Multiple primitives tutorial (or basic anatomy of an OpenGL renderer)

Open gnzlbg opened this issue 11 years ago • 1 comments

I just finished your tutorials and they are great. I noticed, however, that most of the examples deal with a single primitive. It would be awesome to have a tutorial explaining how to set up the pipeline for working with multiple different primitives. I guess that drawing 2 cubes and 2 tetras (one of each moving) should be enough to explain:

  • how to set up multiple VAOs, with different EBOs, in an initialization step,
  • how to update some of the model matrices in a loop,
  • how to draw the different VAOs in a loop.

I think such a tutorial could be a good complement to the rest. It would give a feeling about how a "real-world" OpenGL program looks like.

Bests, Gonzalo

gnzlbg avatar Oct 27 '14 15:10 gnzlbg

Yes, I really need this too. I have been trying to figure this out by myself, but it's hard...

blackwolf12333 avatar Jan 21 '15 19:01 blackwolf12333