Public Member Functions | |
CScreenManager (TitanicEngine *vm) | |
void | fn1 () |
void | fn2 () |
virtual void | setWindowHandle (int v) |
virtual bool | resetWindowHandle (int v) |
virtual void | setMode (int width, int height, int bpp, uint numBackSurfaces, bool flag2)=0 |
virtual void | drawCursors ()=0 |
virtual CVideoSurface * | lockSurface (SurfaceNum surfaceNum)=0 |
virtual void | unlockSurface (CVideoSurface *surface)=0 |
virtual CVideoSurface * | getSurface (SurfaceNum surfaceNum) const =0 |
virtual CVideoSurface * | getFrontRenderSurface () const =0 |
virtual void | fillRect (SurfaceNum surfaceNum, Rect *rect, byte r, byte g, byte b)=0 |
virtual void | blitFrom (SurfaceNum surfaceNum, CVideoSurface *src, const Point *destPos=nullptr, const Rect *srcRect=nullptr)=0 |
virtual void | blitFrom (SurfaceNum surfaceNum, const Rect *rect, CVideoSurface *src, int v=0)=0 |
virtual int | writeString (int surfaceNum, const Rect &destRect, int yOffset, const CString &str, CTextCursor *textCursor)=0 |
virtual void | writeString (int surfaceNum, const Point &destPos, const Rect &clipRect, const CString &str, int maxWidth)=0 |
virtual void | setFontColor (byte r, byte g, byte b)=0 |
virtual int | getTextBounds (const CString &str, int maxWidth, Point *sizeOut=nullptr) const =0 |
virtual int | getFontHeight () const =0 |
virtual int | stringWidth (const CString &str)=0 |
virtual void | frameRect (SurfaceNum surfaceNum, const Rect &rect, byte r, byte g, byte b)=0 |
virtual void | clearSurface (SurfaceNum surfaceNum, Rect *_bounds)=0 |
virtual void | resizeSurface (CVideoSurface *surface, int width, int height, int bpp=16)=0 |
virtual CVideoSurface * | createSurface (int w, int h, int bpp=16)=0 |
virtual CVideoSurface * | createSurface (const CResourceKey &key)=0 |
virtual Point | getScreenTopLeft () |
virtual void | waitForVSync () |
virtual void | showCursor ()=0 |
virtual void | hideCursor ()=0 |
void | setSurfaceBounds (SurfaceNum surfaceNum, const Rect &r) |
int | setFontNumber (int fontNumber) |
void | preLoad () |
Static Public Member Functions | |
static CScreenManager * | setCurrent () |
Public Attributes | |
Common::Array< VideoSurfaceEntry > | _backSurfaces |
Rect | _frontSurfaceBounds |
CVideoSurface * | _frontRenderSurface |
CMouseCursor * | _mouseCursor |
CTextCursor * | _textCursor |
CInputHandler * | _inputHandler |
int | _fontNumber |
Static Public Attributes | |
static CScreenManager * | _screenManagerPtr |
static CScreenManager * | _currentScreenManagerPtr |
Protected Attributes | |
TitanicEngine * | _vm |
|
static |
Set the current screen manager
|
pure virtual |
Sets the video mode
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Handles drawing the cursors
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Locks a specified surface number for access and returns a pointer to it
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Unlocks a previously locked surface
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Gets a specified surface number
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Return the front render surface
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Fill an area with a specific color
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Blits a surface onto one of the screen surfaces
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Blits a surface onto one of the screen surfaces
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Write a string
surfaceNum | Destination surface |
destRect | Bounds within dest surface |
yOffset | Y offset for drawing, to allow for parts of the text to be scrolled off-screen |
str | Line or lines to write |
textCursor | Optional text cursor pointer |
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Write a string
surfaceNum | Destination surface |
destPos | Position to start writing text at |
clipRect | Clipping area to constrain text to |
str | Line or lines to write |
maxWidth | Maximum allowed line width |
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Set the font color
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Get the text area a string will fit into
str | String |
maxWidth | Maximum width in pixels |
sizeOut | Optional pointer to output size |
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Get the current font height
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Returns the width of a given string in pixels
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Draws a frame enclosing the specified area
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Clear a portion of a specified surface
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Resize the passed surface
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Creates a surface of a given size
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Creates a surface from a specified resource
Implemented in Titanic::OSScreenManager.
|
inlinevirtual |
Get the top-left corner of the screen in global screen co-ordinates For ScummVM, this is always (0, 0), even in Windowed mode
|
inlinevirtual |
Waits for a vertical screen sync For ScummVM, this can be safely ignored
|
pure virtual |
Show the mouse cursor
Implemented in Titanic::OSScreenManager.
|
pure virtual |
Hide the mouse cursor
Implemented in Titanic::OSScreenManager.
void Titanic::CScreenManager::setSurfaceBounds | ( | SurfaceNum | surfaceNum, |
const Rect & | r | ||
) |
Set drawing bounds for a specified surface
int Titanic::CScreenManager::setFontNumber | ( | int | fontNumber | ) |
Set the current font number
void Titanic::CScreenManager::preLoad | ( | ) |
Called when a game is about to be loaded