ScummVM API documentation
AndroidGraphics3dManager Class Reference
Inheritance diagram for AndroidGraphics3dManager:
GraphicsManager AndroidCommonGraphics TouchControlsDrawer PaletteManager Common::NonCopyable

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::GraphicsModegetSupportedGraphicsModes () 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::SurfacelockScreen () 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 touchControlNotifyChanged () override
 
void touchControlDraw (int16 x, int16 y, int16 w, int16 h, const Common::Rect &clip) override
 
void syncVirtkeyboardState (bool virtkeybd_on) override
 
- Public Member Functions inherited from GraphicsManager
virtual bool setShader (const Common::Path &fileName)
 
virtual const OSystem::GraphicsModegetSupportedStretchModes () const
 
virtual int getDefaultStretchMode () const
 
virtual bool setStretchMode (int mode)
 
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 void displayActivityIconOnOSD (const Graphics::Surface *icon)
 
virtual void saveScreenshot ()
 

Protected Member Functions

void updateScreenRect ()
 
void updateCursorScaling ()
 
const GLESBaseTexturegetActiveTexture () 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)
 

Member Function Documentation

◆ getState()

virtual AndroidCommonGraphics::State AndroidGraphics3dManager::getState ( ) const
overridevirtual

Gets the current state of the graphics manager.

Implements AndroidCommonGraphics.

◆ setState()

virtual bool AndroidGraphics3dManager::setState ( const AndroidCommonGraphics::State state)
overridevirtual

Sets up a basic state of the graphics manager.

Implements AndroidCommonGraphics.

◆ setPalette()

virtual void AndroidGraphics3dManager::setPalette ( const byte *  colors,
uint  start,
uint  num 
)
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-...

Parameters
colorsthe new palette data, in interleaved RGB format
startthe first palette entry to be updated
numthe 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 GraphicsManager.

◆ grabPalette()

virtual void AndroidGraphics3dManager::grabPalette ( byte *  colors,
uint  start,
uint  num 
) const
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

See also
setPalette
Parameters
colorsthe palette data, in interleaved RGB format
startthe first platte entry to be read
numthe 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 GraphicsManager.


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