diff options
author | Max Lingua | 2009-03-06 00:21:06 +0000 |
---|---|---|
committer | Max Lingua | 2009-03-06 00:21:06 +0000 |
commit | 6d870649507594a87c40d8fae0f5aa204d0b4520 (patch) | |
tree | 1305cadbe11e73544fd0d2c534bd07382c70f0c0 /backends/platform/ps2/Gs2dScreen.h | |
parent | 865b213439d624b5eced128ffa3eb6a318ab37b7 (diff) | |
download | scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.gz scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.bz2 scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.zip |
Implemented _overlayFormat in Gs2dScreen
Modified PS2FSNode openForReading -> createReadStream
openForWriting -> createWriteStream
Started Common::EventManager *OSystem::getEventManager()
on backend side...
svn-id: r39141
Diffstat (limited to 'backends/platform/ps2/Gs2dScreen.h')
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.h b/backends/platform/ps2/Gs2dScreen.h index 94ef218a40..1c4de6ef5a 100644 --- a/backends/platform/ps2/Gs2dScreen.h +++ b/backends/platform/ps2/Gs2dScreen.h @@ -27,9 +27,12 @@ #define __GS2DSCREEN_H__ #include "sysdefs.h" +#include "backends/base-backend.h" + #include "backends/platform/ps2/DmaPipe.h" #include "graphics/surface.h" + enum TVMode { TV_DONT_CARE = 0, TV_PAL, @@ -73,6 +76,10 @@ public: void clearOverlay(void); void showOverlay(void); void hideOverlay(void); + Graphics::PixelFormat getOverlayFormat(void); + int16 getOverlayWidth(void); + int16 getOverlayHeight(void); + //- mouse routines void setMouseOverlay(const uint8 *buf, uint16 width, uint16 height, uint16 hotSpotX, uint16 hotSpotY, uint8 transpCol); void showMouse(bool show); @@ -83,12 +90,13 @@ public: void wantAnim(bool runIt); void quit(void); + private: void uploadToVram(void); void createAnimTextures(void); DmaPipe *_dmaPipe; - uint8 _videoMode; + uint8 _tvMode; uint16 _tvWidth, _tvHeight; GsVertex _blitCoords[2]; TexVertex _texCoords[2]; @@ -99,6 +107,24 @@ private: uint32 _texPtrs[4]; // Graphics::Surface _framebuffer; + + /* TODO : check if we do need this */ + struct VideoState { + bool setup; + + bool fullscreen; + bool aspectRatio; + + int mode; + int scaleFactor; + + int screenWidth, screenHeight; + int overlayWidth, overlayHeight; + }; + + VideoState _videoMode; + /* */ + uint16 _width, _height, _pitch; int16 _mouseX, _mouseY, _hotSpotX, _hotSpotY; uint32 _mouseScaleX, _mouseScaleY; @@ -110,6 +136,7 @@ private: uint16 *_overlayBuf; uint8 *_screenBuf; uint32 *_clut; + Graphics::PixelFormat _overlayFormat; int _screenSema; int _vblankStartId, _vblankEndId, _dmacId, _animTid; |