22 #ifndef BACKENDS_GRAPHICS3D_IOS_IOS_GRAPHICS3D_H 23 #define BACKENDS_GRAPHICS3D_IOS_IOS_GRAPHICS3D_H 25 #if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS) 27 #include "common/scummsys.h" 29 #include "backends/graphics/windowed.h" 30 #include "backends/graphics/ios/ios-graphics.h" 31 #include "backends/graphics3d/opengl/framebuffer.h" 32 #include "backends/graphics3d/opengl/tiledsurface.h" 33 #include "backends/graphics3d/opengl/surfacerenderer.h" 37 iOSGraphics3dManager();
38 virtual ~iOSGraphics3dManager();
46 void initSurface()
override;
47 void deinitSurface()
override;
49 void notifyResize(
const int width,
const int height)
override;
63 int getDefaultGraphicsMode()
const override;
65 int getGraphicsMode()
const override;
67 void beginGFXTransaction()
override {}
77 return supportedFormats;
80 int getScreenChangeID()
const override {
return _screenChangeCount; }
82 int16 getHeight()
const override;
83 int16 getWidth()
const override;
85 float getHiDPIScreenFactor()
const override;
88 void updateScreen()
override;
90 void setPalette(
const byte *colors, uint start, uint num)
override {}
91 void grabPalette(byte *colors, uint start, uint num)
const override {}
92 void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override {}
94 void unlockScreen()
override {}
95 void fillScreen(uint32 col)
override {}
96 void fillScreen(
const Common::Rect &r, uint32 col)
override {}
97 void setShakePos(
int shakeXOffset,
int shakeYOffset)
override {};
98 void setFocusRectangle(
const Common::Rect& rect)
override {}
99 void clearFocusRectangle()
override {}
103 int getDefaultStretchMode()
const override;
104 bool setStretchMode(
int mode)
override;
105 int getStretchMode()
const override;
106 void showOverlay(
bool inGUI)
override;
107 void hideOverlay()
override;
109 void clearOverlay()
override;
111 void copyRectToOverlay(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
112 int16 getOverlayWidth()
const override;
113 int16 getOverlayHeight()
const override;
116 bool showMouse(
bool visible)
override;
117 void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale =
false,
const Graphics::PixelFormat *format = NULL,
const byte *mask = NULL)
override;
118 void setCursorPalette(
const byte *colors, uint start, uint num)
override {}
121 void updateCursorScaling();
122 void createDepthAndStencilBuffer(
int width,
int height);
123 void updateDepthAndStencilBuffer(
int width,
int height);
125 int _screenChangeCount;
127 bool _aspectRatioCorrection;
128 bool _mouseDontScale;
131 int _mouseWidthScaled, _mouseHeightScaled;
140 OpenGL::FrameBuffer *_frameBuffer;
Definition: ios-graphics.h:30
virtual void setPalette(const byte *colors, uint start, uint num)=0
virtual State getState() const =0
virtual void handleResizeImpl(const int width, const int height)=0
Feature
Definition: system.h:403
virtual bool gameNeedsAspectRatioCorrection() const =0
Definition: ios-graphics.h:50
Definition: windowed.h:52
TransactionError
Definition: system.h:1155
virtual void grabPalette(byte *colors, uint start, uint num) const =0
Definition: surfacerenderer.h:37
virtual bool setState(const State &state)=0
Definition: system.h:1156
Definition: tiledsurface.h:40
virtual void setSystemMousePosition(const int x, const int y)=0
virtual void notifyResize(const int width, const int height)=0