00001 #ifndef AEDOVERLAY_H 00002 #define AEDOVERLAY_H 00003 00004 #include "aedGUI/include/aedGui.h" 00005 00006 void Pow2Expand(int x, int y, int *texX, int *texY); 00007 typedef SDL_Surface aedOverlaySurface; 00008 00009 class aedOverlay 00010 { 00011 public: 00012 static aedApp *app; 00013 static aedWidget *root; 00014 static int active; 00015 static bool init(void); 00016 static void eventHandler(void *event); 00017 00018 protected: 00019 aedOverlaySurface *mySurface; 00020 aedWidget *myRoot; 00021 bool ownSurface; 00022 bool texSurface; 00023 bool activated; 00024 00025 public: 00026 aedOverlay(int posX, int posY, int width, int height, 00027 bool create_rendering_surface = false, 00028 bool rendering_surface_is_texture = false); 00029 ~aedOverlay(); 00030 aedWidget *getRoot(void); 00031 aedOverlaySurface *getSurface(void); 00032 void setSurface(aedOverlaySurface *sface); 00033 void updateTexture(uint texId); 00034 void render(void); 00035 void activate(void); 00036 void deactivate(void); 00037 bool isActive(void) {return activated;} 00038 }; 00039 00040 #endif // AEDOVERLAY_H
1.4.7