ScummVM API documentation
Cine::OSRenderer Class Reference

#include <gfx.h>

Inheritance diagram for Cine::OSRenderer:
Cine::FWRenderer Common::NonCopyable

Public Member Functions

bool initialize () override
 
bool ready () override
 
unsigned int currentBg () override
 
unsigned int scrollBg () override
 
void clear () override
 
void incrustMask (const BGIncrust &incrust, uint8 color=0) override
 
void incrustSprite (const BGIncrust &incrust) override
 
int16 addBackground (const char *bgName, uint16 bgIdx) override
 
void loadBg16 (const byte *bg, const char *name, unsigned int idx=0) override
 
void loadCt16 (const byte *ct, const char *name) override
 
void loadBg256 (const byte *bg, const char *name, unsigned int idx=0) override
 
void loadCt256 (const byte *ct, const char *name) override
 
void selectBg (unsigned int idx) override
 
void selectScrollBg (unsigned int idx) override
 
void setScroll (unsigned int shift) override
 
uint getScroll () const override
 
void removeBg (unsigned int idx) override
 
void saveBgNames (Common::OutSaveFile &fHandle) override
 
const char * getBgName (uint idx=0) const override
 
void restorePalette (Common::SeekableReadStream &fHandle, int version) override
 
void savePalette (Common::OutSaveFile &fHandle) override
 
void rotatePalette (int firstIndex, int lastIndex, int mode) override
 
void transformPalette (int first, int last, int r, int g, int b) override
 
- Public Member Functions inherited from Cine::FWRenderer
virtual bool useTransparentDialogBoxes ()
 
void drawFrame (bool wait=false)
 
void drawCommand ()
 
void setCommand (Common::String cmd)
 
Common::String getCommand ()
 
virtual void blit ()
 
virtual void blitBackBuffer ()
 
virtual bool hasSavedBackBuffer (BackBufferSource source)
 
virtual void saveBackBuffer (BackBufferSource source)
 
virtual void popSavedBackBuffer (BackBufferSource source)
 
virtual void restoreSavedBackBuffer (BackBufferSource source)
 
virtual void removeSavedBackBuffer (BackBufferSource source)
 
virtual void setBlackPalette (bool updateChangePal)
 
virtual void setPalette ()
 
void pushMenu (Menu *menu)
 
MenupopMenu ()
 
void clearMenuStack ()
 
virtual uint fadeDelayMs ()
 
virtual uint fadeToBlackMinMs ()
 
virtual void fadeToBlack ()
 
virtual void fadeFromBlack ()
 
void showCollisionPage (bool state)
 
void drawString (const char *string, byte param)
 
int getStringWidth (const char *str)
 

Protected Member Functions

void setBackground8ToCollisionPage ()
 
const Cine::PalettegetFadeInSourcePalette () override
 
void drawSprite (const ObjectStruct &obj) override
 
void drawSprite (overlay *overlayPtr, const byte *spritePtr, int16 width, int16 height, byte *page, int16 x, int16 y, byte transparentColor, byte bpp)
 
int drawChar (char character, int x, int y, bool draw=true) override
 
void drawBackground () override
 
void renderOverlay (const Common::List< overlay >::iterator &it) override
 
- Protected Member Functions inherited from Cine::FWRenderer
void fillSprite (const ObjectStruct &obj, uint8 color=0)
 
void drawMaskedSprite (const ObjectStruct &obj, const byte *mask)
 
int drawMessage (const char *str, int x, int y, int width, int color, bool draw=true)
 
void drawPlainBox (int x, int y, int width, int height, byte color)
 
byte transparentDialogBoxStartColor ()
 
void drawTransparentBox (int x, int y, int width, int height)
 
void drawBorder (int x, int y, int width, int height, byte color)
 
void drawDoubleBorder (int x, int y, int width, int height, byte color)
 
virtual int undrawChar (char character, int x, int y)
 
void drawLine (int x, int y, int width, int height, byte color)
 
void remaskSprite (byte *mask, Common::List< overlay >::iterator it)
 
virtual void clearBackBuffer ()
 
virtual void removeSavedBackBuffers ()
 
void drawOverlays ()
 
virtual void blit (bool useCollisionPage)
 

Additional Inherited Members

- Public Attributes inherited from Cine::FWRenderer
uint16 _messageBg
 Message box background color.
 
uint16 _cmdY
 Player command string position on screen.
 
- Protected Attributes inherited from Cine::FWRenderer
byte * _backBuffer
 Screen backbuffer.
 
Cine::Palette _backupPal
 The backup color palette.
 
Cine::Palette _activePal
 The active color palette.
 
Common::Stack< Menu * > _menuStack
 All displayed menus.
 
int _changePal
 Load active palette to video backend on next frame.
 
bool _showCollisionPage
 Should we show the collision page instead of the back buffer? Used for debugging.
 
uint32 _fadeToBlackLastCalledMs
 
- Static Protected Attributes inherited from Cine::FWRenderer
static const int _screenSize = 320 * 200
 Screen size.
 
static const int _screenWidth = 320
 Screen width.
 
static const int _screenHeight = 200
 Screen height.
 

Detailed Description

Operation Stealth renderer

Member Function Documentation

◆ ready()

bool Cine::OSRenderer::ready ( )
inlineoverridevirtual

Test if renderer is ready to draw

Reimplemented from Cine::FWRenderer.


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