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" 36 bool _cursorDontScale;
37 bool _cursorPaletteEnabled;
38 bool _screenUpdatePending;
43 int _cursorHotspotXScaled;
44 int _cursorHotspotYScaled;
45 float _cursorWidthScaled;
46 float _cursorHeightScaled;
54 int16 getHeight(
void)
const override;
55 int16 getWidth(
void)
const override;
57 void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
58 void updateScreen(
void)
override;
59 void clearOverlay(
void)
override;
61 void copyRectToOverlay(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
62 int16 getOverlayHeight(
void)
const override;
63 int16 getOverlayWidth(
void)
const override;
67 void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor = 255,
bool dontScale =
false,
const Graphics::PixelFormat *format = NULL,
const byte *mask =
nullptr)
override;
68 void setCursorPalette(
const byte *colors, uint start, uint num)
override;
69 bool isOverlayInGUI(
void);
75 int getDefaultGraphicsMode()
const override {
81 int getGraphicsMode()
const override {
87 void unlockScreen()
override {}
89 int getScreenChangeID()
const override;
90 void beginGFXTransaction()
override {}
92 void fillScreen(uint32 col)
override {}
93 void fillScreen(
const Common::Rect &r, uint32 col)
override {}
94 void setFocusRectangle(
const Common::Rect &rect)
override {}
95 void clearFocusRectangle()
override {}
97 void realUpdateScreen(
void);
104 void setMousePosition(
int x,
int y);
109 void setPalette(
const byte *colors, uint start, uint num)
override;
110 void grabPalette(byte *colors, uint start, uint num)
const override;
112 void overrideCursorScaling();
114 #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:99
Feature
Definition: system.h:403
void setSystemMousePosition(const int x, const int y) override
Definition: libretro-graphics-surface.h:103
Definition: windowed.h:52
void warpMouse(int x, int y) override
TransactionError
Definition: system.h:1155
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:45