mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Rearranged public types.
This commit is contained in:
parent
0d50ee749f
commit
897558fdfb
|
@ -451,6 +451,19 @@ extern "C" {
|
||||||
/* Window handle type */
|
/* Window handle type */
|
||||||
typedef void* GLFWwindow;
|
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 */
|
/* The video mode structure used by glfwGetVideoModes */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -469,19 +482,6 @@ typedef struct
|
||||||
unsigned short blue[GLFW_GAMMA_RAMP_SIZE];
|
unsigned short blue[GLFW_GAMMA_RAMP_SIZE];
|
||||||
} GLFWgammaramp;
|
} 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
|
* Prototypes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user