Embed presentation
Download to read offline



The document contains code for two OpenGL computer graphics assignments. The first assignment code draws a single yellow square in the center of the window. The second assignment code draws two overlapping squares - a red square taking up the entire window and a smaller yellow square in the center. Both assignments initialize an OpenGL window and rendering context and call display and main functions to set up and run the OpenGL program.

