Dec 17, 2011 · Although OpenGL is basically made for 3D programming, drawing 2D shapes gives the basic outline and introduction to OpenGL and gives the idea about how to start drawing objects in OpenGL. The following example draws a triangle and a rectangle to a GLUT window. Nehe Opengl Tutorial - Free ebook download as PDF File (.pdf), Text File (.txt) or read book online for free. Unfortunately, it was very hard to find any information about OpenGL in books or on the net. I spent hours trying to make code work and even more time begging people for help in email and on IRC.* * * * * Modeling Objects A prototype has a default size, position, and orientation You need to perform modeling transformations to position it within the scene myCube() - Create a unit cube with its origin at (0,0,0) To create a 2 x 0.1 x 2 table top - need to call glScalef(2, 0.1, 2) Instance Transformation Start with a prototype object (a ... It's mostly about triangles really. There are a number of *Draw commands to render something in OpenGL. Primitive. The *Draw command contain a mode parameter that tell OpenGL what