Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Set the display window size to 512 by 512 pixels; Show your name (or both names if you work with a partner) in the
C++
- Set the display window size to 512 by 512 pixels;
- Show your name (or both names if you work with a partner) in the title of the display window.
- By showing your name(s) in the title, you certify that the job is your individual work (or a fair share with your partner).
Problem 1. Animation program. Use OpenGL to render a running clock.
- The clock face is a stippled disk.
- Use the pattern you designed in homework one to stipple the clock.
- There are 12 ticks.
- There are 3 hands: the hour hand, the minute hand, and the second hand.
- Your clock should work correctly, which means
- When the second hand turns a round, the minute hand moves one sixtieth of the circle.
- When the minute hand turns a round, the hour hand moves one twelfth of the circle.
- When the hour hand points to a tick, both the minute hand and the second hand point to the tick of 12 oclock.
- Start the time at 3:45 exactly.
- Use timer to handle the animation.
- Set the timer 10 times faster than the actual time, which means the second hand moves per 0.1 seconds.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started