From 897558fdfb5a3e63efe57424637720ecb9284285 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 13:34:58 +0100 Subject: [PATCH] Rearranged public types. --- include/GL/glfw3.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index 77d981cf..9d5ae7bd 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -451,6 +451,19 @@ extern "C" { /* Window handle type */ typedef void* GLFWwindow; +/* Function pointer types */ +typedef void (* GLFWerrorfun)(int,const char*); +typedef void (* GLFWwindowsizefun)(GLFWwindow,int,int); +typedef int (* GLFWwindowclosefun)(GLFWwindow); +typedef void (* GLFWwindowrefreshfun)(GLFWwindow); +typedef void (* GLFWwindowfocusfun)(GLFWwindow,int); +typedef void (* GLFWwindowiconifyfun)(GLFWwindow,int); +typedef void (* GLFWmousebuttonfun)(GLFWwindow,int,int); +typedef void (* GLFWmouseposfun)(GLFWwindow,int,int); +typedef void (* GLFWscrollfun)(GLFWwindow,int,int); +typedef void (* GLFWkeyfun)(GLFWwindow,int,int); +typedef void (* GLFWcharfun)(GLFWwindow,int); + /* The video mode structure used by glfwGetVideoModes */ typedef struct { @@ -469,19 +482,6 @@ typedef struct unsigned short blue[GLFW_GAMMA_RAMP_SIZE]; } GLFWgammaramp; -/* Function pointer types */ -typedef void (* GLFWerrorfun)(int,const char*); -typedef void (* GLFWwindowsizefun)(GLFWwindow,int,int); -typedef int (* GLFWwindowclosefun)(GLFWwindow); -typedef void (* GLFWwindowrefreshfun)(GLFWwindow); -typedef void (* GLFWwindowfocusfun)(GLFWwindow,int); -typedef void (* GLFWwindowiconifyfun)(GLFWwindow,int); -typedef void (* GLFWmousebuttonfun)(GLFWwindow,int,int); -typedef void (* GLFWmouseposfun)(GLFWwindow,int,int); -typedef void (* GLFWscrollfun)(GLFWwindow,int,int); -typedef void (* GLFWkeyfun)(GLFWwindow,int,int); -typedef void (* GLFWcharfun)(GLFWwindow,int); - /************************************************************************* * Prototypes