Back to Evolution Project page
00001 #include "Screen.h" 00002 #include "configs.h" 00003 #include <stdio.h> 00004 #include <ClanLib/core.h> 00005 00006 int TScreen::Show() { 00007 00008 return SCREEN_DEFAULT; 00009 } 00010 00011 void TScreen::tile_bg(){ 00012 unsigned int i=0, j=0; 00013 for (i=0; i<WIDTH-(background->get_width()); i+= background->get_width() ) 00014 for (j=0; j<HEIGHT-(background->get_height()); j+= background->get_height() ) 00015 background->put_screen(i, j); 00016 } 00017 00018 void TScreen::wait_for_key(int key_to_wait) { 00019 while ( CL_Keyboard::get_keycode(key_to_wait) ) 00020 CL_System::keep_alive(); 00021 while (! CL_Keyboard::get_keycode(key_to_wait) ) 00022 CL_System::keep_alive(); 00023 while ( CL_Keyboard::get_keycode(key_to_wait) ) 00024 CL_System::keep_alive(); 00025 } 00026 00027 00028 void 00029 TScreen::OnMouseLeftClick(const CL_ClipRect& rectmouse){ 00030 return; 00031 } 00032 void 00033 TScreen::OnMouseRightClick(const CL_ClipRect& rectmouse){ 00034 return; 00035 }