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
+5 -1
View File
@@ -1,6 +1,7 @@
#include "internal.h"
#include <stdio.h>
#include <stdlib.h>
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
@@ -8,7 +9,10 @@
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
{
return NULL;
// FIXME Work out the best way to get this from mir, as we'll end up looping
// through all of that info... best to store it before we get here.
_GLFWmonitor** monitors = calloc(1, sizeof(_GLFWmonitor*));
return monitors;
}
GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second)