---
title: "Discussion on \"2. GLUT Triangle(Computer-Graphics)\" | Hashnode"
description: "Discussion on \"2. GLUT Triangle(Computer-Graphics)\". Shows how to use GLUT.\nHas minimal structure: only main() and a display callback.\nDraws only using glColor and glVertex within glBegin and glEnd in the display callback.\nUses only the GL_POLYGON drawing mode.\nIllustrates glClear and glFlush.\n// A sim..."
url: "https://hashnode.com/posts/2-glut-trianglecomputer-graphics/602b6fe5f1261277763afbb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [2\. GLUT Triangle(Computer-Graphics)](https://rajkumarpatil.hashnode.dev/2-glut-trianglecomputer-graphics?utm_source=hashnode&utm_medium=feed)

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...

Feb 16, 2021 · 3 min read · rajkumarpatil.hashnode.dev  
Read the article

## Written by

[Rajkumar V Patil](https://hashnode.com/@rajkumarpatil)

@rajkumarpatil

  
[View profile](https://hashnode.com/@rajkumarpatil)

Assistant Professor at NBN Sinhgad School of Engineering, Pune

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
