ScummVM API documentation
Screen Class Reference

#include <default_display_client.h>

Inheritance diagram for Screen:
DefaultDisplayClient DisplayClient

Public Types

using DirtyRects = std::unordered_set< Common::Rect >
 

Public Member Functions

 Screen (AtariGraphicsManager *manager, int width, int height, const Graphics::PixelFormat &format, const Palette *palette)
 
void reset (int width, int height, int bitsPerPixel, bool resetCursorPosition)
 
void addDirtyRect (const Graphics::Surface &srcSurface, const Common::Rect &rect, bool directRendering)
 
void clearDirtyRects ()
 
void init ()
 
bool allocate ()
 
void setShakePos (int shakeXOffset, int shakeYOffset)
 
void setScummvmPixelFormat (const Graphics::PixelFormat *format)
 
const Graphics::PixelFormatgetScummvmPixelFormat () const
 
Graphics::SurfacelockAndGetForEditing ()
 
void unlock ()
 
void setSize (uint32 width, uint32 height)
 
- Public Member Functions inherited from DefaultDisplayClient
bool isVisible () const
 
void setVisible (bool v)
 
Bufferbuffer ()
 
Palettepalette ()
 
void init ()
 
bool allocate (bool bufferInVram=false, bool paletteInVram=false)
 
void deallocate ()
 
void clearBuffer ()
 
void clearPalette ()
 
void render ()
 
uint32 getWidth () const
 
uint32 getHeight () const
 
void setPartialPalette (const byte *colors, uint start, uint num)
 
void getPartialPalette (byte *colors, uint start, uint num) const
 
void copyFromRect (const byte *buf, int pitch, int destX, int destY, int recWidth, int recHeight)
 
void copyToArray (byte *dst, int pitch)
 
void setDirty ()
 
void setClean ()
 
bool isDirty () const
 
- Public Member Functions inherited from DisplayClient
bool isVisible ()
 
bool isDirty ()
 
void setClean ()
 
void render ()
 

Public Attributes

Graphics::Surface surf
 
const Palettepalette
 
DirtyRects dirtyRects
 
bool fullRedraw = false
 
Cursor cursor
 
int rez = -1
 
int mode = -1
 
Graphics::Surface *const offsettedSurf = &_offsettedSurf
 

Additional Inherited Members

- Protected Attributes inherited from DefaultDisplayClient
Buffer _buffer
 
Palette _palette
 
GuRenderer _renderer
 
bool _visible
 
bool _dirty
 

Detailed Description

Screen class.


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