|
virtual void | initBackend () |
|
bool | hasFeature (Feature f) |
|
void | setFeatureState (Feature f, bool enable) |
|
bool | getFeatureState (Feature f) |
|
PaletteManager * | getPaletteManager () |
|
Graphics::PixelFormat | getScreenFormat () const |
|
Common::List< Graphics::PixelFormat > | getSupportedFormats () const |
|
void | initSize (uint w, uint h, const Graphics::PixelFormat *format) |
|
int16 | getHeight () |
|
int16 | getWidth () |
|
void | copyRectToScreen (const void *buf, int pitch, int x, int y, int w, int h) |
|
virtual Graphics::Surface * | lockScreen () |
|
virtual void | unlockScreen () |
|
void | updateScreen () |
|
bool | showMouse (bool visible) |
|
void | warpMouse (int x, int y) |
|
void | setMouseCursor (const void *buf, uint w, uint h, int hotspot_x, int hotspot_y, uint32 keycolor, bool dontScale, const Graphics::PixelFormat *format, const byte *mask) |
|
void | setCursorPalette (const byte *colors, uint start, uint num) |
|
void | setShakePos (int shake_x_pos, int shake_y_pos) |
|
uint32 | getMillis (bool skipRecord=false) |
|
void | delayMillis (uint msecs) |
|
void | getTimeAndDate (TimeDate &td, bool skipRecord=false) const |
|
bool | pollEvent (Common::Event &event) |
|
void | quit () |
|
int16 | getOverlayHeight () |
|
int16 | getOverlayWidth () |
|
bool | isOverlayVisible () const |
|
void | showOverlay (bool inGUI) |
|
void | hideOverlay () |
|
void | clearOverlay () |
|
void | grabOverlay (Graphics::Surface &surface) |
|
void | copyRectToOverlay (const void *buf, int pitch, int x, int y, int w, int h) |
|
virtual Graphics::PixelFormat | getOverlayFormat () const |
|
Common::MutexInternal * | createMutex () |
|
void | setWindowCaption (const Common::U32String &caption) |
|
Audio::Mixer * | getMixer () |
|
void | mouseToSoftKbd (int x, int y, int &rx, int &ry) const |
|
AbstractFSNode * | makeRootFileNode () const override |
|
AbstractFSNode * | makeCurrentDirectoryFileNode () const override |
|
AbstractFSNode * | makeFileNodePath (const Common::String &path) const override |
|
bool | setScaler (const char *name, int factor) override final |
|
void | displayMessageOnOSD (const Common::U32String &msg) override |
|
void | displayActivityIconOnOSD (const Graphics::Surface *icon) override |
|
void | fillScreen (uint32 col) override |
|
void | fillScreen (const Common::Rect &r, uint32 col) override |
|
void | destroy () |
|
virtual void | init () |
|
bool | backendInitialized () const |
|
virtual void | engineInit () |
|
virtual void | engineDone () |
|
virtual void | taskStarted (Task) |
|
virtual void | taskFinished (Task) |
|
virtual void | updateStartSettings (const Common::String &executable, Common::String &command, Common::StringMap &startSettings, Common::StringArray &additionalArgs) |
|
virtual const GraphicsMode * | getSupportedGraphicsModes () const |
|
virtual int | getDefaultGraphicsMode () const |
|
virtual bool | setGraphicsMode (int mode, uint flags=kGfxModeNoFlags) |
|
bool | setGraphicsMode (const char *name) |
|
virtual int | getGraphicsMode () const |
|
Graphics::PixelFormat | getScreenFormat () const |
|
Common::List< Graphics::PixelFormat > | getSupportedFormats () const |
|
virtual Common::Array< uint > | getSupportedAntiAliasingLevels () const |
|
virtual OpenGL::ContextType | getOpenGLType () const |
|
virtual bool | setShader (const Common::Path &fileName) |
|
virtual const GraphicsMode * | getSupportedStretchModes () const |
|
virtual int | getDefaultStretchMode () const |
|
virtual bool | setStretchMode (int mode) |
|
bool | setStretchMode (const char *name) |
|
virtual int | getStretchMode () const |
|
virtual uint | getDefaultScaler () const |
|
virtual uint | getDefaultScaleFactor () const |
|
virtual bool | setScaler (uint mode, int factor) |
|
virtual uint | getScaler () const |
|
virtual uint | getScaleFactor () const |
|
virtual void | initSizeHint (const Graphics::ModeList &modes) |
|
virtual int | getScreenChangeID () const |
|
virtual void | beginGFXTransaction () |
|
virtual TransactionError | endGFXTransaction () |
|
virtual float | getHiDPIScreenFactor () const |
|
virtual void | setFocusRectangle (const Common::Rect &rect) |
|
virtual void | clearFocusRectangle () |
|
virtual void | saveScreenshot () |
|
virtual bool | lockMouse (bool lock) |
|
virtual uint32 | getDoubleClickTime () const |
|
virtual Common::TimerManager * | getTimerManager () |
|
Common::EventManager * | getEventManager () |
|
virtual Common::HardwareInputSet * | getHardwareInputSet () |
|
virtual Common::KeymapArray | getGlobalKeymaps () |
|
virtual Common::KeymapperDefaultBindings * | getKeymapperDefaultBindings () |
|
AudioCDManager * | getAudioCDManager () |
|
virtual void | fatalError () |
|
virtual Common::SaveFileManager * | getSavefileManager () |
|
virtual Common::TextToSpeechManager * | getTextToSpeechManager () |
|
virtual Common::DialogManager * | getDialogManager () |
|
virtual DLC::Store * | getDLCStore () |
|
virtual FilesystemFactory * | getFilesystemFactory () |
|
virtual void | addSysArchivesToSearchSet (Common::SearchSet &s, int priority=0) |
|
virtual Common::Path | getDefaultConfigFileName () |
|
virtual Common::Path | getDefaultLogFileName () |
|
virtual void | registerDefaultSettings (const Common::String &target) const |
|
virtual GUI::OptionsContainerWidget * | buildBackendOptionsWidget (GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const |
|
virtual const char *const * | buildHelpDialogData () |
|
virtual void | applyBackendSettings () |
|
virtual void | messageBox (LogMessageType::Type type, const char *message) |
|
virtual bool | displayLogFile () |
|
virtual bool | hasTextInClipboard () |
|
virtual Common::U32String | getTextFromClipboard () |
|
virtual bool | setTextInClipboard (const Common::U32String &text) |
|
virtual bool | openUrl (const Common::String &url) |
|
virtual bool | isConnectionLimited () |
|
void | setPalette (const Graphics::Palette &pal, uint start=0) |
|
Graphics::Palette | grabPalette (uint start, uint num) |
|
virtual | ~FilesystemFactory () |
|
virtual Common::String | getSystemFullPath (const Common::String &path) const |
|
void OSystem_Dreamcast::setPalette |
( |
const byte * |
colors, |
|
|
uint |
start, |
|
|
uint |
num |
|
) |
| |
|
protectedvirtual |
Replace the specified range of the palette with new colors. The palette entries from 'start' till (start+num-1) will be replaced - so a full palette update is accomplished via start=0, num=256.
The palette data is specified in interleaved RGB format. That is, the first byte of the memory block 'colors' points at is the red component of the first new color; the second byte the green component of the first new color; the third byte the blue component, the last byte to the alpha (transparency) value. Then the second color starts, and so on. So memory looks like this: R1-G1-B1-R2-G2-B2-R3-...
- Parameters
-
colors | the new palette data, in interleaved RGB format |
start | the first palette entry to be updated |
num | the number of palette entries to be updated |
- Note
- It is an error if start+num exceeds 256, behavior is undefined in that case (the backend may ignore it silently or assert).
-
It is an error if this function gets called when the pixel format in use (the return value of getScreenFormat) has more than one byte per pixel.
- See also
- getScreenFormat
Implements PaletteManager.
void OSystem_Dreamcast::grabPalette |
( |
byte * |
colors, |
|
|
uint |
start, |
|
|
uint |
num |
|
) |
| const |
|
protectedvirtual |
Grabs a specified part of the currently active palette. The format is the same as for setPalette.
This should return exactly the same RGB data as was setup via previous setPalette calls.
For example, for every valid value of start and num of the following code:
byte origPal[num*3]; // Setup origPal's data however you like g_system->setPalette(origPal, start, num); byte obtainedPal[num*3]; g_system->grabPalette(obtainedPal, start, num);
the following should be true:
memcmp(origPal, obtainedPal, num*3) == 0
- See also
- setPalette
- Parameters
-
colors | the palette data, in interleaved RGB format |
start | the first platte entry to be read |
num | the number of palette entries to be read |
- Note
- It is an error if this function gets called when the pixel format in use (the return value of getScreenFormat) has more than one byte per pixel.
- See also
- getScreenFormat
Implements PaletteManager.
Set the size and color format of the virtual screen.
Typical sizes include:
- 320x200 (e.g. for most SCUMM games, and Simon)
- 320x240 (e.g. for FM-TOWN SCUMM games)
- 640x480 (e.g. for Curse of Monkey Island)
This is the resolution for which the client code generates data. This is not necessarily equal to the actual display size. For example, a backend may magnify the graphics to fit on the screen (see also the GraphicsMode), stretch the data to perform aspect ratio correction, or shrink it to fit on small screens (in cell phones).
Typical formats include:
- CLUT8 (e.g. 256 color, for most games)
- RGB555 (e.g. 16-bit color, for later SCUMM HE games)
- RGB565 (e.g. 16-bit color, for Urban Runner)
This is the pixel format for which the client code generates data. It is not necessarily equal to the hardware pixel format. For example, a backend may perform color lookup of 8-bit graphics before pushing a screen to hardware, or correct the ARGB color order.
- Parameters
-
width | New virtual screen width. |
height | New virtual screen height. |
format | New virtual screen pixel format. |
Implements OSystem.
void OSystem_Dreamcast::copyRectToScreen |
( |
const void * |
buf, |
|
|
int |
pitch, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
Blit a bitmap to the virtual screen.
The real screen will not immediately be updated to reflect the changes. Client code must call updateScreen to ensure any changes are visible to the user. This can be used to optimize drawing and reduce flicker.
If the current pixel format has one byte per pixel, the graphics data uses 8 bits per pixel, using the palette specified via setPalette. If more than one byte per pixel is in use, the graphics data uses the pixel format returned by getScreenFormat.
- Parameters
-
buf | Buffer containing the graphics data source. |
pitch | Pitch of the buffer (number of bytes in a scanline). |
x | x coordinate of the destination rectangle. |
y | y coordinate of the destination rectangle. |
w | Width of the destination rectangle. |
h | Height of the destination rectangle. |
- Note
- The specified destination rectangle must be completly contained in the visible screen space, and must be non-empty. If not, a backend may or may not perform clipping, trigger an assert, or silently corrupt memory.
- See also
- updateScreen
-
getScreenFormat
Implements OSystem.