t_bitmap.cpp

Go to the documentation of this file.
00001 // Implementation Details:
00002 //
00003 // Author: Chris Koeritz
00004 
00005 #include <wp_passive/bitmap.h>
00006 #include <wp_passive/manager.h>
00007 
00008 #include <stdlib.h>
00009 
00010 void main()
00011 {
00012   manager windowing_system;
00013   keyboard keys;
00014 
00015   window testwin("Bitmap Example", rectangle(0, 0, 639, 479));
00016 
00017   bitmap fred(20, 30);
00018   fred.set_canvas(&testwin);
00019   for (int i = 0; i < 20; i++) fred.set_bit(point(i, 0), GREEN);
00020   fred.draw();
00021   keys.get(WAIT);
00022 
00023 /*  fred.read_bitmap("mountain.bit");
00024   fred.set_origin(point(0, 0));
00025   fred.draw();
00026   fred.set_origin(point(120, 50));
00027   fred.draw(); */
00028 
00029   keys.get(WAIT);
00030 }

Generated on Fri Nov 28 04:29:34 2008 for HOOPLE Libraries by  doxygen 1.5.1