00001 #ifndef FLIPBOOK_H 00002 #define FLIPBOOK_H 00003 00004 #include "guicast.h" 00005 #include "thread.h" 00006 00007 class FlipBookItem 00008 { 00009 public: 00010 Asset asset; 00011 long duration; // samples or frames depending on the asset 00012 }; 00013 00014 00015 class FlipBook : public BC_MenuItem 00016 { 00017 public: 00018 FlipBook(MWindow *mwindow); 00019 ~FlipBook(); 00020 00021 handle_event(); 00022 00023 MWindow *mwindow; 00024 }; 00025 00026 class FlipBookThread : public Thread 00027 { 00028 public: 00029 FlipBookThread(MWindow *mwindow); 00030 ~FlipBookThread(); 00031 00032 void run(); 00033 00034 MWindow *mwindow; 00035 }; 00036 00037 class FlipBookGUI : public BC_Window 00038 { 00039 public: 00040 FlipBookGUI(FlipBookThread *thread, MWindow *mwindow); 00041 ~FlipBookGUI(); 00042 00043 FlipBookThread *thread; 00044 MWindow *mwindow; 00045 }; 00046 00047 00048 00049 00050 #endif
1.4.4