diff options
author | Eugene Sandulenko | 2010-08-06 13:13:25 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:35:55 +0000 |
commit | 47904bc7b2992189bb554833f00a79ff0fea9fb8 (patch) | |
tree | 1cec51758c6741b970bd064fafee77607b9f884f /engines/sword25/gfx/opengl/swimage.h | |
parent | ca17def625154e5f758b797e4fc48c76b0566320 (diff) | |
download | scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.gz scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.bz2 scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.zip |
SWORD25: Mass-astyle.
svn-id: r53222
Diffstat (limited to 'engines/sword25/gfx/opengl/swimage.h')
-rw-r--r-- | engines/sword25/gfx/opengl/swimage.h | 65 |
1 files changed, 42 insertions, 23 deletions
diff --git a/engines/sword25/gfx/opengl/swimage.h b/engines/sword25/gfx/opengl/swimage.h index bbab7c3833..870cbeb830 100644 --- a/engines/sword25/gfx/opengl/swimage.h +++ b/engines/sword25/gfx/opengl/swimage.h @@ -23,7 +23,7 @@ * */ -/* +/* * This code is based on Broken Sword 2.5 engine * * Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdoerfer @@ -50,36 +50,55 @@ namespace Sword25 { // CLASS DEFINITION // ----------------------------------------------------------------------------- -class BS_SWImage : public BS_Image -{ +class BS_SWImage : public BS_Image { public: - BS_SWImage(const Common::String & Filename, bool & Result); + BS_SWImage(const Common::String &Filename, bool &Result); virtual ~BS_SWImage(); - virtual int GetWidth() const { return m_Width; } - virtual int GetHeight() const { return m_Height; } - virtual BS_GraphicEngine::COLOR_FORMATS GetColorFormat() const { return BS_GraphicEngine::CF_ARGB32; } - - virtual bool Blit(int PosX = 0, int PosY = 0, - int Flipping = BS_Image::FLIP_NONE, - BS_Rect* pPartRect = NULL, - unsigned int Color = BS_ARGB(255, 255, 255, 255), - int Width = -1, int Height = -1); - virtual bool Fill(const BS_Rect* FillRectPtr, unsigned int Color); + virtual int GetWidth() const { + return m_Width; + } + virtual int GetHeight() const { + return m_Height; + } + virtual BS_GraphicEngine::COLOR_FORMATS GetColorFormat() const { + return BS_GraphicEngine::CF_ARGB32; + } + + virtual bool Blit(int PosX = 0, int PosY = 0, + int Flipping = BS_Image::FLIP_NONE, + BS_Rect *pPartRect = NULL, + unsigned int Color = BS_ARGB(255, 255, 255, 255), + int Width = -1, int Height = -1); + virtual bool Fill(const BS_Rect *FillRectPtr, unsigned int Color); virtual bool SetContent(const byte *Pixeldata, unsigned int Offset, unsigned int Stride); virtual unsigned int GetPixel(int X, int Y); - virtual bool IsBlitSource() const { return false; } - virtual bool IsBlitTarget() const { return false; } - virtual bool IsScalingAllowed() const { return false; } - virtual bool IsFillingAllowed() const { return false; } - virtual bool IsAlphaAllowed() const { return false; } - virtual bool IsColorModulationAllowed() const { return false; } - virtual bool IsSetContentAllowed() const { return false; } + virtual bool IsBlitSource() const { + return false; + } + virtual bool IsBlitTarget() const { + return false; + } + virtual bool IsScalingAllowed() const { + return false; + } + virtual bool IsFillingAllowed() const { + return false; + } + virtual bool IsAlphaAllowed() const { + return false; + } + virtual bool IsColorModulationAllowed() const { + return false; + } + virtual bool IsSetContentAllowed() const { + return false; + } private: - unsigned int * _ImageDataPtr; + unsigned int *_ImageDataPtr; - int m_Width; + int m_Width; int m_Height; }; |