Professional Documents
Culture Documents
Star Project
Star Project
h>
#include <math.h>
void display() {
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.0, 0.0, 1.0);
drawStar(0.5, 0.1, 0.5, 0.2, 5); // Draw a star at the origin
glFlush();
}