ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

SurfaceSdlGraphicsManager Class Reference

SDL Surface based graphics manager. More...

#include <surfacesdl-graphics.h>

Inheritance diagram for SurfaceSdlGraphicsManager:
Collaboration diagram for SurfaceSdlGraphicsManager:

List of all members.

Public Member Functions

 SurfaceSdlGraphicsManager (SdlEventSource *sdlEventSource, SdlWindow *window)
virtual ~SurfaceSdlGraphicsManager ()
virtual bool hasFeature (OSystem::Feature f) const override
virtual void setFeatureState (OSystem::Feature f, bool enable) override
virtual bool getFeatureState (OSystem::Feature f) const override
virtual Graphics::PixelFormat getScreenFormat () const override
virtual int getScreenChangeID () const override
virtual void setupScreen (uint gameWidth, uint gameHeight, bool fullscreen, bool accel3d) override
virtual Graphics::PixelBuffer getScreenPixelBuffer () override
virtual int16 getHeight () const override
virtual int16 getWidth () const override
virtual void updateScreen () override
virtual void showOverlay () override
virtual void hideOverlay () override
virtual Graphics::PixelFormat getOverlayFormat () const override
virtual void clearOverlay () override
virtual void grabOverlay (void *buf, int pitch) const override
virtual void copyRectToOverlay (const void *buf, int pitch, int x, int y, int w, int h) override
virtual int16 getOverlayWidth () const override
virtual int16 getOverlayHeight () const override
virtual void suggestSideTextures (Graphics::Surface *left, Graphics::Surface *right) override
virtual void warpMouse (int x, int y) override
virtual void transformMouseCoordinates (Common::Point &point) override
 Transforms real screen coordinates into the current active screen coordinates (may be either game screen or overlay).

Protected Member Functions

void createOrUpdateScreen ()
void drawOverlay ()
void drawSideTextures ()
void closeOverlay ()
virtual bool saveScreenshot (const Common::String &filename) const override
 Save a screenshot to the specified file.
virtual int getGraphicsModeScale (int mode) const override

Protected Attributes

SDL_Surface * _screen
SDL_Surface * _subScreen
SDL_Surface * _overlayscreen
bool _overlayDirty
bool _overlayVisible
Graphics::PixelFormat _overlayFormat
Graphics::PixelFormat _screenFormat
uint _engineRequestedWidth
uint _engineRequestedHeight
bool _fullscreen
bool _lockAspectRatio
int _screenChangeCount
Math::Rect2d _gameRect
SDL_Surface * _sideSurfaces [2]

Detailed Description

SDL Surface based graphics manager.

Used when rendering the launcher, or games with TinyGL

Definition at line 33 of file surfacesdl-graphics.h.


Constructor & Destructor Documentation

SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager ( SdlEventSource sdlEventSource,
SdlWindow window 
)

Definition at line 43 of file surfacesdl-graphics.cpp.

SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager (  )  [virtual]

Definition at line 65 of file surfacesdl-graphics.cpp.


Member Function Documentation

void SurfaceSdlGraphicsManager::clearOverlay (  )  [override, virtual]

Definition at line 265 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::closeOverlay (  )  [protected]

Definition at line 376 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::copyRectToOverlay ( const void *  buf,
int  pitch,
int  x,
int  y,
int  w,
int  h 
) [override, virtual]

Definition at line 333 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::createOrUpdateScreen (  )  [protected]

Definition at line 141 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::drawOverlay (  )  [protected]

Definition at line 220 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::drawSideTextures (  )  [protected]

Definition at line 199 of file surfacesdl-graphics.cpp.

bool SurfaceSdlGraphicsManager::getFeatureState ( OSystem::Feature  f  )  const [override, virtual]

Definition at line 87 of file surfacesdl-graphics.cpp.

int SurfaceSdlGraphicsManager::getGraphicsModeScale ( int  mode  )  const [override, protected, virtual]

Implements ResVmSdlGraphicsManager.

Definition at line 558 of file surfacesdl-graphics.cpp.

