Public Member Functions | |
OSScreenManager (TitanicEngine *vm) | |
void | setMode (int width, int height, int bpp, uint numBackSurfaces, bool flag2) override |
void | drawCursors () override |
CVideoSurface * | lockSurface (SurfaceNum surfaceNum) override |
void | unlockSurface (CVideoSurface *surface) override |
CVideoSurface * | getSurface (SurfaceNum surfaceNum) const override |
CVideoSurface * | getFrontRenderSurface () const override |
void | fillRect (SurfaceNum surfaceNum, Rect *rect, byte r, byte g, byte b) override |
void | blitFrom (SurfaceNum surfaceNum, CVideoSurface *src, const Point *destPos, const Rect *srcRect=nullptr) override |
void | blitFrom (SurfaceNum surfaceNum, const Rect *rect, CVideoSurface *src, int v=0) override |
int | writeString (int surfaceNum, const Rect &destRect, int yOffset, const CString &str, CTextCursor *textCursor) override |
void | writeString (int surfaceNum, const Point &destPos, const Rect &clipRect, const CString &str, int lineWidth=0) override |
void | setFontColor (byte r, byte g, byte b) override |
int | getTextBounds (const CString &str, int maxWidth, Point *sizeOut=nullptr) const override |
int | getFontHeight () const override |
int | stringWidth (const CString &str) override |
void | frameRect (SurfaceNum surfaceNum, const Rect &rect, byte r, byte g, byte b) override |
void | clearSurface (SurfaceNum surfaceNum, Rect *bounds) override |
void | resizeSurface (CVideoSurface *surface, int width, int height, int bpp=16) override |
CVideoSurface * | createSurface (int w, int h, int bpp=16) override |
CVideoSurface * | createSurface (const CResourceKey &key) override |
void | showCursor () override |
void | hideCursor () override |
Public Attributes | |
int | _field48 |
int | _field4C |
int | _field50 |
int | _field54 |
STFont | _fonts [4] |
|
overridevirtual |
Sets the video mode
Implements Titanic::CScreenManager.
|
overridevirtual |
Handles drawing the cursors
Implements Titanic::CScreenManager.
|
overridevirtual |
Locks a specified surface number for access and returns a pointer to it
Implements Titanic::CScreenManager.
|
overridevirtual |
Unlocks a previously locked surface
Implements Titanic::CScreenManager.
|
overridevirtual |
Gets a specified surface number
Implements Titanic::CScreenManager.
|
inlineoverridevirtual |
Return the front render surface
Implements Titanic::CScreenManager.
|
overridevirtual |
Fill an area with a specific color
Implements Titanic::CScreenManager.
|
overridevirtual |
Blits a surface onto one of the screen surfaces
Implements Titanic::CScreenManager.
|
overridevirtual |
Blits a surface onto one of the screen surfaces
Implements Titanic::CScreenManager.
|
overridevirtual |
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 |
Implements Titanic::CScreenManager.
|
overridevirtual |
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 |
lineWidth | Width in pixels of the string, if known. |
Implements Titanic::CScreenManager.
|
overridevirtual |
Set the font color
Implements Titanic::CScreenManager.
|
overridevirtual |
Get the text area a string will fit into
str | String |
maxWidth | Maximum width in pixels |
sizeOut | Optional pointer to output size |
Implements Titanic::CScreenManager.
|
overridevirtual |
Get the current font height
Implements Titanic::CScreenManager.
|
overridevirtual |
Returns the width of a given string in pixels
Implements Titanic::CScreenManager.
|
overridevirtual |
Draws a frame enclosing the specified area
Implements Titanic::CScreenManager.
|
overridevirtual |
Clear a portion of the screen surface
Implements Titanic::CScreenManager.
|
overridevirtual |
Resize the passed surface
Implements Titanic::CScreenManager.
|
overridevirtual |
Creates a surface of a given size
Implements Titanic::CScreenManager.
|
overridevirtual |
Creates a surface from a specified resource
Implements Titanic::CScreenManager.
|
overridevirtual |
Show the mouse cursor
Implements Titanic::CScreenManager.
|
overridevirtual |
Hide the mouse cursor
Implements Titanic::CScreenManager.