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 36 of file surfacesdl-graphics.cpp.

SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager (  )  [virtual]

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


Member Function Documentation

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

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

void SurfaceSdlGraphicsManager::closeOverlay (  )  [protected]

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

void SurfaceSdlGraphicsManager::createOrUpdateScreen (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawOverlay (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawSideTextures (  )  [protected]

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

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

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

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

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

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

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

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

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

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

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

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

Reimplemented from ResVmSdlGraphicsManager.

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 364 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 May 18 2019 05:05:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge