00001 #ifndef CTHREAD_H 00002 #define CTHREAD_H 00003 00004 #include "defines.h" 00005 #include "Exception.h" 00006 00007 namespace annie { 00008 class TerminatedException : Exception { 00009 public: 00010 TerminatedException() : Exception("Terminated during waiting on event") {} 00011 }; 00012 00013 char getLastKeyPressed(); 00014 char waitForKey(); 00015 00017 void initControlThread(uint winW = 600, uint winH = 600); 00018 00023 void goodbyeControlThread(); 00024 00026 void changeWindowSize(uint winW, uint winH, bool wait=true); 00027 00029 void forceRedraw(bool wait=true); 00030 00031 class Video; 00032 Video *getVideo(); 00033 } //annie; 00034 #endif