Simplified and made clipboard API more type safe.

This commit is contained in:
Camilla Berglund
2012-04-09 15:54:36 +02:00
parent 490c472328
commit 7044ed6f06
5 changed files with 31 additions and 52 deletions
+3 -7
View File
@@ -461,15 +461,11 @@ extern "C" {
#define GLFW_VERSION_UNAVAILABLE 0x00070007
#define GLFW_PLATFORM_ERROR 0x00070008
#define GLFW_WINDOW_NOT_ACTIVE 0x00070009
#define GLFW_CLIPBOARD_FORMAT_UNAVAILABLE 0x00070010
#define GLFW_FORMAT_UNAVAILABLE 0x0007000A
/* Gamma ramps */
#define GLFW_GAMMA_RAMP_SIZE 256
/* Clipboard formats */
#define GLFW_CLIPBOARD_FORMAT_NONE 0
#define GLFW_CLIPBOARD_FORMAT_STRING 1
/*************************************************************************
* Typedefs
*************************************************************************/
@@ -580,8 +576,8 @@ GLFWAPI int glfwGetJoystickPos(int joy, float* pos, int numaxes);
GLFWAPI int glfwGetJoystickButtons(int joy, unsigned char* buttons, int numbuttons);
/* Clipboard */
GLFWAPI void glfwSetClipboardData(void* data, size_t size, int format);
GLFWAPI size_t glfwGetClipboardData(void* data, size_t size, int format);
GLFWAPI void glfwSetClipboardString(const char* data);
GLFWAPI size_t glfwGetClipboardString(char* data, size_t size);
/* Time */
GLFWAPI double glfwGetTime(void);