17 #ifndef BACKENDS_LIBRETRO_GRAPHICS_SURFACE_H 18 #define BACKENDS_LIBRETRO_GRAPHICS_SURFACE_H 20 #include "common/system.h" 21 #include "graphics/palette.h" 22 #include "graphics/managed_surface.h" 23 #include "backends/graphics/windowed.h" 38 bool _cursorPaletteEnabled;
39 bool _screenUpdatePending;
44 int _cursorHotspotXScaled;
45 int _cursorHotspotYScaled;
46 float _cursorWidthScaled;
47 float _cursorHeightScaled;
55 int16 getHeight(
void)
const override;
56 int16 getWidth(
void)
const override;
58 void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
59 void updateScreen(
void)
override;
60 void clearOverlay(
void)
override;
62 void copyRectToOverlay(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
63 int16 getOverlayHeight(
void)
const override;
64 int16 getOverlayWidth(
void)
const override;
68 void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor,
const Graphics::PixelFormat *format,
const byte *mask,
frac_t scaleX,
frac_t scaleY)
override;
69 void setCursorPalette(
const byte *colors, uint start, uint num)
override;
70 bool isOverlayInGUI(
void);
76 int getDefaultGraphicsMode()
const override {
82 int getGraphicsMode()
const override {
88 void unlockScreen()
override {}
90 int getScreenChangeID()
const override;
91 void beginGFXTransaction()
override {}
93 void fillScreen(uint32 col)
override {}
94 void fillScreen(
const Common::Rect &r, uint32 col)
override {}
95 void setFocusRectangle(
const Common::Rect &rect)
override {}
96 void clearFocusRectangle()
override {}
98 void realUpdateScreen(
void);
105 void setMousePosition(
int x,
int y);
110 void setPalette(
const byte *colors, uint start, uint num)
override;
111 void grabPalette(byte *colors, uint start, uint num)
const override;
113 void overrideCursorScaling();
115 #endif //BACKENDS_LIBRETRO_GRAPHICS_SURFACE_H Definition: managed_surface.h:51
void grabPalette(byte *colors, uint start, uint num) const override
bool gameNeedsAspectRatioCorrection() const override
Definition: libretro-graphics-surface.h:100
Feature
Definition: system.h:415
void setSystemMousePosition(const int x, const int y) override
Definition: libretro-graphics-surface.h:104
Definition: windowed.h:52
void warpMouse(int x, int y) override
TransactionError
Definition: system.h:1188
void setPalette(const byte *colors, uint start, uint num) override
Definition: libretro-graphics-surface.h:25
void handleResizeImpl(const int width, const int height) override
Simple class for handling a palette data.
Definition: palette.h:61
int32 frac_t
Definition: frac.h:52