0% found this document useful (0 votes)
131 views1 page

A Mini Project On Clock Using Opengl

This project displays an interactive clock face using OpenGL graphics. It fetches the local time from the computer system and uses that to position the hour, minute, and second hands on a circular clock face. Additional graphical elements include cubes representing minutes, blocks representing hours, and a digital time display at the bottom. Users can toggle between orthographic and perspective views, turn lighting on or off, and exit the program.

Uploaded by

Saurabh Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views1 page

A Mini Project On Clock Using Opengl

This project displays an interactive clock face using OpenGL graphics. It fetches the local time from the computer system and uses that to position the hour, minute, and second hands on a circular clock face. Additional graphical elements include cubes representing minutes, blocks representing hours, and a digital time display at the bottom. Users can toggle between orthographic and perspective views, turn lighting on or off, and exit the program.

Uploaded by

Saurabh Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

A mini project on Clock using OpenGL

Description: The Project is idea to display the clock with computer graphics. This project just used the local time, fetching from the computer and display it on screen. This project implements the wall clock with the round circular board and three conic geometrics which forms the different (sec, min & hour) hands. Small cubes are also made for the minutes, while each hour is represented with a large block. Digit display of the clock timing is also placed at the bottom. The 'localtime(&ltime)' function is used to get the local time. With proper maths and conversion of the time for sec, min and hours the graphical hands are made to make movement. This project made two views one ortho and other perspective. Usages: Right click for the options About the Project : Display information about the project Toggle Ortho/Perspective view : Switch between the Ortho and Perspective views. Light on/off : For light on clock and off it. Quit : Exit program.

You might also like