15#ifndef GPUDISPLAYFRONTENDX11_H
16#define GPUDISPLAYFRONTENDX11_H
35 void OpenGLPrint(
const char* s,
float x,
float y,
float r,
float g,
float b,
float a,
bool fromBotton =
true)
override;
42 int32_t FrontendMain()
override;
43 int32_t GetKey(int32_t
key);
44 void GetKey(XEvent&
event, int32_t& keyOut, int32_t& keyPressOut);
48 Display* mXDisplay =
nullptr;
50 void updateWindowState();
53 PFNGLXSWAPINTERVALEXTPROC mGlXSwapIntervalEXT =
nullptr;
54 bool vsync_supported =
false;
55 bool canSetVSync()
override {
return vsync_supported && mGlXSwapIntervalEXT; }
const Acts::Surface * surface
~GPUDisplayFrontendX11() override=default
void getSize(int32_t &width, int32_t &height) override
int32_t getVulkanSurface(void *instance, void *surface) override
float getDisplayScale() const override
void ToggleMaximized(bool set) override
void OpenGLPrint(const char *s, float x, float y, float r, float g, float b, float a, bool fromBotton=true) override
uint32_t getReqVulkanExtensions(const char **&p) override
void SwitchFullscreen(bool set) override
void SetVSync(bool enable) override
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a