what is openGL? .............................................................................................................. Open Graphics Library (OpenGL) is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics and it is used in the fields of computer-aided design (CAD), virtual reality, scientific visualization, information visualization, flight simulation, video games etc. This tutorial will help you about ..
How to draw a 2D rectangle in openGL? ................................................................................ we use line-drawing program to make a line between two specified points and finally we draw a 2d traingle.This is done with the help of using GL_QUADS bulit-in command.