In this tutorial, we are going to use GLM to just set up our cube’s position and orientation in the scene and render the cube from it’s 3D space to its 2D space on screen. This library is made to work with perfectly OpenGL and GLSL programs so this is suitable for us to use for the creation of our scenes. GLM (OpenGL Mathematics) is a mathematics library that offers a suite of math functions and classes for use along with GLSL. But before we get into those two simple lines of code let’s talk about the GLM Math library which will help us do that. After we setup our Array Buffer and Element Array Buffer, we setup our camera by creating the view and projection matrices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |