Hello Triangle
Kevin| 1 min read| December 03, 2022| [Devlog] #OpenGL #Context #RendererWhat better way to start than the "Hello World" of graphics programming, drawing a triangle?
We are going to use our playground from the context chapter as base.
Drawing Stuff in OpenGL
As mentioned before, I won't go into all the details when it comes to OpenGL, you are better served with the amazing learnopengl.com. This little series will go more into the "practical" use and the implementation, while I will just give a short TL;DR explanation at best.
There are a few things we need to draw in modern OpenGL:
- Buffer objects
- Vertex Attributes
- Shaders
So let's dive into the buffer objects first.