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/opengl/framebuffer.h" 30 #include "backends/graphics3d/android/texture.h" 32 #include "backends/platform/android/touchcontrols.h" 40 virtual void initSurface()
override;
41 virtual void deinitSurface()
override;
42 virtual void resizeSurface()
override;
47 void updateScreen()
override;
51 virtual bool notifyMousePosition(
Common::Point &mouse)
override;
55 void setMousePosition(
int x,
int y) {
60 virtual void beginGFXTransaction() {}
66 virtual int getDefaultGraphicsMode()
const override;
68 virtual int getGraphicsMode()
const override;
74 virtual void showOverlay(
bool inGUI)
override;
75 virtual void hideOverlay()
override;
76 virtual void clearOverlay()
override;
78 virtual void copyRectToOverlay(
const void *buf,
int pitch,
79 int x,
int y,
int w,
int h)
override;
80 virtual int16 getOverlayHeight()
const override;
81 virtual int16 getOverlayWidth()
const override;
83 virtual bool isOverlayVisible()
const override {
87 virtual int16 getHeight()
const override;
88 virtual int16 getWidth()
const override;
91 virtual void setPalette(
const byte *colors, uint start, uint num)
override;
92 virtual void grabPalette(byte *colors, uint start, uint num)
const override;
93 virtual void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
94 int w,
int h)
override;
96 virtual void unlockScreen()
override;
97 virtual void fillScreen(uint32 col)
override;
98 virtual void fillScreen(
const Common::Rect &r, uint32 col)
override;
100 virtual void setShakePos(
int shakeXOffset,
int shakeYOffset) {};
101 virtual void setFocusRectangle(
const Common::Rect &rect) {}
102 virtual void clearFocusRectangle() {}
104 virtual void initSize(uint width, uint height,
106 virtual int getScreenChangeID()
const override;
108 virtual bool showMouse(
bool visible)
override;
109 virtual void warpMouse(
int x,
int y)
override;
110 virtual bool lockMouse(
bool lock)
override;
111 virtual void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
112 int hotspotY, uint32 keycolor,
115 virtual void setCursorPalette(
const byte *colors, uint start, uint num)
override;
117 float getHiDPIScreenFactor()
const override;
125 void touchControlNotifyChanged()
override;
126 void touchControlDraw(uint8 alpha, int16 x, int16 y, int16 w, int16 h,
const Common::Rect &clip)
override;
128 void syncVirtkeyboardState(
bool virtkeybd_on)
override;
129 void applyTouchSettings()
const override;
132 void updateScreenRect();
133 void updateCursorScaling();
139 void setSystemMousePosition(
int x,
int y) {}
152 void clearScreen(FixupType type, byte count = 1);
165 OpenGL::FrameBuffer *_frame_buffer;
175 int _cursorX, _cursorY;
181 bool _overlay_in_gui;
189 int _mouse_width_scaled, _mouse_height_scaled;
190 bool _mouse_dont_scale;
Definition: managed_surface.h:51
Definition: texture.h:208
Definition: android-graphics3d.h:34
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:296
Definition: system.h:1156
Definition: touchcontrols.h:31
virtual AndroidCommonGraphics::State getState() const override