Assignment 2 Lab Challenges can be found here.


Matrices and OpenGL notes:

These structures are normally passed to OpenGl through an array.

You can, for example, examine the methods used to pass information to shaders through uniforms (see value argument).


glUniform - OpenGL 4 Reference Pages


You can also analyse how to define and pass data for drawing:


Hello Triangle


Even so, care is needed, since the passing format may vary from function to function and even using different parameters for the same function.