int16 SurfaceSdlGraphicsManager::getHeight (  )  const [override, virtual]

Definition at line 251 of file surfacesdl-graphics.cpp.

virtual Graphics::PixelFormat SurfaceSdlGraphicsManager::getOverlayFormat (  )  const [inline, override, virtual]

Definition at line 59 of file surfacesdl-graphics.h.

virtual int16 SurfaceSdlGraphicsManager::getOverlayHeight (  )  const [inline, override, virtual]

Definition at line 64 of file surfacesdl-graphics.h.

virtual int16 SurfaceSdlGraphicsManager::getOverlayWidth (  )  const [inline, override, virtual]

Definition at line 63 of file surfacesdl-graphics.h.

virtual int SurfaceSdlGraphicsManager::getScreenChangeID (  )  const [inline, override, virtual]

Definition at line 47 of file surfacesdl-graphics.h.

virtual Graphics::PixelFormat SurfaceSdlGraphicsManager::getScreenFormat (  )  const [inline, override, virtual]

Definition at line 45 of file surfacesdl-graphics.h.

Graphics::PixelBuffer SurfaceSdlGraphicsManager::getScreenPixelBuffer (  )  [override, virtual]

Definition at line 195 of file surfacesdl-graphics.cpp.

int16 SurfaceSdlGraphicsManager::getWidth (  )  const [override, virtual]

Definition at line 256 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::grabOverlay ( void *  buf,
int  pitch 
) const [override, virtual]

Definition at line 314 of file surfacesdl-graphics.cpp.

bool SurfaceSdlGraphicsManager::hasFeature ( OSystem::Feature  f  )  const [override, virtual]

Definition at line 78 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::hideOverlay (  )  [override, virtual]

Definition at line 303 of file surfacesdl-graphics.cpp.

bool SurfaceSdlGraphicsManager::saveScreenshot ( const Common::String file  )  const [override, protected, virtual]

Save a screenshot to the specified file.

Implements ResVmSdlGraphicsManager.

Definition at line 501 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::setFeatureState ( OSystem::Feature  f,
bool  enable 
) [override, virtual]

Definition at line 98 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::setupScreen ( uint  gameWidth,
uint  gameHeight,
bool  fullscreen,
bool  accel3d 
) [override, virtual]

Definition at line 114 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::showOverlay (  )  [override, virtual]

Definition at line 292 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::suggestSideTextures ( Graphics::Surface left,
Graphics::Surface right 
) [override, virtual]

Definition at line 277 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::transformMouseCoordinates ( Common::Point point  )  [override, virtual]

Transforms real screen coordinates into the current active screen coordinates (may be either game screen or overlay).

Parameters:
point Mouse coordinates to transform. !! ResidualVM specific:

Implements SdlGraphicsManager.

Definition at line 404 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::updateScreen (  )  [override, virtual]

Definition at line 227 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::warpMouse ( int  x,
int  y 
) [override, virtual]

Definition at line 392 of file surfacesdl-graphics.cpp.


Member Data Documentation

Definition at line 100 of file surfacesdl-graphics.h.

Definition at line 101 of file surfacesdl-graphics.h.

Definition at line 91 of file surfacesdl-graphics.h.

Definition at line 90 of file surfacesdl-graphics.h.

Definition at line 92 of file surfacesdl-graphics.h.

SDL_Surface* SurfaceSdlGraphicsManager::_screen [protected]

Definition at line 86 of file surfacesdl-graphics.h.

Definition at line 102 of file surfacesdl-graphics.h.

SDL_Surface* SurfaceSdlGraphicsManager::_sideSurfaces[2] [protected]

Definition at line 106 of file surfacesdl-graphics.h.

SDL_Surface* SurfaceSdlGraphicsManager::_subScreen [protected]

Definition at line 87 of file surfacesdl-graphics.h.


The documentation for this class was generated from the following files:


Generated on Sat May 23 2020 05:01:53 for ResidualVM by doxygen 1.7.1
curved edge   curved edge