A short introductionΒΆ
What you will need?
To get something rendered, you will need a VertexArray.
VertexArrays can be created from a Program object and several Buffer objects.
To create a Program object, you will need some Shader objects.
Once you have your Program object, you can fill a Buffer with your data,
then pass them to VertexArray, then call VertexArray.render().
All of the objects above can only be created from a Context object.
Here is our checklist:
- Install ModernGL.
- Create a Context.
- Create a Program object.
- Create a VertexArray object.
Proceede to the next step.