17 #ifndef BACKENDS_LIBRETRO_GRAPHICS_H 18 #define BACKENDS_LIBRETRO_GRAPHICS_H 20 #include "common/system.h" 21 #include "graphics/paletteman.h" 22 #include "graphics/surface.h" 23 #include "backends/graphics/graphics.h" 26 #include "backends/graphics/opengl/opengl-graphics.h" 31 const byte *_prevColorsSource;
32 unsigned char _colors[256 * 3];
35 void set(
const byte *colors, uint start, uint num);
36 void get(byte *colors, uint start, uint num)
const;
37 unsigned char *getColor(uint aIndex)
const;
39 _prevColorsSource = NULL;
57 bool _mousePaletteEnabled;
59 bool _screenUpdatePending;
70 int16 getHeight(
void)
const override;
71 int16 getWidth(
void)
const override;
73 void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
74 void updateScreen(
void)
override;
75 void showOverlay(
bool inGUI)
override;
76 void hideOverlay(
void)
override;
77 void clearOverlay(
void)
override;
79 void copyRectToOverlay(
const void *buf,
int pitch,
int x,
int y,
int w,
int h)
override;
80 int16 getOverlayHeight(
void)
const override;
81 int16 getOverlayWidth(
void)
const override;
84 bool showMouse(
bool visible)
override;
85 void warpMouse(
int x,
int y)
override;
86 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;
87 void setCursorPalette(
const byte *colors, uint start, uint num)
override;
88 bool isOverlayInGUI(
void);
94 int getDefaultGraphicsMode()
const override {
97 bool isOverlayVisible()
const override {
98 return _overlayVisible;
103 int getGraphicsMode()
const override {
109 void unlockScreen()
override {}
111 void setShakePos(
int shakeXOffset,
int shakeYOffset)
override {}
112 int getScreenChangeID()
const override {
115 void beginGFXTransaction()
override {}
119 void fillScreen(uint32 col)
override {}
120 void fillScreen(
const Common::Rect &r, uint32 col)
override {}
121 void setFocusRectangle(
const Common::Rect &rect)
override {}
122 void clearFocusRectangle()
override {}
126 void realUpdateScreen(
void);
129 void setPalette(
const byte *colors, uint start, uint num)
override;
130 void grabPalette(byte *colors, uint start, uint num)
const override;
136 LibretroOpenGLGraphics(OpenGL::ContextType contextType);
137 bool loadVideoMode(uint requestedWidth, uint requestedHeight,
const Graphics::PixelFormat &format)
override {
return true; };
138 void refreshScreen()
override;
139 void setSystemMousePosition(
const int x,
const int y)
override {};
141 bool isOverlayInGUI(
void){
return _overlayInGUI; }
142 void setMousePosition(
int x,
int y);
149 void activateInternal()
override;
152 #endif //BACKENDS_LIBRETRO_GRAPHICS_H
Definition: framebuffer.h:181
Definition: libretro-graphics.h:29
Feature
Definition: system.h:417
TransactionError
Definition: system.h:1148
Definition: opengl-graphics.h:55
Definition: graphics.h:36
Definition: libretro-graphics.h:43
Definition: system.h:1149