Two problem needed Using C++

There are two problems in this assignment. For each problem,

  • 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.

Don't use plagiarized sources. Get Your Custom Essay on
Two problem needed Using C++
Just from $13/Page
Order Essay
  • 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 o’clock.
  • 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.

Problem 2. Modify the interactive program paint.cpp.

  • Arrange the five small boxes against the left border of the screen, starting from the top-left corner.
  • Keep the current draw_mode if a new one is not picked.

Provide three options in the pixel menu: double the size, triple the size, and halve the size.

Still struggling to complete your homework?
Get instant homework help from our expert academic writers!