00001
00002
00003
00004
00005 #ifndef LIBWIISPRITE_GAMEWINDOW
00006 #define LIBWIISRPITE_GAMEWINDOW
00007
00008 #include <stdlib.h>
00009 #include <gccore.h>
00010
00011 #define DEFAULT_FIFO_SIZE (1024*1024)
00012
00014 namespace wsp{
00016 class GameWindow{
00017 public:
00019 GameWindow();
00021 virtual ~GameWindow();
00022
00025 void InitVideo();
00027 void StopVideo();
00030 static bool IsInitialized();
00033 void SetBackground(GXColor bgcolor);
00035 void Flush();
00036
00039 static u32 GetWidth();
00042 static u32 GetHeight();
00043 protected:
00044 private:
00045 void* _frameBuffer[2]; u32 _fb;
00046 bool _first;
00047 GXRModeObj* _rmode;
00048 void* _gp_fifo;
00049 static u32 _width, _height;
00050 static bool _initialized;
00051 };
00052 };
00053
00110 #endif