mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Set up the Mir connection.
Set up the first of the Mir surface.
This commit is contained in:
committed by
Camilla Berglund
parent
46c9663ed7
commit
4295b77582
+10
-2
@@ -13,8 +13,8 @@
|
||||
#error "The Mir backend depends on EGL platform support"
|
||||
#endif
|
||||
|
||||
#define _GLFW_EGL_NATIVE_WINDOW NULL
|
||||
#define _GLFW_EGL_NATIVE_DISPLAY NULL
|
||||
#define _GLFW_EGL_NATIVE_WINDOW window->mir.native_window
|
||||
#define _GLFW_EGL_NATIVE_DISPLAY _glfw.mir.native_display
|
||||
|
||||
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowMir mir;
|
||||
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorMir mir;
|
||||
@@ -23,6 +23,11 @@
|
||||
|
||||
typedef struct _GLFWwindowMir
|
||||
{
|
||||
MirSurface* surface;
|
||||
|
||||
EGLSurface egl_surface;
|
||||
MirEGLNativeWindowType native_window;
|
||||
|
||||
} _GLFWwindowMir;
|
||||
|
||||
typedef struct _GLFWmonitorMir
|
||||
@@ -33,6 +38,9 @@ typedef struct _GLFWlibraryMir
|
||||
{
|
||||
MirConnection* connection;
|
||||
|
||||
MirEGLNativeDisplayType native_display;
|
||||
|
||||
|
||||
} _GLFWlibraryMir;
|
||||
|
||||
typedef struct _GLFWcursorMir
|
||||
|
||||
Reference in New Issue
Block a user