2014-11-06 08:21:12 +00:00
|
|
|
#include "internal.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2014-11-06 08:23:02 +00:00
|
|
|
#include <stdlib.h>
|
2014-11-06 08:21:12 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
////// GLFW platform API //////
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|
|
|
{
|
2014-11-06 08:23:02 +00:00
|
|
|
// 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;
|
2014-11-06 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
fprintf(stderr, "_glfwPlatformGetGammaRamp not implemented yet\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
fprintf(stderr, "_glfwPlatformSetGammaRamp not implemented yet\n");
|
|
|
|
}
|