0
I made a 3D object in OpenGL. But I think my code is extremely bad and now, I want to make my code better.
Here is my code:
#include <GL/glut.h>
void display()
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex2f(0.0, 0.0);
glVertex2f(0.5, 0.0);
glVertex2f(0.5, 0.5...