Set up the Mir connection.

Set up the first of the Mir surface.
This commit is contained in:
BrandonSchaefer
2014-11-06 00:23:02 -08:00
committed by Camilla Berglund
parent 46c9663ed7
commit 4295b77582
4 changed files with 99 additions and 5 deletions
+10 -2
View File
@@ -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