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, const Capabilities &capabilities)
virtual ~SurfaceSdlGraphicsManager ()
virtual bool hasFeature (OSystem::Feature f) const override
virtual void setFeatureState (OSystem::Feature f, bool enable) 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 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

Protected Member Functions

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

Protected Attributes

SDL_Surface * _screen
SDL_Surface * _subScreen
SDL_Surface * _overlayscreen
bool _overlayDirty
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,
const Capabilities capabilities 

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

SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager (  )  [virtual]

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

Member Function Documentation

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

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

void SurfaceSdlGraphicsManager::closeOverlay (  )  [protected]

Definition at line 350 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 307 of file surfacesdl-graphics.cpp.

void SurfaceSdlGraphicsManager::createOrUpdateScreen (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawOverlay (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawSideTextures (  )  [protected]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 277 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 475 of file surfacesdl-graphics.cpp.

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

Reimplemented from ResVmSdlGraphicsManager.

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

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

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

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

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

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

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

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

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

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

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

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

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

Member Data Documentation

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

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

SDL_Surface* SurfaceSdlGraphicsManager::_screen [protected]

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

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

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

SDL_Surface* SurfaceSdlGraphicsManager::_subScreen [protected]

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

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

Generated on Sat Feb 15 2020 05:01:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge