A short introduction¶
What you will need?
To get something rendered, you will need a
To create a
Program object, you will need to supply it your shader(s)
as strings. Having a vertex and fragment shader is the most common use case
as this will render something visible to a screen or framebuffer.
All of the objects above can only be created from a
Here is our checklist:
- Install ModernGL.
- Create a Context.
- Create a Program object.
- Create a VertexArray object.
Proceed to the next step.