ruby-glfw 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/README +1 -0
  2. data/README.API +73 -0
  3. data/Rakefile +120 -0
  4. data/examples/boing.rb +519 -0
  5. data/examples/gears.rb +327 -0
  6. data/examples/keytest.rb +117 -0
  7. data/examples/listmodes.rb +20 -0
  8. data/examples/mipmaps.rb +104 -0
  9. data/examples/mipmaps.tga +0 -0
  10. data/examples/particles.rb +837 -0
  11. data/examples/pong3d.rb +741 -0
  12. data/examples/pong3d_field.tga +0 -0
  13. data/examples/pong3d_instr.tga +0 -0
  14. data/examples/pong3d_menu.tga +0 -0
  15. data/examples/pong3d_title.tga +0 -0
  16. data/examples/pong3d_winner1.tga +0 -0
  17. data/examples/pong3d_winner2.tga +0 -0
  18. data/examples/splitview.rb +432 -0
  19. data/examples/triangle.rb +89 -0
  20. data/examples/wave.rb +294 -0
  21. data/ext/glfw/glfw.c +1094 -0
  22. data/ext/glfw/mkrf_conf.rb +70 -0
  23. data/glfw-src/Makefile +220 -0
  24. data/glfw-src/compile.ami +61 -0
  25. data/glfw-src/compile.bat +217 -0
  26. data/glfw-src/compile.sh +607 -0
  27. data/glfw-src/docs/Makefile +57 -0
  28. data/glfw-src/docs/Reference.pdf +0 -0
  29. data/glfw-src/docs/UsersGuide.pdf +0 -0
  30. data/glfw-src/docs/cleanup.bat +22 -0
  31. data/glfw-src/docs/glfwdoc.sty +80 -0
  32. data/glfw-src/docs/glfwrm.tex +3034 -0
  33. data/glfw-src/docs/glfwug.tex +2024 -0
  34. data/glfw-src/docs/readme.txt +80 -0
  35. data/glfw-src/examples/Makefile.amigaos.gcc +70 -0
  36. data/glfw-src/examples/Makefile.amigaos.vbcc +70 -0
  37. data/glfw-src/examples/Makefile.dos.djgpp +71 -0
  38. data/glfw-src/examples/Makefile.macosx.gcc +96 -0
  39. data/glfw-src/examples/Makefile.win32.bcc +75 -0
  40. data/glfw-src/examples/Makefile.win32.cross-mgw +79 -0
  41. data/glfw-src/examples/Makefile.win32.cygwin +79 -0
  42. data/glfw-src/examples/Makefile.win32.lcc +74 -0
  43. data/glfw-src/examples/Makefile.win32.mgw +75 -0
  44. data/glfw-src/examples/Makefile.win32.msvc +74 -0
  45. data/glfw-src/examples/Makefile.win32.ow +74 -0
  46. data/glfw-src/examples/Makefile.win32.pellesc +74 -0
  47. data/glfw-src/examples/Makefile.x11.in +54 -0
  48. data/glfw-src/examples/boing.c +606 -0
  49. data/glfw-src/examples/bundle.sh +46 -0
  50. data/glfw-src/examples/gears.c +382 -0
  51. data/glfw-src/examples/keytest.c +264 -0
  52. data/glfw-src/examples/listmodes.c +48 -0
  53. data/glfw-src/examples/mipmaps.c +126 -0
  54. data/glfw-src/examples/mipmaps.tga +0 -0
  55. data/glfw-src/examples/mtbench.c +301 -0
  56. data/glfw-src/examples/mthello.c +48 -0
  57. data/glfw-src/examples/particles.c +1148 -0
  58. data/glfw-src/examples/pong3d.c +839 -0
  59. data/glfw-src/examples/pong3d_field.tga +0 -0
  60. data/glfw-src/examples/pong3d_instr.tga +0 -0
  61. data/glfw-src/examples/pong3d_menu.tga +0 -0
  62. data/glfw-src/examples/pong3d_title.tga +0 -0
  63. data/glfw-src/examples/pong3d_winner1.tga +0 -0
  64. data/glfw-src/examples/pong3d_winner2.tga +0 -0
  65. data/glfw-src/examples/splitview.c +506 -0
  66. data/glfw-src/examples/triangle.c +108 -0
  67. data/glfw-src/examples/wave.c +397 -0
  68. data/glfw-src/images/opengl.gif +0 -0
  69. data/glfw-src/images/osicert.gif +0 -0
  70. data/glfw-src/include/GL/glfw.h +486 -0
  71. data/glfw-src/lib/amigaos/Makefile.amigaos.gcc +128 -0
  72. data/glfw-src/lib/amigaos/Makefile.amigaos.vbcc +128 -0
  73. data/glfw-src/lib/amigaos/SDI_compiler.h +94 -0
  74. data/glfw-src/lib/amigaos/amigaos_enable.c +51 -0
  75. data/glfw-src/lib/amigaos/amigaos_fullscreen.c +319 -0
  76. data/glfw-src/lib/amigaos/amigaos_glext.c +61 -0
  77. data/glfw-src/lib/amigaos/amigaos_init.c +284 -0
  78. data/glfw-src/lib/amigaos/amigaos_joystick.c +359 -0
  79. data/glfw-src/lib/amigaos/amigaos_thread.c +494 -0
  80. data/glfw-src/lib/amigaos/amigaos_time.c +206 -0
  81. data/glfw-src/lib/amigaos/amigaos_window.c +830 -0
  82. data/glfw-src/lib/amigaos/platform.h +337 -0
  83. data/glfw-src/lib/dos/Makefile.dos.djgpp +146 -0
  84. data/glfw-src/lib/dos/dos_enable.c +51 -0
  85. data/glfw-src/lib/dos/dos_events.c +173 -0
  86. data/glfw-src/lib/dos/dos_fullscreen.c +101 -0
  87. data/glfw-src/lib/dos/dos_glext.c +59 -0
  88. data/glfw-src/lib/dos/dos_init.c +105 -0
  89. data/glfw-src/lib/dos/dos_irq.s +246 -0
  90. data/glfw-src/lib/dos/dos_joystick.c +94 -0
  91. data/glfw-src/lib/dos/dos_keyboard.c +694 -0
  92. data/glfw-src/lib/dos/dos_mouse.c +337 -0
  93. data/glfw-src/lib/dos/dos_thread.c +267 -0
  94. data/glfw-src/lib/dos/dos_time.c +309 -0
  95. data/glfw-src/lib/dos/dos_window.c +563 -0
  96. data/glfw-src/lib/dos/platform.h +341 -0
  97. data/glfw-src/lib/enable.c +295 -0
  98. data/glfw-src/lib/fullscreen.c +95 -0
  99. data/glfw-src/lib/glext.c +201 -0
  100. data/glfw-src/lib/image.c +629 -0
  101. data/glfw-src/lib/init.c +108 -0
  102. data/glfw-src/lib/input.c +280 -0
  103. data/glfw-src/lib/internal.h +210 -0
  104. data/glfw-src/lib/joystick.c +101 -0
  105. data/glfw-src/lib/macosx/Makefile.macosx.gcc +172 -0
  106. data/glfw-src/lib/macosx/Makefile.macosx.gcc.universal +166 -0
  107. data/glfw-src/lib/macosx/libglfw.pc.in +11 -0
  108. data/glfw-src/lib/macosx/macosx_enable.c +42 -0
  109. data/glfw-src/lib/macosx/macosx_fullscreen.c +126 -0
  110. data/glfw-src/lib/macosx/macosx_glext.c +52 -0
  111. data/glfw-src/lib/macosx/macosx_init.c +194 -0
  112. data/glfw-src/lib/macosx/macosx_joystick.c +50 -0
  113. data/glfw-src/lib/macosx/macosx_thread.c +414 -0
  114. data/glfw-src/lib/macosx/macosx_time.c +112 -0
  115. data/glfw-src/lib/macosx/macosx_window.c +1279 -0
  116. data/glfw-src/lib/macosx/platform.h +349 -0
  117. data/glfw-src/lib/stream.c +194 -0
  118. data/glfw-src/lib/tga.c +405 -0
  119. data/glfw-src/lib/thread.c +340 -0
  120. data/glfw-src/lib/time.c +83 -0
  121. data/glfw-src/lib/win32/Makefile.win32.bcc +265 -0
  122. data/glfw-src/lib/win32/Makefile.win32.cross-mgw +274 -0
  123. data/glfw-src/lib/win32/Makefile.win32.cygwin +279 -0
  124. data/glfw-src/lib/win32/Makefile.win32.lcc +246 -0
  125. data/glfw-src/lib/win32/Makefile.win32.mgw +243 -0
  126. data/glfw-src/lib/win32/Makefile.win32.msvc +242 -0
  127. data/glfw-src/lib/win32/Makefile.win32.ow +242 -0
  128. data/glfw-src/lib/win32/Makefile.win32.pellesc +242 -0
  129. data/glfw-src/lib/win32/glfwdll.def +67 -0
  130. data/glfw-src/lib/win32/glfwdll_mgw1.def +67 -0
  131. data/glfw-src/lib/win32/glfwdll_mgw2.def +67 -0
  132. data/glfw-src/lib/win32/glfwdll_pellesc.def +65 -0
  133. data/glfw-src/lib/win32/libglfw.pc.in +11 -0
  134. data/glfw-src/lib/win32/platform.h +474 -0
  135. data/glfw-src/lib/win32/win32_dllmain.c +60 -0
  136. data/glfw-src/lib/win32/win32_enable.c +155 -0
  137. data/glfw-src/lib/win32/win32_fullscreen.c +317 -0
  138. data/glfw-src/lib/win32/win32_glext.c +85 -0
  139. data/glfw-src/lib/win32/win32_init.c +356 -0
  140. data/glfw-src/lib/win32/win32_joystick.c +234 -0
  141. data/glfw-src/lib/win32/win32_thread.c +511 -0
  142. data/glfw-src/lib/win32/win32_time.c +146 -0
  143. data/glfw-src/lib/win32/win32_window.c +1714 -0
  144. data/glfw-src/lib/window.c +727 -0
  145. data/glfw-src/lib/x11/Makefile.x11.in +243 -0
  146. data/glfw-src/lib/x11/platform.h +415 -0
  147. data/glfw-src/lib/x11/x11_enable.c +51 -0
  148. data/glfw-src/lib/x11/x11_fullscreen.c +524 -0
  149. data/glfw-src/lib/x11/x11_glext.c +69 -0
  150. data/glfw-src/lib/x11/x11_init.c +275 -0
  151. data/glfw-src/lib/x11/x11_joystick.c +371 -0
  152. data/glfw-src/lib/x11/x11_keysym2unicode.c +902 -0
  153. data/glfw-src/lib/x11/x11_thread.c +507 -0
  154. data/glfw-src/lib/x11/x11_time.c +154 -0
  155. data/glfw-src/lib/x11/x11_window.c +1746 -0
  156. data/glfw-src/license.txt +21 -0
  157. data/glfw-src/readme.html +927 -0
  158. data/glfw-src/support/d/examples/Makefile +59 -0
  159. data/glfw-src/support/d/examples/boing.d +610 -0
  160. data/glfw-src/support/d/examples/gears.d +379 -0
  161. data/glfw-src/support/d/examples/keytest.d +272 -0
  162. data/glfw-src/support/d/examples/listmodes.d +48 -0
  163. data/glfw-src/support/d/examples/mipmaps.d +126 -0
  164. data/glfw-src/support/d/examples/mtbench.d +304 -0
  165. data/glfw-src/support/d/examples/mthello.d +54 -0
  166. data/glfw-src/support/d/examples/particles.d +1150 -0
  167. data/glfw-src/support/d/examples/pong3d.d +840 -0
  168. data/glfw-src/support/d/examples/splitview.d +486 -0
  169. data/glfw-src/support/d/examples/triangle.d +108 -0
  170. data/glfw-src/support/d/examples/wave.d +400 -0
  171. data/glfw-src/support/d/imports/gl.d +4539 -0
  172. data/glfw-src/support/d/imports/glfw.d +349 -0
  173. data/glfw-src/support/d/imports/glu.d +328 -0
  174. data/glfw-src/support/d/lib/glfwdll.def +64 -0
  175. data/glfw-src/support/d/lib/glu32.def +56 -0
  176. data/glfw-src/support/d/lib/makefile +12 -0
  177. data/glfw-src/support/d/lib/opengl32.def +372 -0
  178. data/glfw-src/support/d/readme.html +83 -0
  179. data/glfw-src/support/delphi/examples/Triangle.dpr +105 -0
  180. data/glfw-src/support/delphi/lib/glfw.pas +437 -0
  181. data/glfw-src/support/delphi/readme.html +97 -0
  182. data/glfw-src/support/lua/examples/gears.lua +383 -0
  183. data/glfw-src/support/lua/examples/test1.lua +68 -0
  184. data/glfw-src/support/lua/readme.html +128 -0
  185. data/glfw-src/support/lua/src/luaglfw.c +1179 -0
  186. data/glfw-src/support/lua/src/luaglfw.h +48 -0
  187. data/glfw-src/support/lua/src/runlua.c +82 -0
  188. data/glfw-src/support/masm/examples/fpc.mac +47 -0
  189. data/glfw-src/support/masm/examples/makeit.bat +66 -0
  190. data/glfw-src/support/masm/examples/triangle.asm +232 -0
  191. data/glfw-src/support/masm/include/glfw.inc +326 -0
  192. data/glfw-src/support/masm/include/glu32.inc +55 -0
  193. data/glfw-src/support/masm/include/opengl32.inc +372 -0
  194. data/glfw-src/support/masm/lib/glfwdll.lib +0 -0
  195. data/glfw-src/support/masm/readme.html +170 -0
  196. data/glfw-src/support/msvc80/GLFW.sln +26 -0
  197. data/glfw-src/support/msvc80/GLFW.vcproj +257 -0
  198. data/glfw-src/support/msvc80/GLFWDLL.vcproj +287 -0
  199. data/glfw-src/support/visualbasic/bindings/glfw.bas +320 -0
  200. data/glfw-src/support/visualbasic/bindings/glu32.bas +284 -0
  201. data/glfw-src/support/visualbasic/bindings/opengl32.bas +999 -0
  202. data/glfw-src/support/visualbasic/examples/Triangle.bas +101 -0
  203. data/glfw-src/support/visualbasic/readme.html +164 -0
  204. data/website/index.html +84 -0
  205. data/website/style.css +110 -0
  206. metadata +301 -0
