Added cursor stubs to Wayland backend.

This commit is contained in:
Camilla Berglund 2014-03-27 17:29:22 +01:00
parent 115c6bc000
commit 7a4623e034
2 changed files with 24 additions and 0 deletions

View File

@ -47,6 +47,7 @@
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl #define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl
#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl
typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland; typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland;
@ -89,6 +90,11 @@ typedef struct _GLFWmonitorWayland
int y; int y;
} _GLFWmonitorWayland; } _GLFWmonitorWayland;
typedef struct _GLFWcursorWayland
{
int dummy;
} _GLFWcursorWayland;
//======================================================================== //========================================================================
// Prototypes for platform specific internal functions // Prototypes for platform specific internal functions

View File

@ -273,3 +273,21 @@ void _glfwPlatformApplyCursorMode(_GLFWwindow* window)
} }
} }
int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
const GLFWimage* image,
int xhot, int yhot)
{
fprintf(stderr, "_glfwPlatformCreateCursor not implemented yet\n");
return GL_FALSE;
}
void _glfwPlatformDestroyCursor(_GLFWcursor* cursor)
{
fprintf(stderr, "_glfwPlatformDestroyCursor not implemented yet\n");
}
void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor)
{
fprintf(stderr, "_glfwPlatformSetCursor not implemented yet\n");
}