2. GLUT Triangle(Computer-Graphics)
Shows how to use GLUT.
Has minimal structure: only main() and a display callback.
Draws only using glColor and glVertex within glBegin and glEnd in the display callback.
Uses only the GL_POLYGON drawing mode.
Illustrates glClear and glFlush.
// A sim...
rajkumarpatil.hashnode.dev3 min read