Public Member Functions | |
virtual void | initSurface () override |
virtual void | deinitSurface () override |
virtual void | resizeSurface () override |
virtual AndroidCommonGraphics::State | getState () const override |
virtual bool | setState (const AndroidCommonGraphics::State &state) override |
void | updateScreen () override |
void | displayMessageOnOSD (const Common::U32String &msg) |
virtual bool | notifyMousePosition (Common::Point &mouse) override |
virtual Common::Point | getMousePosition () override |
void | setMousePosition (int x, int y) |
virtual void | beginGFXTransaction () |
virtual OSystem::TransactionError | endGFXTransaction () |
virtual const OSystem::GraphicsMode * | getSupportedGraphicsModes () const override |
virtual int | getDefaultGraphicsMode () const override |
virtual bool | setGraphicsMode (int mode, uint flags=OSystem::kGfxModeNoFlags) override |
virtual int | getGraphicsMode () const override |
virtual bool | hasFeature (OSystem::Feature f) const override |
virtual void | setFeatureState (OSystem::Feature f, bool enable) override |
virtual bool | getFeatureState (OSystem::Feature f) const override |
virtual void | showOverlay (bool inGUI) override |
virtual void | hideOverlay () override |
virtual void | clearOverlay () override |
virtual void | grabOverlay (Graphics::Surface &surface) const override |
virtual void | copyRectToOverlay (const void *buf, int pitch, int x, int y, int w, int h) override |
virtual int16 | getOverlayHeight () const override |
virtual int16 | getOverlayWidth () const override |
virtual Graphics::PixelFormat | getOverlayFormat () const override |
virtual bool | isOverlayVisible () const override |
virtual int16 | getHeight () const override |
virtual int16 | getWidth () const override |
virtual void | setPalette (const byte *colors, uint start, uint num) override |
virtual void | grabPalette (byte *colors, uint start, uint num) const override |
virtual void | copyRectToScreen (const void *buf, int pitch, int x, int y, int w, int h) override |
virtual Graphics::Surface * | lockScreen () override |
virtual void | unlockScreen () override |
virtual void | fillScreen (uint32 col) override |
virtual void | fillScreen (const Common::Rect &r, uint32 col) override |
virtual void | setShakePos (int shakeXOffset, int shakeYOffset) |
virtual void | setFocusRectangle (const Common::Rect &rect) |
virtual void | clearFocusRectangle () |
virtual void | initSize (uint width, uint height, const Graphics::PixelFormat *format) override |
virtual int | getScreenChangeID () const override |
virtual bool | showMouse (bool visible) override |
virtual void | warpMouse (int x, int y) override |
virtual bool | lockMouse (bool lock) override |
virtual void | setMouseCursor (const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale, const Graphics::PixelFormat *format, const byte *mask) override |
virtual void | setCursorPalette (const byte *colors, uint start, uint num) override |
float | getHiDPIScreenFactor () const override |
void | touchControlInitSurface (const Graphics::ManagedSurface &surf) override |
void | touchControlNotifyChanged () override |
void | touchControlDraw (uint8 alpha, int16 x, int16 y, int16 w, int16 h, const Common::Rect &clip) override |
void | syncVirtkeyboardState (bool virtkeybd_on) override |
void | applyTouchSettings () const override |
Public Member Functions inherited from GraphicsManager | |
virtual bool | setShader (const Common::Path &fileName) |
virtual const OSystem::GraphicsMode * | getSupportedStretchModes () const |
virtual int | getDefaultStretchMode () const |
virtual bool | setStretchMode (int mode) |
virtual int | getStretchMode () const |
virtual Common::RotationMode | getRotationMode () 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 void | displayActivityIconOnOSD (const Graphics::Surface *icon) |
virtual void | saveScreenshot () |
Public Member Functions inherited from PaletteManager | |
void | setPalette (const Graphics::Palette &pal, uint start=0) |
Graphics::Palette | grabPalette (uint start, uint num) |
Protected Member Functions | |
void | updateScreenRect () |
void | updateCursorScaling () |
const GLESBaseTexture * | getActiveTexture () const |
Common::Point | convertScreenToVirtual (int &x, int &y) const |
Common::Point | convertVirtualToScreen (int x, int y) const |
void | setSystemMousePosition (int x, int y) |
bool | loadVideoMode (uint requestedWidth, uint requestedHeight, const Graphics::PixelFormat &format) |
|
overridevirtual |
Gets the current state of the graphics manager.
Implements AndroidCommonGraphics.
|
overridevirtual |
Sets up a basic state of the graphics manager.
Implements AndroidCommonGraphics.
|
overridevirtual |
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-...
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 |
Implements GraphicsManager.
|
overridevirtual |
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
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 |
Implements GraphicsManager.