0
|
1
|
|
2
|
|
3 dynbind("glfw", "
|
|
4 glfwBroadcastCond(*v)v;
|
|
5 glfwCloseWindow()v;
|
|
6 glfwCreateCond()*v;
|
|
7 glfwCreateMutex()*v;
|
|
8 glfwCreateThread(*p*v)i;
|
|
9 glfwDestroyCond(*v)v;
|
|
10 glfwDestroyMutex(*v)v;
|
|
11 glfwDestroyThread(i)v;
|
|
12 glfwDisable(i)v;
|
|
13 glfwEnable(i)v;
|
|
14 glfwExtensionSupported(*c)i;
|
|
15 glfwFreeImage(*<GLFWimage>)v;
|
|
16 glfwGetDesktopMode(*<GLFWvidmode>)v;
|
|
17 glfwGetGLVersion(*i*i*i)v;
|
|
18 glfwGetJoystickButtons(i*Ci)i;
|
|
19 glfwGetJoystickParam(ii)i;
|
|
20 glfwGetJoystickPos(i*fi)i;
|
|
21 glfwGetKey(i)i;
|
|
22 glfwGetMouseButton(i)i;
|
|
23 glfwGetMousePos(*i*i)v;
|
|
24 glfwGetMouseWheel()i;
|
|
25 glfwGetNumberOfProcessors()i;
|
|
26 glfwGetProcAddress(*c)*v;
|
|
27 glfwGetThreadID()i;
|
|
28 glfwGetTime()d;
|
|
29 glfwGetVersion(*i*i*i)v;
|
|
30 glfwGetVideoModes(*<GLFWvidmode>i)i;
|
|
31 glfwGetWindowParam(i)i;
|
|
32 glfwGetWindowSize(*i*i)v;
|
|
33 glfwIconifyWindow()v;
|
|
34 glfwInit()i;
|
|
35 glfwLoadMemoryTexture2D(*vji)i;
|
|
36 glfwLoadTexture2D(*ci)i;
|
|
37 glfwLoadTextureImage2D(*<GLFWimage>i)i;
|
|
38 glfwLockMutex(*v)v;
|
|
39 glfwOpenWindow(iiiiiiiii)i;
|
|
40 glfwOpenWindowHint(ii)v;
|
|
41 glfwPollEvents()v;
|
|
42 glfwReadImage(*c*<GLFWimage>i)i;
|
|
43 glfwReadMemoryImage(*vj*<GLFWimage>i)i;
|
|
44 glfwRestoreWindow()v;
|
|
45 glfwSetCharCallback(*p)v;
|
|
46 glfwSetKeyCallback(*p)v;
|
|
47 glfwSetMouseButtonCallback(*p)v;
|
|
48 glfwSetMousePos(ii)v;
|
|
49 glfwSetMousePosCallback(*p)v;
|
|
50 glfwSetMouseWheel(i)v;
|
|
51 glfwSetMouseWheelCallback(*p)v;
|
|
52 glfwSetTime(d)v;
|
|
53 glfwSetWindowCloseCallback(*p)v;
|
|
54 glfwSetWindowPos(ii)v;
|
|
55 glfwSetWindowRefreshCallback(*p)v;
|
|
56 glfwSetWindowSize(ii)v;
|
|
57 glfwSetWindowSizeCallback(*p)v;
|
|
58 glfwSetWindowTitle(*c)v;
|
|
59 glfwSignalCond(*v)v;
|
|
60 glfwSleep(d)v;
|
|
61 glfwSwapBuffers()v;
|
|
62 glfwSwapInterval(i)v;
|
|
63 glfwTerminate()v;
|
|
64 glfwUnlockMutex(*v)v;
|
|
65 glfwWaitCond(*v*vd)v;
|
|
66 glfwWaitEvents()v;
|
|
67 glfwWaitThread(ii)i;
|
|
68 ")
|
|
69 parseStructInfos("
|
|
70 GLFWimage{iiii*C}Width Height Format BytesPerPixel Data ;
|
|
71 GLFWvidmode{iiiii}Width Height RedBits BlueBits GreenBits ;
|
|
72 ")
|
|
73 #GLFWAPI=
|
|
74 #GLFWAPIENTRY=
|
|
75 #GLFWCALL=
|
|
76 GLFW_ACCELERATED=0x00020004
|
|
77 GLFW_ACCUM_ALPHA_BITS=0x0002000F
|
|
78 GLFW_ACCUM_BLUE_BITS=0x0002000E
|
|
79 GLFW_ACCUM_GREEN_BITS=0x0002000D
|
|
80 GLFW_ACCUM_RED_BITS=0x0002000C
|
|
81 GLFW_ACTIVE=0x00020002
|
|
82 GLFW_ALPHA_BITS=0x00020008
|
|
83 GLFW_ALPHA_MAP_BIT=0x00000008
|
|
84 GLFW_AUTO_POLL_EVENTS=0x00030006
|
|
85 GLFW_AUX_BUFFERS=0x00020010
|
|
86 GLFW_AXES=0x00050002
|
|
87 GLFW_BLUE_BITS=0x00020007
|
|
88 GLFW_BUILD_MIPMAPS_BIT=0x00000004
|
|
89 GLFW_BUTTONS=0x00050003
|
|
90 GLFW_DEPTH_BITS=0x00020009
|
|
91 GLFW_FSAA_SAMPLES=0x00020013
|
|
92 GLFW_FULLSCREEN=0x00010002
|
|
93 GLFW_GREEN_BITS=0x00020006
|
|
94 GLFW_ICONIFIED=0x00020003
|
|
95 GLFW_INFINITY=100000.0
|
|
96 GLFW_JOYSTICK_10=9
|
|
97 GLFW_JOYSTICK_11=10
|
|
98 GLFW_JOYSTICK_12=11
|
|
99 GLFW_JOYSTICK_13=12
|
|
100 GLFW_JOYSTICK_14=13
|
|
101 GLFW_JOYSTICK_15=14
|
|
102 GLFW_JOYSTICK_16=15
|
|
103 GLFW_JOYSTICK_1=0
|
|
104 GLFW_JOYSTICK_2=1
|
|
105 GLFW_JOYSTICK_3=2
|
|
106 GLFW_JOYSTICK_4=3
|
|
107 GLFW_JOYSTICK_5=4
|
|
108 GLFW_JOYSTICK_6=5
|
|
109 GLFW_JOYSTICK_7=6
|
|
110 GLFW_JOYSTICK_8=7
|
|
111 GLFW_JOYSTICK_9=8
|
|
112 GLFW_JOYSTICK_LAST=GLFW_JOYSTICK_16
|
|
113 GLFW_KEY_SPECIAL=256
|
|
114 GLFW_KEY_BACKSPACE=(GLFW_KEY_SPECIAL+39)
|
|
115 GLFW_KEY_CAPS_LOCK=(GLFW_KEY_SPECIAL+64)
|
|
116 GLFW_KEY_DEL=(GLFW_KEY_SPECIAL+41)
|
|
117 GLFW_KEY_DOWN=(GLFW_KEY_SPECIAL+28)
|
|
118 GLFW_KEY_END=(GLFW_KEY_SPECIAL+45)
|
|
119 GLFW_KEY_ENTER=(GLFW_KEY_SPECIAL+38)
|
|
120 GLFW_KEY_ESC=(GLFW_KEY_SPECIAL+1)
|
|
121 GLFW_KEY_F10=(GLFW_KEY_SPECIAL+11)
|
|
122 GLFW_KEY_F11=(GLFW_KEY_SPECIAL+12)
|
|
123 GLFW_KEY_F12=(GLFW_KEY_SPECIAL+13)
|
|
124 GLFW_KEY_F13=(GLFW_KEY_SPECIAL+14)
|
|
125 GLFW_KEY_F14=(GLFW_KEY_SPECIAL+15)
|
|
126 GLFW_KEY_F15=(GLFW_KEY_SPECIAL+16)
|
|
127 GLFW_KEY_F16=(GLFW_KEY_SPECIAL+17)
|
|
128 GLFW_KEY_F17=(GLFW_KEY_SPECIAL+18)
|
|
129 GLFW_KEY_F18=(GLFW_KEY_SPECIAL+19)
|
|
130 GLFW_KEY_F19=(GLFW_KEY_SPECIAL+20)
|
|
131 GLFW_KEY_F1=(GLFW_KEY_SPECIAL+2)
|
|
132 GLFW_KEY_F20=(GLFW_KEY_SPECIAL+21)
|
|
133 GLFW_KEY_F21=(GLFW_KEY_SPECIAL+22)
|
|
134 GLFW_KEY_F22=(GLFW_KEY_SPECIAL+23)
|
|
135 GLFW_KEY_F23=(GLFW_KEY_SPECIAL+24)
|
|
136 GLFW_KEY_F24=(GLFW_KEY_SPECIAL+25)
|
|
137 GLFW_KEY_F25=(GLFW_KEY_SPECIAL+26)
|
|
138 GLFW_KEY_F2=(GLFW_KEY_SPECIAL+3)
|
|
139 GLFW_KEY_F3=(GLFW_KEY_SPECIAL+4)
|
|
140 GLFW_KEY_F4=(GLFW_KEY_SPECIAL+5)
|
|
141 GLFW_KEY_F5=(GLFW_KEY_SPECIAL+6)
|
|
142 GLFW_KEY_F6=(GLFW_KEY_SPECIAL+7)
|
|
143 GLFW_KEY_F7=(GLFW_KEY_SPECIAL+8)
|
|
144 GLFW_KEY_F8=(GLFW_KEY_SPECIAL+9)
|
|
145 GLFW_KEY_F9=(GLFW_KEY_SPECIAL+10)
|
|
146 GLFW_KEY_HOME=(GLFW_KEY_SPECIAL+44)
|
|
147 GLFW_KEY_INSERT=(GLFW_KEY_SPECIAL+40)
|
|
148 GLFW_KEY_KP_0=(GLFW_KEY_SPECIAL+46)
|
|
149 GLFW_KEY_KP_1=(GLFW_KEY_SPECIAL+47)
|
|
150 GLFW_KEY_KP_2=(GLFW_KEY_SPECIAL+48)
|
|
151 GLFW_KEY_KP_3=(GLFW_KEY_SPECIAL+49)
|
|
152 GLFW_KEY_KP_4=(GLFW_KEY_SPECIAL+50)
|
|
153 GLFW_KEY_KP_5=(GLFW_KEY_SPECIAL+51)
|
|
154 GLFW_KEY_KP_6=(GLFW_KEY_SPECIAL+52)
|
|
155 GLFW_KEY_KP_7=(GLFW_KEY_SPECIAL+53)
|
|
156 GLFW_KEY_KP_8=(GLFW_KEY_SPECIAL+54)
|
|
157 GLFW_KEY_KP_9=(GLFW_KEY_SPECIAL+55)
|
|
158 GLFW_KEY_KP_ADD=(GLFW_KEY_SPECIAL+59)
|
|
159 GLFW_KEY_KP_DECIMAL=(GLFW_KEY_SPECIAL+60)
|
|
160 GLFW_KEY_KP_DIVIDE=(GLFW_KEY_SPECIAL+56)
|
|
161 GLFW_KEY_KP_ENTER=(GLFW_KEY_SPECIAL+62)
|
|
162 GLFW_KEY_KP_EQUAL=(GLFW_KEY_SPECIAL+61)
|
|
163 GLFW_KEY_KP_MULTIPLY=(GLFW_KEY_SPECIAL+57)
|
|
164 GLFW_KEY_KP_NUM_LOCK=(GLFW_KEY_SPECIAL+63)
|
|
165 GLFW_KEY_KP_SUBTRACT=(GLFW_KEY_SPECIAL+58)
|
|
166 GLFW_KEY_LALT=(GLFW_KEY_SPECIAL+35)
|
|
167 GLFW_KEY_LCTRL=(GLFW_KEY_SPECIAL+33)
|
|
168 GLFW_KEY_LEFT=(GLFW_KEY_SPECIAL+29)
|
|
169 GLFW_KEY_LSHIFT=(GLFW_KEY_SPECIAL+31)
|
|
170 GLFW_KEY_LSUPER=(GLFW_KEY_SPECIAL+67)
|
|
171 GLFW_KEY_MENU=(GLFW_KEY_SPECIAL+69)
|
|
172 GLFW_KEY_PAGEDOWN=(GLFW_KEY_SPECIAL+43)
|
|
173 GLFW_KEY_PAGEUP=(GLFW_KEY_SPECIAL+42)
|
|
174 GLFW_KEY_PAUSE=(GLFW_KEY_SPECIAL+66)
|
|
175 GLFW_KEY_RALT=(GLFW_KEY_SPECIAL+36)
|
|
176 GLFW_KEY_RCTRL=(GLFW_KEY_SPECIAL+34)
|
|
177 GLFW_KEY_REPEAT=0x00030005
|
|
178 GLFW_KEY_RIGHT=(GLFW_KEY_SPECIAL+30)
|
|
179 GLFW_KEY_RSHIFT=(GLFW_KEY_SPECIAL+32)
|
|
180 GLFW_KEY_RSUPER=(GLFW_KEY_SPECIAL+68)
|
|
181 GLFW_KEY_SCROLL_LOCK=(GLFW_KEY_SPECIAL+65)
|
|
182 GLFW_KEY_SPACE=32
|
|
183 GLFW_KEY_TAB=(GLFW_KEY_SPECIAL+37)
|
|
184 GLFW_KEY_UNKNOWN=-1
|
|
185 GLFW_KEY_UP=(GLFW_KEY_SPECIAL+27)
|
|
186 GLFW_KEY_LAST=GLFW_KEY_MENU
|
|
187 GLFW_MOUSE_BUTTON_1=0
|
|
188 GLFW_MOUSE_BUTTON_2=1
|
|
189 GLFW_MOUSE_BUTTON_3=2
|
|
190 GLFW_MOUSE_BUTTON_4=3
|
|
191 GLFW_MOUSE_BUTTON_5=4
|
|
192 GLFW_MOUSE_BUTTON_6=5
|
|
193 GLFW_MOUSE_BUTTON_7=6
|
|
194 GLFW_MOUSE_BUTTON_8=7
|
|
195 GLFW_MOUSE_BUTTON_LAST=GLFW_MOUSE_BUTTON_8
|
|
196 GLFW_MOUSE_BUTTON_LEFT=GLFW_MOUSE_BUTTON_1
|
|
197 GLFW_MOUSE_BUTTON_MIDDLE=GLFW_MOUSE_BUTTON_3
|
|
198 GLFW_MOUSE_BUTTON_RIGHT=GLFW_MOUSE_BUTTON_2
|
|
199 GLFW_MOUSE_CURSOR=0x00030001
|
|
200 GLFW_NOWAIT=0x00040002
|
|
201 GLFW_NO_RESCALE_BIT=0x00000001
|
|
202 GLFW_OPENED=0x00020001
|
|
203 GLFW_OPENGL_COMPAT_PROFILE=0x00050002
|
|
204 GLFW_OPENGL_CORE_PROFILE=0x00050001
|
|
205 GLFW_OPENGL_DEBUG_CONTEXT=0x00020017
|
|
206 GLFW_OPENGL_FORWARD_COMPAT=0x00020016
|
|
207 GLFW_OPENGL_PROFILE=0x00020018
|
|
208 GLFW_OPENGL_VERSION_MAJOR=0x00020014
|
|
209 GLFW_OPENGL_VERSION_MINOR=0x00020015
|
|
210 GLFW_ORIGIN_UL_BIT=0x00000002
|
|
211 GLFW_PRESENT=0x00050001
|
|
212 GLFW_PRESS=1
|
|
213 GLFW_RED_BITS=0x00020005
|
|
214 GLFW_REFRESH_RATE=0x0002000B
|
|
215 GLFW_RELEASE=0
|
|
216 GLFW_STENCIL_BITS=0x0002000A
|
|
217 GLFW_STEREO=0x00020011
|
|
218 GLFW_STICKY_KEYS=0x00030002
|
|
219 GLFW_STICKY_MOUSE_BUTTONS=0x00030003
|
|
220 GLFW_SYSTEM_KEYS=0x00030004
|
|
221 GLFW_VERSION_MAJOR=2
|
|
222 GLFW_VERSION_MINOR=7
|
|
223 GLFW_VERSION_REVISION=3
|
|
224 GLFW_WAIT=0x00040001
|
|
225 GLFW_WINDOW=0x00010001
|
|
226 GLFW_WINDOW_NO_RESIZE=0x00020012
|
|
227
|