00001 #include "bcsignals.h" 00002 #include "guicast.h" 00003 00004 00005 00006 00007 class TestWindow : public BC_Window 00008 { 00009 public: 00010 TestWindow() : BC_Window("Test", 00011 0, 00012 0, 00013 320, 00014 240) 00015 { 00016 }; 00017 00018 void create_objects() 00019 { 00020 set_color(BLACK); 00021 set_font(LARGEFONT); 00022 draw_text(10, 50, "Hello world"); 00023 flash(); 00024 flush(); 00025 }; 00026 }; 00027 00028 00029 int main() 00030 { 00031 new BC_Signals; 00032 TestWindow window; 00033 window.create_objects(); 00034 window.run_window(); 00035 }
1.4.4