@@ -0,0 +1,287 @@
1
+ <?xml version="1.0" encoding="Windows-1252"?>
2
+ <VisualStudioProject
3
+ ProjectType="Visual C++"
4
+ Version="8.00"
5
+ Name="GLFWDLL"
6
+ ProjectGUID="{EE39B12C-97CF-4172-81FD-6ADE6B7F7B7B}"
7
+ RootNamespace="GLFWDLL"
8
+ Keyword="Win32Proj"
9
+ >
10
+ <Platforms>
11
+ <Platform
12
+ Name="Win32"
13
+ />
14
+ </Platforms>
15
+ <ToolFiles>
16
+ </ToolFiles>
17
+ <Configurations>
18
+ <Configuration
19
+ Name="Debug|Win32"
20
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
21
+ IntermediateDirectory="$(ConfigurationName)"
22
+ ConfigurationType="2"
23
+ CharacterSet="2"
24
+ >
25
+ <Tool
26
+ Name="VCPreBuildEventTool"
27
+ />
28
+ <Tool
29
+ Name="VCCustomBuildTool"
30
+ />
31
+ <Tool
32
+ Name="VCXMLDataGeneratorTool"
33
+ />
34
+ <Tool
35
+ Name="VCWebServiceProxyGeneratorTool"
36
+ />
37
+ <Tool
38
+ Name="VCMIDLTool"
39
+ />
40
+ <Tool
41
+ Name="VCCLCompilerTool"
42
+ Optimization="0"
43
+ AdditionalIncludeDirectories="&quot;$(ProjectDir)../../lib&quot;;&quot;$(ProjectDir)../../lib/win32&quot;;&quot;$(ProjectDir)../../include&quot;"
44
+ PreprocessorDefinitions="GLFW_BUILD_DLL"
45
+ MinimalRebuild="true"
46
+ BasicRuntimeChecks="3"
47
+ RuntimeLibrary="3"
48
+ UsePrecompiledHeader="0"
49
+ WarningLevel="3"
50
+ Detect64BitPortabilityProblems="true"
51
+ DebugInformationFormat="4"
52
+ />
53
+ <Tool
54
+ Name="VCManagedResourceCompilerTool"
55
+ />
56
+ <Tool
57
+ Name="VCResourceCompilerTool"
58
+ />
59
+ <Tool
60
+ Name="VCPreLinkEventTool"
61
+ />
62
+ <Tool
63
+ Name="VCLinkerTool"
64
+ AdditionalDependencies="opengl32.lib"
65
+ LinkIncremental="2"
66
+ GenerateDebugInformation="true"
67
+ SubSystem="2"
68
+ TargetMachine="1"
69
+ />
70
+ <Tool
71
+ Name="VCALinkTool"
72
+ />
73
+ <Tool
74
+ Name="VCManifestTool"
75
+ />
76
+ <Tool
77
+ Name="VCXDCMakeTool"
78
+ />
79
+ <Tool
80
+ Name="VCBscMakeTool"
81
+ />
82
+ <Tool
83
+ Name="VCFxCopTool"
84
+ />
85
+ <Tool
86
+ Name="VCAppVerifierTool"
87
+ />
88
+ <Tool
89
+ Name="VCWebDeploymentTool"
90
+ />
91
+ <Tool
92
+ Name="VCPostBuildEventTool"
93
+ />
94
+ </Configuration>
95
+ <Configuration
96
+ Name="Release|Win32"
97
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
98
+ IntermediateDirectory="$(ConfigurationName)"
99
+ ConfigurationType="2"
100
+ CharacterSet="2"
101
+ WholeProgramOptimization="1"
102
+ >
103
+ <Tool
104
+ Name="VCPreBuildEventTool"
105
+ />
106
+ <Tool
107
+ Name="VCCustomBuildTool"
108
+ />
109
+ <Tool
110
+ Name="VCXMLDataGeneratorTool"
111
+ />
112
+ <Tool
113
+ Name="VCWebServiceProxyGeneratorTool"
114
+ />
115
+ <Tool
116
+ Name="VCMIDLTool"
117
+ />
118
+ <Tool
119
+ Name="VCCLCompilerTool"
120
+ AdditionalIncludeDirectories="&quot;$(ProjectDir)../../lib&quot;;&quot;$(ProjectDir)../../lib/win32&quot;;&quot;$(ProjectDir)../../include&quot;"
121
+ PreprocessorDefinitions="GLFW_BUILD_DLL"
122
+ RuntimeLibrary="2"
123
+ UsePrecompiledHeader="0"
124
+ WarningLevel="3"
125
+ Detect64BitPortabilityProblems="true"
126
+ DebugInformationFormat="0"
127
+ />
128
+ <Tool
129
+ Name="VCManagedResourceCompilerTool"
130
+ />
131
+ <Tool
132
+ Name="VCResourceCompilerTool"
133
+ />
134
+ <Tool
135
+ Name="VCPreLinkEventTool"
136
+ />
137
+ <Tool
138
+ Name="VCLinkerTool"
139
+ AdditionalDependencies="opengl32.lib"
140
+ LinkIncremental="1"
141
+ GenerateDebugInformation="true"
142
+ SubSystem="2"
143
+ OptimizeReferences="2"
144
+ EnableCOMDATFolding="2"
145
+ TargetMachine="1"
146
+ />
147
+ <Tool
148
+ Name="VCALinkTool"
149
+ />
150
+ <Tool
151
+ Name="VCManifestTool"
152
+ />
153
+ <Tool
154
+ Name="VCXDCMakeTool"
155
+ />
156
+ <Tool
157
+ Name="VCBscMakeTool"
158
+ />
159
+ <Tool
160
+ Name="VCFxCopTool"
161
+ />
162
+ <Tool
163
+ Name="VCAppVerifierTool"
164
+ />
165
+ <Tool
166
+ Name="VCWebDeploymentTool"
167
+ />
168
+ <Tool
169
+ Name="VCPostBuildEventTool"
170
+ />
171
+ </Configuration>
172
+ </Configurations>
173
+ <References>
174
+ </References>
175
+ <Files>
176
+ <Filter
177
+ Name="Source Files"
178
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
179
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
180
+ >
181
+ <File
182
+ RelativePath="..\..\lib\enable.c"
183
+ >
184
+ </File>
185
+ <File
186
+ RelativePath="..\..\lib\fullscreen.c"
187
+ >
188
+ </File>
189
+ <File
190
+ RelativePath="..\..\lib\glext.c"
191
+ >
192
+ </File>
193
+ <File
194
+ RelativePath="..\..\lib\image.c"
195
+ >
196
+ </File>
197
+ <File
198
+ RelativePath="..\..\lib\init.c"
199
+ >
200
+ </File>
201
+ <File
202
+ RelativePath="..\..\lib\input.c"
203
+ >
204
+ </File>
205
+ <File
206
+ RelativePath="..\..\lib\joystick.c"
207
+ >
208
+ </File>
209
+ <File
210
+ RelativePath="..\..\lib\stream.c"
211
+ >
212
+ </File>
213
+ <File
214
+ RelativePath="..\..\lib\tga.c"
215
+ >
216
+ </File>
217
+ <File
218
+ RelativePath="..\..\lib\thread.c"
219
+ >
220
+ </File>
221
+ <File
222
+ RelativePath="..\..\lib\time.c"
223
+ >
224
+ </File>
225
+ <File
226
+ RelativePath="..\..\lib\win32\win32_dllmain.c"
227
+ >
228
+ </File>
229
+ <File
230
+ RelativePath="..\..\lib\win32\win32_enable.c"
231
+ >
232
+ </File>
233
+ <File
234
+ RelativePath="..\..\lib\win32\win32_fullscreen.c"
235
+ >
236
+ </File>
237
+ <File
238
+ RelativePath="..\..\lib\win32\win32_glext.c"
239
+ >
240
+ </File>
241
+ <File
242
+ RelativePath="..\..\lib\win32\win32_init.c"
243
+ >
244
+ </File>
245
+ <File
246
+ RelativePath="..\..\lib\win32\win32_joystick.c"
247
+ >
248
+ </File>
249
+ <File
250
+ RelativePath="..\..\lib\win32\win32_thread.c"
251
+ >
252
+ </File>
253
+ <File
254
+ RelativePath="..\..\lib\win32\win32_time.c"
255
+ >
256
+ </File>
257
+ <File
258
+ RelativePath="..\..\lib\win32\win32_window.c"
259
+ >
260
+ </File>
261
+ <File
262
+ RelativePath="..\..\lib\window.c"
263
+ >
264
+ </File>
265
+ </Filter>
266
+ <Filter
267
+ Name="Header Files"
268
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
269
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
270
+ >
271
+ <File
272
+ RelativePath="..\..\include\GL\glfw.h"
273
+ >
274
+ </File>
275
+ <File
276
+ RelativePath="..\..\lib\internal.h"
277
+ >
278
+ </File>
279
+ <File
280
+ RelativePath="..\..\lib\win32\platform.h"
281
+ >
282
+ </File>
283
+ </Filter>
284
+ </Files>
285
+ <Globals>
286
+ </Globals>
287
+ </VisualStudioProject>
@@ -0,0 +1,320 @@
1
+ Attribute VB_Name = "GLFW"
2
+ '========================================================================
3
+ ' GLFW - An OpenGL framework
4
+ ' File: glfw.bas
5
+ ' Platform: Visual Basic/Windows
6
+ ' API version: 2.5
7
+ ' WWW: http://glfw.sourceforge.net
8
+ '------------------------------------------------------------------------
9
+ ' Copyright (c) 2002-2005 Camilla Berglund
10
+ '
11
+ ' This software is provided 'as-is', without any express or implied
12
+ ' warranty. In no event will the authors be held liable for any damages
13
+ ' arising from the use of this software.
14
+ '
15
+ ' Permission is granted to anyone to use this software for any purpose,
16
+ ' including commercial applications, and to alter it and redistribute it
17
+ ' freely, subject to the following restrictions:
18
+ '
19
+ ' 1. The origin of this software must not be misrepresented; you must not
20
+ ' claim that you wrote the original software. If you use this software
21
+ ' in a product, an acknowledgment in the product documentation would
22
+ ' be appreciated but is not required.
23
+ '
24
+ ' 2. Altered source versions must be plainly marked as such, and must not
25
+ ' be misrepresented as being the original software.
26
+ '
27
+ ' 3. This notice may not be removed or altered from any source
28
+ ' distribution.
29
+ '
30
+ '========================================================================
31
+
32
+ '========================================================================
33
+ ' GLFW version
34
+ '========================================================================
35
+
36
+ Public Const GLFW_VERSION_MAJOR = 2
37
+ Public Const GLFW_VERSION_MINOR = 5
38
+ Public Const GLFW_VERSION_REVISION = 0
39
+
40
+
41
+ '========================================================================
42
+ ' Input handling definitions
43
+ '========================================================================
44
+
45
+ ' Key and button state/action definitions
46
+ Public Const GLFW_RELEASE = 0
47
+ Public Const GLFW_PRESS = 1
48
+
49
+ ' Keyboard key definitions: 8-bit ISO-8859-1 (Latin 1) encoding is used
50
+ ' for printable keys (such as A-Z, 0-9 etc), and values above 256
51
+ ' represent special (non-printable) keys (e.g. F1, Page Up etc).
52
+ Public Const GLFW_KEY_UNKNOWN = -1
53
+ Public Const GLFW_KEY_SPACE = 32
54
+ Public Const GLFW_KEY_SPECIAL = 256
55
+ Public Const GLFW_KEY_ESC = (GLFW_KEY_SPECIAL + 1)
56
+ Public Const GLFW_KEY_F1 = (GLFW_KEY_SPECIAL + 2)
57
+ Public Const GLFW_KEY_F2 = (GLFW_KEY_SPECIAL + 3)
58
+ Public Const GLFW_KEY_F3 = (GLFW_KEY_SPECIAL + 4)
59
+ Public Const GLFW_KEY_F4 = (GLFW_KEY_SPECIAL + 5)
60
+ Public Const GLFW_KEY_F5 = (GLFW_KEY_SPECIAL + 6)
61
+ Public Const GLFW_KEY_F6 = (GLFW_KEY_SPECIAL + 7)
62
+ Public Const GLFW_KEY_F7 = (GLFW_KEY_SPECIAL + 8)
63
+ Public Const GLFW_KEY_F8 = (GLFW_KEY_SPECIAL + 9)
64
+ Public Const GLFW_KEY_F9 = (GLFW_KEY_SPECIAL + 10)
65
+ Public Const GLFW_KEY_F10 = (GLFW_KEY_SPECIAL + 11)
66
+ Public Const GLFW_KEY_F11 = (GLFW_KEY_SPECIAL + 12)
67
+ Public Const GLFW_KEY_F12 = (GLFW_KEY_SPECIAL + 13)
68
+ Public Const GLFW_KEY_F13 = (GLFW_KEY_SPECIAL + 14)
69
+ Public Const GLFW_KEY_F14 = (GLFW_KEY_SPECIAL + 15)
70
+ Public Const GLFW_KEY_F15 = (GLFW_KEY_SPECIAL + 16)
71
+ Public Const GLFW_KEY_F16 = (GLFW_KEY_SPECIAL + 17)
72
+ Public Const GLFW_KEY_F17 = (GLFW_KEY_SPECIAL + 18)
73
+ Public Const GLFW_KEY_F18 = (GLFW_KEY_SPECIAL + 19)
74
+ Public Const GLFW_KEY_F19 = (GLFW_KEY_SPECIAL + 20)
75
+ Public Const GLFW_KEY_F20 = (GLFW_KEY_SPECIAL + 21)
76
+ Public Const GLFW_KEY_F21 = (GLFW_KEY_SPECIAL + 22)
77
+ Public Const GLFW_KEY_F22 = (GLFW_KEY_SPECIAL + 23)
78
+ Public Const GLFW_KEY_F23 = (GLFW_KEY_SPECIAL + 24)
79
+ Public Const GLFW_KEY_F24 = (GLFW_KEY_SPECIAL + 25)
80
+ Public Const GLFW_KEY_F25 = (GLFW_KEY_SPECIAL + 26)
81
+ Public Const GLFW_KEY_UP = (GLFW_KEY_SPECIAL + 27)
82
+ Public Const GLFW_KEY_DOWN = (GLFW_KEY_SPECIAL + 28)
83
+ Public Const GLFW_KEY_LEFT = (GLFW_KEY_SPECIAL + 29)
84
+ Public Const GLFW_KEY_RIGHT = (GLFW_KEY_SPECIAL + 30)
85
+ Public Const GLFW_KEY_LSHIFT = (GLFW_KEY_SPECIAL + 31)
86
+ Public Const GLFW_KEY_RSHIFT = (GLFW_KEY_SPECIAL + 32)
87
+ Public Const GLFW_KEY_LCTRL = (GLFW_KEY_SPECIAL + 33)
88
+ Public Const GLFW_KEY_RCTRL = (GLFW_KEY_SPECIAL + 34)
89
+ Public Const GLFW_KEY_LALT = (GLFW_KEY_SPECIAL + 35)
90
+ Public Const GLFW_KEY_RALT = (GLFW_KEY_SPECIAL + 36)
91
+ Public Const GLFW_KEY_TAB = (GLFW_KEY_SPECIAL + 37)
92
+ Public Const GLFW_KEY_ENTER = (GLFW_KEY_SPECIAL + 38)
93
+ Public Const GLFW_KEY_BACKSPACE = (GLFW_KEY_SPECIAL + 39)
94
+ Public Const GLFW_KEY_INSERT = (GLFW_KEY_SPECIAL + 40)
95
+ Public Const GLFW_KEY_DEL = (GLFW_KEY_SPECIAL + 41)
96
+ Public Const GLFW_KEY_PAGEUP = (GLFW_KEY_SPECIAL + 42)
97
+ Public Const GLFW_KEY_PAGEDOWN = (GLFW_KEY_SPECIAL + 43)
98
+ Public Const GLFW_KEY_HOME = (GLFW_KEY_SPECIAL + 44)
99
+ Public Const GLFW_KEY_END = (GLFW_KEY_SPECIAL + 45)
100
+ Public Const GLFW_KEY_KP_0 = (GLFW_KEY_SPECIAL + 46)
101
+ Public Const GLFW_KEY_KP_1 = (GLFW_KEY_SPECIAL + 47)
102
+ Public Const GLFW_KEY_KP_2 = (GLFW_KEY_SPECIAL + 48)
103
+ Public Const GLFW_KEY_KP_3 = (GLFW_KEY_SPECIAL + 49)
104
+ Public Const GLFW_KEY_KP_4 = (GLFW_KEY_SPECIAL + 50)
105
+ Public Const GLFW_KEY_KP_5 = (GLFW_KEY_SPECIAL + 51)
106
+ Public Const GLFW_KEY_KP_6 = (GLFW_KEY_SPECIAL + 52)
107
+ Public Const GLFW_KEY_KP_7 = (GLFW_KEY_SPECIAL + 53)
108
+ Public Const GLFW_KEY_KP_8 = (GLFW_KEY_SPECIAL + 54)
109
+ Public Const GLFW_KEY_KP_9 = (GLFW_KEY_SPECIAL + 55)
110
+ Public Const GLFW_KEY_KP_DIVIDE = (GLFW_KEY_SPECIAL + 56)
111
+ Public Const GLFW_KEY_KP_MULTIPLY = (GLFW_KEY_SPECIAL + 57)
112
+ Public Const GLFW_KEY_KP_SUBTRACT = (GLFW_KEY_SPECIAL + 58)
113
+ Public Const GLFW_KEY_KP_ADD = (GLFW_KEY_SPECIAL + 59)
114
+ Public Const GLFW_KEY_KP_DECIMAL = (GLFW_KEY_SPECIAL + 60)
115
+ Public Const GLFW_KEY_KP_EQUAL = (GLFW_KEY_SPECIAL + 61)
116
+ Public Const GLFW_KEY_KP_ENTER = (GLFW_KEY_SPECIAL + 62)
117
+ Public Const GLFW_KEY_LAST = GLFW_KEY_KP_ENTER
118
+
119
+ ' Mouse button definitions
120
+ Public Const GLFW_MOUSE_BUTTON_1 = 0
121
+ Public Const GLFW_MOUSE_BUTTON_2 = 1
122
+ Public Const GLFW_MOUSE_BUTTON_3 = 2
123
+ Public Const GLFW_MOUSE_BUTTON_4 = 3
124
+ Public Const GLFW_MOUSE_BUTTON_5 = 4
125
+ Public Const GLFW_MOUSE_BUTTON_6 = 5
126
+ Public Const GLFW_MOUSE_BUTTON_7 = 6
127
+ Public Const GLFW_MOUSE_BUTTON_8 = 7
128
+ Public Const GLFW_MOUSE_BUTTON_LAST = GLFW_MOUSE_BUTTON_8
129
+
130
+ ' Mouse button aliases
131
+ Public Const GLFW_MOUSE_BUTTON_LEFT = GLFW_MOUSE_BUTTON_1
132
+ Public Const GLFW_MOUSE_BUTTON_RIGHT = GLFW_MOUSE_BUTTON_2
133
+ Public Const GLFW_MOUSE_BUTTON_MIDDLE = GLFW_MOUSE_BUTTON_3
134
+
135
+ ' Joystick identifiers
136
+ Public Const GLFW_JOYSTICK_1 = 0
137
+ Public Const GLFW_JOYSTICK_2 = 1
138
+ Public Const GLFW_JOYSTICK_3 = 2
139
+ Public Const GLFW_JOYSTICK_4 = 3
140
+ Public Const GLFW_JOYSTICK_5 = 4
141
+ Public Const GLFW_JOYSTICK_6 = 5
142
+ Public Const GLFW_JOYSTICK_7 = 6
143
+ Public Const GLFW_JOYSTICK_8 = 7
144
+ Public Const GLFW_JOYSTICK_9 = 8
145
+ Public Const GLFW_JOYSTICK_10 = 9
146
+ Public Const GLFW_JOYSTICK_11 = 10
147
+ Public Const GLFW_JOYSTICK_12 = 11
148
+ Public Const GLFW_JOYSTICK_13 = 12
149
+ Public Const GLFW_JOYSTICK_14 = 13
150
+ Public Const GLFW_JOYSTICK_15 = 14
151
+ Public Const GLFW_JOYSTICK_16 = 15
152
+ Public Const GLFW_JOYSTICK_LAST = GLFW_JOYSTICK_16
153
+
154
+
155
+ '========================================================================
156
+ ' Other definitions
157
+ '========================================================================
158
+
159
+ ' glfwOpenWindow modes
160
+ Public Const GLFW_WINDOW = &H10001
161
+ Public Const GLFW_FULLSCREEN = &H10002
162
+
163
+ ' glfwGetWindowParam tokens
164
+ Public Const GLFW_OPENED = &H20001
165
+ Public Const GLFW_ACTIVE = &H20002
166
+ Public Const GLFW_ICONIFIED = &H20003
167
+ Public Const GLFW_ACCELERATED = &H20004
168
+ Public Const GLFW_RED_BITS = &H20005
169
+ Public Const GLFW_GREEN_BITS = &H20006
170
+ Public Const GLFW_BLUE_BITS = &H20007
171
+ Public Const GLFW_ALPHA_BITS = &H20008
172
+ Public Const GLFW_DEPTH_BITS = &H20009
173
+ Public Const GLFW_STENCIL_BITS = &H2000A
174
+
175
+ ' The following constants are used for both glfwGetWindowParam
176
+ ' and glfwOpenWindowHint
177
+ Public Const GLFW_REFRESH_RATE = &H2000B
178
+ Public Const GLFW_ACCUM_RED_BITS = &H2000C
179
+ Public Const GLFW_ACCUM_GREEN_BITS = &H2000D
180
+ Public Const GLFW_ACCUM_BLUE_BITS = &H2000E
181
+ Public Const GLFW_ACCUM_ALPHA_BITS = &H2000F
182
+ Public Const GLFW_AUX_BUFFERS = &H20010
183
+ Public Const GLFW_STEREO = &H20011
184
+
185
+ ' glfwEnable/glfwDisable tokens
186
+ Public Const GLFW_MOUSE_CURSOR = &H30001
187
+ Public Const GLFW_STICKY_KEYS = &H30002
188
+ Public Const GLFW_STICKY_MOUSE_BUTTONS = &H30003
189
+ Public Const GLFW_SYSTEM_KEYS = &H30004
190
+ Public Const GLFW_KEY_REPEAT = &H30005
191
+ Public Const GLFW_AUTO_POLL_EVENTS = &H30006
192
+
193
+ ' glfwWaitThread wait modes
194
+ Public Const GLFW_WAIT = &H40001
195
+ Public Const GLFW_NOWAIT = &H40002
196
+
197
+ ' glfwGetJoystickParam tokens
198
+ Public Const GLFW_PRESENT = &H50001
199
+ Public Const GLFW_AXES = &H50002
200
+ Public Const GLFW_BUTTONS = &H50003
201
+
202
+ ' glfwReadImage/glfwLoadTexture2D flags
203
+ Public Const GLFW_NO_RESCALE_BIT = &H1
204
+ Public Const GLFW_ORIGIN_UL_BIT = &H2
205
+ Public Const GLFW_BUILD_MIPMAPS_BIT = &H4
206
+ Public Const GLFW_ALPHA_MAP_BIT = &H8
207
+
208
+ ' Time spans longer than this (seconds) are considered to be infinity
209
+ Public Const GLFW_INFINITY = 100000#
210
+
211
+
212
+ '========================================================================
213
+ ' Typedefs
214
+ '========================================================================
215
+
216
+ ' The video mode structure used by glfwGetVideoModes()
217
+ Public Type GLFWvidmode
218
+ width As Long
219
+ height As Long
220
+ redbits As Long
221
+ greenbits As Long
222
+ bluebits As Long
223
+ End Type
224
+
225
+
226
+ ' Image/texture information
227
+ Public Type GLFWimage
228
+ width As Long
229
+ height As Long
230
+ format As Long
231
+ BytesPerPixel As Long
232
+ data() As Byte
233
+ End Type
234
+
235
+
236
+
237
+ '========================================================================
238
+ ' Prototypes
239
+ '========================================================================
240
+
241
+ ' GLFW initialization, termination and version querying
242
+ Public Declare Function glfwInit Lib "glfw.dll" () As Long
243
+ Public Declare Sub glfwTerminate Lib "glfw.dll" ()
244
+ Public Declare Sub glfwGetVersion Lib "glfw.dll" (major As Long, minor As Long, rev As Long)
245
+
246
+ ' Window handling
247
+ Public Declare Function glfwOpenWindow Lib "glfw.dll" (ByVal width As Long, ByVal height As Long, ByVal redbits As Long, ByVal greenbits As Long, ByVal bluebits As Long, ByVal alphabits As Long, ByVal depthbits As Long, ByVal stencilbits As Long, ByVal mode As Long) As Long
248
+ Public Declare Sub glfwOpenWindowHint Lib "glfw.dll" (ByVal target As Long, ByVal hint As Long)
249
+ Public Declare Sub glfwCloseWindow Lib "glfw.dll" ()
250
+ Public Declare Sub glfwSetWindowTitle Lib "glfw.dll" (ByVal title As String)
251
+ Public Declare Sub glfwGetWindowSize Lib "glfw.dll" (width As Long, height As Long)
252
+ Public Declare Sub glfwSetWindowSize Lib "glfw.dll" (ByVal width As Long, ByVal height As Long)
253
+ Public Declare Sub glfwSetWindowPos Lib "glfw.dll" (ByVal x As Long, ByVal y As Long)
254
+ Public Declare Sub glfwIconifyWindow Lib "glfw.dll" ()
255
+ Public Declare Sub glfwUnIconifyWindow Lib "glfw.dll" ()
256
+ Public Declare Sub glfwSwapBuffers Lib "glfw.dll" ()
257
+ Public Declare Sub glfwSwapInterval Lib "glfw.dll" (ByVal interval As Long)
258
+ Public Declare Function glfwGetWindowParam Lib "glfw.dll" (ByVal param As Long) As Long
259
+ Public Declare Sub glfwSetWindowSizeCallback Lib "glfw.dll" (ByVal cbfun As Long)
260
+ Public Declare Sub glfwSetWindowCloseCallback Lib "glfw.dll" (ByVal cbfun As Long)
261
+ Public Declare Sub glfwSetWindowRefreshCallback Lib "glfw.dll" (ByVal cbfun As Long)
262
+
263
+ ' Video mode functions
264
+ Public Declare Function glfwGetVideoModes Lib "glfw.dll" (list() As GLFWvidmode, ByVal maxcount As Long) As Long
265
+ Public Declare Sub glfwGetDesktopMode Lib "glfw.dll" (mode As GLFWvidmode)
266
+
267
+ ' Input handling
268
+ Public Declare Sub glfwPollEvents Lib "glfw.dll" ()
269
+ Public Declare Sub glfwWaitEvents Lib "glfw.dll" ()
270
+ Public Declare Function glfwGetKey Lib "glfw.dll" (ByVal key As Long) As Long
271
+ Public Declare Function glfwGetMouseButton Lib "glfw.dll" (ByVal button As Long) As Long
272
+ Public Declare Sub glfwGetMousePos Lib "glfw.dll" (xpos As Long, ypos As Long)
273
+ Public Declare Sub glfwSetMousePos Lib "glfw.dll" (ByVal xpos As Long, ByVal ypos As Long)
274
+ Public Declare Function glfwGetMouseWheel Lib "glfw.dll" () As Long
275
+ Public Declare Sub glfwSetMouseWheel Lib "glfw.dll" (ByVal pos As Long)
276
+ Public Declare Sub glfwSetKeyCallback Lib "glfw.dll" (ByVal cbfun As Long)
277
+ Public Declare Sub glfwSetCharCallback Lib "glfw.dll" (ByVal cbfun As Long)
278
+ Public Declare Sub glfwSetMouseButtonCallback Lib "glfw.dll" (ByVal cbfun As Long)
279
+ Public Declare Sub glfwSetMousePosCallback Lib "glfw.dll" (ByVal cbfun As Long)
280
+ Public Declare Sub glfwSetMouseWheelCallback Lib "glfw.dll" (ByVal cbfun As Long)
281
+
282
+ ' Joystick input
283
+ Public Declare Function glfwGetJoystickParam Lib "glfw.dll" (ByVal joy As Long, ByVal param As Long) As Long
284
+ Public Declare Function glfwGetJoystickPos Lib "glfw.dll" (ByVal joy As Long, pos As Single, ByVal numaxes As Long) As Long
285
+ Public Declare Function glfwGetJoystickButtons Lib "glfw.dll" (ByVal joy As Long, buttons As Byte, ByVal numbuttons As Long) As Long
286
+
287
+ ' Time
288
+ Public Declare Function glfwGetTime Lib "glfw.dll" () As Double
289
+ Public Declare Sub glfwSetTime Lib "glfw.dll" (ByVal time As Double)
290
+ Public Declare Sub glfwSleep Lib "glfw.dll" (ByVal time As Double)
291
+
292
+ ' Extension support
293
+ Public Declare Function glfwExtensionSupported Lib "glfw.dll" (ByVal extension As String) As Long
294
+ Public Declare Function glfwGetProcAddress Lib "glfw.dll" (ByVal procname As String) As Long
295
+ Public Declare Sub glfwGetGLVersion Lib "glfw.dll" (major As Long, minor As Long, rev As Long)
296
+
297
+ ' Threading support
298
+ Public Declare Function glfwCreateThread Lib "glfw.dll" (ByVal cbfun As Long, ByVal arg As Long) As Long
299
+ Public Declare Sub glfwDestroyThread Lib "glfw.dll" (ByVal id As Long)
300
+ Public Declare Function glfwWaitThread Lib "glfw.dll" (ByVal id As Long, ByVal waitmode As Long) As Long
301
+ Public Declare Function glfwGetThreadID Lib "glfw.dll" () As Long
302
+ Public Declare Function glfwCreateMutex Lib "glfw.dll" () As Long
303
+ Public Declare Sub glfwDestroyMutex Lib "glfw.dll" (ByVal mutex As Long)
304
+ Public Declare Sub glfwLockMutex Lib "glfw.dll" (ByVal mutex As Long)
305
+ Public Declare Sub glfwUnlockMutex Lib "glfw.dll" (ByVal mutex As Long)
306
+ Public Declare Function glfwCreateCond Lib "glfw.dll" () As Long
307
+ Public Declare Sub glfwDestroyCond Lib "glfw.dll" (ByVal cond As Long)
308
+ Public Declare Sub glfwWaitCond Lib "glfw.dll" (ByVal cond As Long, ByVal mutex As Long, ByVal timeout As Double)
309
+ Public Declare Sub glfwSignalCond Lib "glfw.dll" (ByVal cond As Long)
310
+ Public Declare Sub glfwBroadcastCond Lib "glfw.dll" (ByVal cond As Long)
311
+ Public Declare Function glfwGetNumberOfProcessors Lib "glfw.dll" () As Long
312
+
313
+ ' Enable/disable functions
314
+ Public Declare Sub glfwEnable Lib "glfw.dll" (ByVal token As Long)
315
+ Public Declare Sub glfwDisable Lib "glfw.dll" (ByVal token As Long)
316
+
317
+ ' Image/texture I/O support
318
+ Public Declare Function glfwReadImage Lib "glfw.dll" (ByVal name As String, img As GLFWimage, ByVal flags As Long) As Long
319
+ Public Declare Sub glfwFreeImage Lib "glfw.dll" (img As GLFWimage)
320
+ Public Declare Function glfwLoadTexture2D Lib "glfw.dll" (ByVal name As String, ByVal flags As Long) As Long