Implemented display aware glfwVideoModes function for X11 XRandR and win32.

This commit is contained in:
Marcel Metz
2011-10-02 16:13:47 -04:00
parent a905e671b3
commit 58d4323ece
8 changed files with 80 additions and 15 deletions
+10
View File
@@ -88,6 +88,7 @@
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 X11
#define _GLFW_PLATFORM_LIBRARY_STATE _GLFWlibraryX11 X11
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextGLX GLX
#define _GLFW_PLATFORM_DISPLAY_STATE _GLFWdisplayX11 X11
//========================================================================
@@ -244,6 +245,15 @@ GLFWGLOBAL struct {
} _glfwJoy[GLFW_JOYSTICK_LAST + 1];
//------------------------------------------------------------------------
// Platform-specific window structure
//------------------------------------------------------------------------
typedef struct _GLFWdisplayX11
{
XRROutputInfo* output;
} _GLFWdisplayX11;
//========================================================================
// Prototypes for platform specific internal functions
//========================================================================