Cs602... Assignment
Cs602... Assignment
Cs602... Assignment
Code:
#include <GL/glut.h>
#include <cmath>
#include <ctime
#include <string>
/Window dimensions
/ User ID
glRasterPos2f(x, y);
void drawClockFace()
glEnd);
float yl = sin(theta):
glEnd();
glBegin(GL LINES);
glEnd);
void display() {
glLoadldentity0;
drawClockFace);
Standard Time (U
glutSwapBuffers();
glutPostRedisplay():
/ Function to initialize OpenGL settings
void initOpenGL) {
glMatrixMode(GL PROJECTION);
glLoadldentity0;
glMatrixMode(GL_ MODELVIEW):
Main function
glutinit(&argc, argv);
glutCreateWindow("Analog Clock");
initOpenGLO:
unwtsey naid Oazi
glutMainlLoop0;
return 0;
include cGL/glut
id Oa:
-Erronr