22 #ifndef BACKENDS_GRAPHICS3D_ANDROID_ANDROID_GRAPHICS3D_H 23 #define BACKENDS_GRAPHICS3D_ANDROID_ANDROID_GRAPHICS3D_H 25 #include "common/scummsys.h" 27 #include "backends/graphics/graphics.h" 28 #include "backends/graphics/android/android-graphics.h" 29 #include "backends/graphics3d/android/texture.h" 31 #include "backends/platform/android/touchcontrols.h" 39 virtual void initSurface()
override;
40 virtual void deinitSurface()
override;
41 virtual void resizeSurface()
override;
46 void updateScreen()
override;
50 virtual bool notifyMousePosition(
Common::Point &mouse)
override;
54 void setMousePosition(
int x,
int y) {
59 virtual void beginGFXTransaction() {}
65 virtual int getDefaultGraphicsMode()
const override;
67 virtual int getGraphicsMode()
const override;
73 virtual void showOverlay(
bool inGUI)
override;
74 virtual void hideOverlay()
override;
75 virtual void clearOverlay()
override;
77 virtual void copyRectToOverlay(
const void *buf,
int pitch,
78 int x,
int y,
int w,
int h)
override;
79 virtual int16 getOverlayHeight()
const override;
80 virtual int16 getOverlayWidth()
const override;
82 virtual bool isOverlayVisible()
const override {
86 virtual int16 getHeight()
const override;
87 virtual int16 getWidth()
const override;
90 virtual void setPalette(
const byte *colors, uint start, uint num)
override;
91 virtual void grabPalette(byte *colors, uint start, uint num)
const override;
92 virtual void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
93 int w,
int h)
override;
95 virtual void unlockScreen()
override;
96 virtual void fillScreen(uint32 col)
override;
97 virtual void fillScreen(
const Common::Rect &r, uint32 col)
override;
99 virtual void setShakePos(
int shakeXOffset,
int shakeYOffset) {};
100 virtual void setFocusRectangle(
const Common::Rect &rect) {}
101 virtual void clearFocusRectangle() {}
103 virtual void initSize(uint width, uint height,
105 virtual int getScreenChangeID()
const override;
107 virtual bool showMouse(
bool visible)
override;
108 virtual void warpMouse(
int x,
int y)
override;
109 virtual bool lockMouse(
bool lock)
override;
110 virtual void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
111 int hotspotY, uint32 keycolor,
114 virtual void setCursorPalette(
const byte *colors, uint start, uint num)
override;
116 float getHiDPIScreenFactor()
const override;
124 void touchControlNotifyChanged()
override;
125 void touchControlDraw(uint8 alpha, int16 x, int16 y, int16 w, int16 h,
const Common::Rect &clip)
override;
127 void syncVirtkeyboardState(
bool virtkeybd_on)
override;
128 void applyTouchSettings()
const override;
131 void updateScreenRect();
132 void updateCursorScaling();
138 void setSystemMousePosition(
int x,
int y) {}
151 void clearScreen(FixupType type, byte count = 1);
174 int _cursorX, _cursorY;
180 bool _overlay_in_gui;
188 int _mouse_width_scaled, _mouse_height_scaled;
189 bool _mouse_dont_scale;
Definition: managed_surface.h:51
Definition: texture.h:223
Definition: android-graphics3d.h:33
virtual bool setState(const AndroidCommonGraphics::State &state) override
Feature
Definition: system.h:403
Definition: android-graphics.h:30
virtual void setPalette(const byte *colors, uint start, uint num) override
TransactionError
Definition: system.h:1155
virtual void grabPalette(byte *colors, uint start, uint num) const override
Definition: android-graphics.h:48
Definition: graphics.h:37
Definition: texture.h:311
Definition: system.h:1156
Definition: touchcontrols.h:31
virtual AndroidCommonGraphics::State getState() const override