ScummVM API documentation
Sci::GfxMacCursor32 Class Reference

#include <maccursor32.h>

Inheritance diagram for Sci::GfxMacCursor32:
Sci::GfxCursor32 Common::Serializable

Public Member Functions

void setMacCursorRemapList (int cursorCount, reg_t *cursors) override
 
void setView (const GuiResourceId viewId, const int16 loopNo, const int16 celNo) override
 
void hide () override
 
void unhide () override
 
void show () override
 
void gonnaPaint (Common::Rect paintRect) override
 
void paintStarting () override
 
void donePainting () override
 
- Public Member Functions inherited from Sci::GfxCursor32
void init (const Buffer &outputBuffer)
 
bool deviceMoved (Common::Point &position)
 
void setPosition (const Common::Point &position)
 
void setRestrictedArea (const Common::Rect &rect)
 
void clearRestrictedArea ()
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 

Additional Inherited Members

- Protected Attributes inherited from Sci::GfxCursor32
CelInfo32 _cursorInfo
 
int _hideCount
 

Detailed Description

GfxMacCursor32 handles SCI32 games with native Mac cursor resources.

GfxCursor32 was modeled after the PC SSCI structure in which cursors are views that use the game's palette. It draws the cursor directly to the game's frame. Mac cursors have their own individual palettes and are drawn independent of the rest of the game. GfxMacCursor32 uses CursorManager to handle this, since it supports cursor palettes, and disables the GfxCursor32 functionality which CursorManager handles.

Member Function Documentation

◆ setMacCursorRemapList()

void Sci::GfxMacCursor32::setMacCursorRemapList ( int  cursorCount,
reg_t cursors 
)
overridevirtual

Sets the remap list used to map views to native Mac cursor resources.

Reimplemented from Sci::GfxCursor32.

◆ setView()

void Sci::GfxMacCursor32::setView ( const GuiResourceId  viewId,
const int16  loopNo,
const int16  celNo 
)
overridevirtual

Sets the view used to render the cursor.

Reimplemented from Sci::GfxCursor32.

◆ hide()

void Sci::GfxMacCursor32::hide ( )
overridevirtual

Hides the cursor. Each call to hide will increment a hide counter, which must be returned to 0 before the cursor will be shown again.

Reimplemented from Sci::GfxCursor32.

◆ unhide()

void Sci::GfxMacCursor32::unhide ( )
overridevirtual

Shows the cursor, if the hide counter is returned to 0.

Reimplemented from Sci::GfxCursor32.

◆ show()

void Sci::GfxMacCursor32::show ( )
overridevirtual

Shows the cursor regardless of the state of the hide counter.

Reimplemented from Sci::GfxCursor32.

◆ gonnaPaint()

void Sci::GfxMacCursor32::gonnaPaint ( Common::Rect  paintRect)
inlineoverridevirtual

Called by GfxFrameout, ignored since CursorManager handles Mac cursors.

Reimplemented from Sci::GfxCursor32.

◆ paintStarting()

void Sci::GfxMacCursor32::paintStarting ( )
inlineoverridevirtual

Called by GfxFrameout, ignored since CursorManager handles Mac cursors.

Reimplemented from Sci::GfxCursor32.

◆ donePainting()

void Sci::GfxMacCursor32::donePainting ( )
inlineoverridevirtual

Called by GfxFrameout, ignored since CursorManager handles Mac cursors.

Reimplemented from Sci::GfxCursor32.


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