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 ()

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

SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager (  )  [virtual]

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

Member Function Documentation

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

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

void SurfaceSdlGraphicsManager::closeOverlay (  )  [protected]

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

void SurfaceSdlGraphicsManager::createOrUpdateScreen (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawOverlay (  )  [protected]

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

void SurfaceSdlGraphicsManager::drawSideTextures (  )  [protected]

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

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

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

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

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

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

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

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

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

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

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

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

Reimplemented from ResVmSdlGraphicsManager.

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 362 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 Jan 19 2019 05:04:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge