Chris Pollett > Old Classes > PIC197 ( Print View ) Enrollment info Course Info:
Homework Assignments: Practice Exams: PIC: |
HW#1 --- last modified January 16 2019 00:35:19..Due date: April 17 5:30pm ========= Files to be submitted: p197hw1file1.cpp -- modified Ddsetup.cpp ====================== p197hw1file2.cpp -- modified Main.cpp p197hw1file3.cpp -- modified Bmp.cpp p197hw1file4.h -- modified Bmp.h p197hw1file5.h -- defines.h p197hw1file6.bmp -- your first bitmap file p197hw1file7.bmp -- your second bitmap file p197hw1file8.bmp -- your third bitmap file HW1 Purpose: To gain practice with palettes, reading BMP files, and with ============ setting up windows and callback procedures. Specification: ============== For this homework you will create a supped up version of Demo01 from the book. The first change you will make is to have it so that the the left and right arrow keys now allow one to cycle through among three bitmapped images of your choice (named as above). You should still do this through page-flipping to avoid tearing. The second change is that the up and down keys change the orientation of the bitmaps from right-side-up to upside-down. This can be done by adding a flag variable to the CBmpFileReader class, altering the constructor and draw functions. You should also set get member functions for this flag. Finally, hitting the space key should increase the read value of all the pallettes' red values by 1 (after 256 cycle back to 0). Point Breakdown for HW1 ======================= Commenting your part of the code ......1pt You make three decent looking bmp files1pt Left-right keys cycle through bmp files.............................1pt Above does not cause tearing.........1pt Up-down keys change orientation........1pt This does not cause tearing..........1pt CBmpFileReader modified as described above..1pt Space key works as above...............1pt Cycles back after 256................1pt This does not cause tearing..........1pt Total.................................10pts |