00001
00002
00003
00004
00005 #ifndef LIBWIISPRITE_GAMEWINDOW
00006 #define LIBWIISRPITE_GAMEWINDOW
00007
00008 #include <stdlib.h>
00009 #include <gccore.h>
00010 #include "image.h"
00011
00013 namespace wsp{
00015 class GameWindow{
00016 public:
00018 GameWindow();
00020 virtual ~GameWindow();
00021
00024 void InitVideo();
00026 void StopVideo();
00029 static bool IsInitialized();
00032 void SetBackground(GXColor bgcolor);
00034 void Flush();
00035
00038 static u32 GetWidth();
00041 static u32 GetHeight();
00042 protected:
00043 private:
00044 void* _frameBuffer[2]; u32 _fb;
00045 bool _first;
00046 GXRModeObj* _rmode;
00047 void* _gp_fifo;
00048 static u32 _width, _height;
00049 static bool _initialized;
00050 static Image* _lastimage;
00051 static bool _lastimagebilinear;
00052
00053 friend class Image;
00054 };
00055 };
00056
00113 #endif