OpenGL: Drawing Squares and Rectangles using Mouse Input

POSTED BY , UPDATED ON April 20th, 2011


The objective of the lab was to learn about developing a drawing board on which one can make Regular Quadrilaterals of different sizes and colors.

Use left click for giving the points, A square is made between two left clicks, right mouse click is used for changing color.

For further details read the “Instruction.txt” file in the downloadable content.

Source Code:

Download FREE OpenGL code for Yagami drawing Board.