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 (bool tt, int width, int height, const Graphics::PixelFormat &format, const Palette *palette)
 
void reset (int width, int height, const Graphics::Surface &boundingSurf)
 
void addDirtyRect (const Graphics::Surface &srcSurface, int x, int y, int w, int h, bool directRendering)
 
void clearDirtyRects ()
 
void init ()
 
bool allocate ()
 
void deallocate ()
 
void setShakePos (int shakeXOffset, int shakeYOffset)
 
void setScummvmPixelFormat (const Graphics::PixelFormat *format)
 
const Graphics::PixelFormatgetScummvmPixelFormat () const
 
Graphics::SurfacelockAndGetForEditing ()
 
void unlock ()
 
void copyFromRect (const byte *buf, int pitch, int destX, int destY, int recWidth, int recHeight)
 
void setSize (uint32 width, uint32 height)
 
void render ()
 
- 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

Common::ScopedPtr< AtariSurfacesurf
 
const Palettepalette
 
DirtyRects dirtyRects
 
bool fullRedraw = false
 
Cursor cursor
 
int rez = -1
 
int mode = -1
 
const Common::ScopedPtr< AtariSurface > & 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: