├── .gitignore ├── LICENSE.txt ├── README.markdown ├── deps └── glfw │ ├── .svn │ ├── all-wcprops │ ├── entries │ ├── prop-base │ │ └── COPYING.txt.svn-base │ └── text-base │ │ ├── COPYING.txt.svn-base │ │ ├── Makefile.svn-base │ │ ├── compile.bat.svn-base │ │ ├── compile.sh.svn-base │ │ └── readme.html.svn-base │ ├── COPYING.txt │ ├── Makefile │ ├── compile.bat │ ├── compile.sh │ ├── docs │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── prop-base │ │ │ └── cleanup.bat.svn-base │ │ └── text-base │ │ │ ├── Makefile.svn-base │ │ │ ├── cleanup.bat.svn-base │ │ │ ├── glfwdoc.sty.svn-base │ │ │ ├── glfwrm.tex.svn-base │ │ │ ├── glfwug.tex.svn-base │ │ │ └── readme.txt.svn-base │ ├── Makefile │ ├── cleanup.bat │ ├── glfwdoc.sty │ ├── glfwrm.tex │ ├── glfwug.tex │ └── readme.txt │ ├── examples │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── prop-base │ │ │ ├── mipmaps.tga.svn-base │ │ │ ├── pong3d_field.tga.svn-base │ │ │ ├── pong3d_instr.tga.svn-base │ │ │ ├── pong3d_menu.tga.svn-base │ │ │ ├── pong3d_title.tga.svn-base │ │ │ ├── pong3d_winner1.tga.svn-base │ │ │ └── pong3d_winner2.tga.svn-base │ │ └── text-base │ │ │ ├── Makefile.carbon.svn-base │ │ │ ├── Makefile.carbon.universal.svn-base │ │ │ ├── Makefile.cocoa.svn-base │ │ │ ├── Makefile.win32.cross-mgw.svn-base │ │ │ ├── Makefile.win32.cygwin.svn-base │ │ │ ├── Makefile.win32.lcc.svn-base │ │ │ ├── Makefile.win32.mingw.svn-base │ │ │ ├── Makefile.win32.ow.svn-base │ │ │ ├── Makefile.x11.in.svn-base │ │ │ ├── boing.c.svn-base │ │ │ ├── bundle.sh.svn-base │ │ │ ├── gears.c.svn-base │ │ │ ├── listmodes.c.svn-base │ │ │ ├── mipmaps.c.svn-base │ │ │ ├── mipmaps.tga.svn-base │ │ │ ├── mtbench.c.svn-base │ │ │ ├── mthello.c.svn-base │ │ │ ├── particles.c.svn-base │ │ │ ├── pong3d.c.svn-base │ │ │ ├── pong3d_field.tga.svn-base │ │ │ ├── pong3d_instr.tga.svn-base │ │ │ ├── pong3d_menu.tga.svn-base │ │ │ ├── pong3d_title.tga.svn-base │ │ │ ├── pong3d_winner1.tga.svn-base │ │ │ ├── pong3d_winner2.tga.svn-base │ │ │ ├── splitview.c.svn-base │ │ │ ├── triangle.c.svn-base │ │ │ └── wave.c.svn-base │ ├── Makefile.carbon │ ├── Makefile.carbon.universal │ ├── Makefile.cocoa │ ├── Makefile.win32.cross-mgw │ ├── Makefile.win32.cygwin │ ├── Makefile.win32.lcc │ ├── Makefile.win32.mingw │ ├── Makefile.win32.ow │ ├── Makefile.x11.in │ ├── boing.c │ ├── bundle.sh │ ├── gears.c │ ├── listmodes.c │ ├── mipmaps.c │ ├── mipmaps.tga │ ├── mtbench.c │ ├── mthello.c │ ├── particles.c │ ├── pong3d.c │ ├── pong3d_field.tga │ ├── pong3d_instr.tga │ ├── pong3d_menu.tga │ ├── pong3d_title.tga │ ├── pong3d_winner1.tga │ ├── pong3d_winner2.tga │ ├── splitview.c │ ├── triangle.c │ └── wave.c │ ├── include │ ├── .svn │ │ ├── all-wcprops │ │ └── entries │ └── GL │ │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ └── text-base │ │ │ └── glfw.h.svn-base │ │ └── glfw.h │ ├── lib │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ └── text-base │ │ │ ├── enable.c.svn-base │ │ │ ├── fullscreen.c.svn-base │ │ │ ├── glext.c.svn-base │ │ │ ├── image.c.svn-base │ │ │ ├── init.c.svn-base │ │ │ ├── input.c.svn-base │ │ │ ├── internal.h.svn-base │ │ │ ├── joystick.c.svn-base │ │ │ ├── stream.c.svn-base │ │ │ ├── tga.c.svn-base │ │ │ ├── thread.c.svn-base │ │ │ ├── time.c.svn-base │ │ │ └── window.c.svn-base │ ├── carbon │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── text-base │ │ │ │ ├── Makefile.carbon.svn-base │ │ │ │ ├── Makefile.carbon.universal.svn-base │ │ │ │ ├── carbon_enable.c.svn-base │ │ │ │ ├── carbon_fullscreen.c.svn-base │ │ │ │ ├── carbon_glext.c.svn-base │ │ │ │ ├── carbon_init.c.svn-base │ │ │ │ ├── carbon_joystick.c.svn-base │ │ │ │ ├── carbon_thread.c.svn-base │ │ │ │ ├── carbon_time.c.svn-base │ │ │ │ ├── carbon_window.c.svn-base │ │ │ │ ├── libglfw.pc.in.svn-base │ │ │ │ └── platform.h.svn-base │ │ ├── Makefile.carbon │ │ ├── Makefile.carbon.universal │ │ ├── carbon_enable.c │ │ ├── carbon_fullscreen.c │ │ ├── carbon_glext.c │ │ ├── carbon_init.c │ │ ├── carbon_joystick.c │ │ ├── carbon_thread.c │ │ ├── carbon_time.c │ │ ├── carbon_window.c │ │ ├── libglfw.pc.in │ │ └── platform.h │ ├── cocoa │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── dir-prop-base │ │ │ ├── entries │ │ │ ├── prop-base │ │ │ │ ├── Makefile.cocoa.svn-base │ │ │ │ ├── cocoa_thread.c.svn-base │ │ │ │ └── libglfw.pc.in.svn-base │ │ │ └── text-base │ │ │ │ ├── Makefile.cocoa.svn-base │ │ │ │ ├── cocoa_enable.m.svn-base │ │ │ │ ├── cocoa_fullscreen.m.svn-base │ │ │ │ ├── cocoa_glext.m.svn-base │ │ │ │ ├── cocoa_init.m.svn-base │ │ │ │ ├── cocoa_joystick.m.svn-base │ │ │ │ ├── cocoa_thread.c.svn-base │ │ │ │ ├── cocoa_time.m.svn-base │ │ │ │ ├── cocoa_window.m.svn-base │ │ │ │ ├── libglfw.pc.in.svn-base │ │ │ │ └── platform.h.svn-base │ │ ├── Makefile.cocoa │ │ ├── cocoa_enable.m │ │ ├── cocoa_fullscreen.m │ │ ├── cocoa_glext.m │ │ ├── cocoa_init.m │ │ ├── cocoa_joystick.m │ │ ├── cocoa_thread.c │ │ ├── cocoa_time.m │ │ ├── cocoa_window.m │ │ ├── libglfw.pc.in │ │ └── platform.h │ ├── enable.c │ ├── fullscreen.c │ ├── glext.c │ ├── image.c │ ├── init.c │ ├── input.c │ ├── internal.h │ ├── joystick.c │ ├── stream.c │ ├── tga.c │ ├── thread.c │ ├── time.c │ ├── win32 │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── text-base │ │ │ │ ├── Makefile.win32.cross-mgw.svn-base │ │ │ │ ├── Makefile.win32.cygwin.svn-base │ │ │ │ ├── Makefile.win32.lcc.svn-base │ │ │ │ ├── Makefile.win32.mingw.svn-base │ │ │ │ ├── Makefile.win32.ow.svn-base │ │ │ │ ├── glfwdll.def.svn-base │ │ │ │ ├── glfwdll_mgw1.def.svn-base │ │ │ │ ├── glfwdll_mgw2.def.svn-base │ │ │ │ ├── libglfw.pc.in.svn-base │ │ │ │ ├── platform.h.svn-base │ │ │ │ ├── win32_dllmain.c.svn-base │ │ │ │ ├── win32_enable.c.svn-base │ │ │ │ ├── win32_fullscreen.c.svn-base │ │ │ │ ├── win32_glext.c.svn-base │ │ │ │ ├── win32_init.c.svn-base │ │ │ │ ├── win32_joystick.c.svn-base │ │ │ │ ├── win32_thread.c.svn-base │ │ │ │ ├── win32_time.c.svn-base │ │ │ │ └── win32_window.c.svn-base │ │ ├── Makefile.win32.cross-mgw │ │ ├── Makefile.win32.cygwin │ │ ├── Makefile.win32.lcc │ │ ├── Makefile.win32.mingw │ │ ├── Makefile.win32.ow │ │ ├── glfwdll.def │ │ ├── glfwdll_mgw1.def │ │ ├── glfwdll_mgw2.def │ │ ├── libglfw.pc.in │ │ ├── platform.h │ │ ├── win32_dllmain.c │ │ ├── win32_enable.c │ │ ├── win32_fullscreen.c │ │ ├── win32_glext.c │ │ ├── win32_init.c │ │ ├── win32_joystick.c │ │ ├── win32_thread.c │ │ ├── win32_time.c │ │ └── win32_window.c │ ├── window.c │ └── x11 │ │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ └── text-base │ │ │ ├── Makefile.x11.in.svn-base │ │ │ ├── platform.h.svn-base │ │ │ ├── x11_enable.c.svn-base │ │ │ ├── x11_fullscreen.c.svn-base │ │ │ ├── x11_glext.c.svn-base │ │ │ ├── x11_init.c.svn-base │ │ │ ├── x11_joystick.c.svn-base │ │ │ ├── x11_keysym2unicode.c.svn-base │ │ │ ├── x11_thread.c.svn-base │ │ │ ├── x11_time.c.svn-base │ │ │ └── x11_window.c.svn-base │ │ ├── Makefile.x11.in │ │ ├── platform.h │ │ ├── x11_enable.c │ │ ├── x11_fullscreen.c │ │ ├── x11_glext.c │ │ ├── x11_init.c │ │ ├── x11_joystick.c │ │ ├── x11_keysym2unicode.c │ │ ├── x11_thread.c │ │ ├── x11_time.c │ │ └── x11_window.c │ ├── readme.html │ ├── support │ ├── .svn │ │ ├── all-wcprops │ │ └── entries │ ├── d │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ └── entries │ │ ├── examples │ │ │ ├── .svn │ │ │ │ ├── all-wcprops │ │ │ │ ├── entries │ │ │ │ └── text-base │ │ │ │ │ ├── Makefile.svn-base │ │ │ │ │ ├── boing.d.svn-base │ │ │ │ │ ├── gears.d.svn-base │ │ │ │ │ ├── keytest.d.svn-base │ │ │ │ │ ├── listmodes.d.svn-base │ │ │ │ │ ├── mipmaps.d.svn-base │ │ │ │ │ ├── mtbench.d.svn-base │ │ │ │ │ ├── mthello.d.svn-base │ │ │ │ │ ├── particles.d.svn-base │ │ │ │ │ ├── pong3d.d.svn-base │ │ │ │ │ ├── splitview.d.svn-base │ │ │ │ │ ├── triangle.d.svn-base │ │ │ │ │ └── wave.d.svn-base │ │ │ ├── Makefile │ │ │ ├── boing.d │ │ │ ├── gears.d │ │ │ ├── keytest.d │ │ │ ├── listmodes.d │ │ │ ├── mipmaps.d │ │ │ ├── mtbench.d │ │ │ ├── mthello.d │ │ │ ├── particles.d │ │ │ ├── pong3d.d │ │ │ ├── splitview.d │ │ │ ├── triangle.d │ │ │ └── wave.d │ │ ├── imports │ │ │ ├── .svn │ │ │ │ ├── all-wcprops │ │ │ │ ├── entries │ │ │ │ └── text-base │ │ │ │ │ ├── gl.d.svn-base │ │ │ │ │ ├── glfw.d.svn-base │ │ │ │ │ └── glu.d.svn-base │ │ │ ├── gl.d │ │ │ ├── glfw.d │ │ │ └── glu.d │ │ └── lib │ │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── text-base │ │ │ │ ├── glfwdll.def.svn-base │ │ │ │ ├── glu32.def.svn-base │ │ │ │ ├── makefile.svn-base │ │ │ │ └── opengl32.def.svn-base │ │ │ ├── glfwdll.def │ │ │ ├── glu32.def │ │ │ ├── makefile │ │ │ └── opengl32.def │ ├── msvc90 │ │ ├── .svn │ │ │ ├── all-wcprops │ │ │ ├── dir-prop-base │ │ │ ├── entries │ │ │ ├── prop-base │ │ │ │ └── boing.vcproj.svn-base │ │ │ └── text-base │ │ │ │ ├── GLFW.sln.svn-base │ │ │ │ ├── GLFW.vcproj.svn-base │ │ │ │ ├── GLFWDLL.vcproj.svn-base │ │ │ │ ├── accuracy.vcproj.svn-base │ │ │ │ ├── boing.vcproj.svn-base │ │ │ │ ├── defaults.vcproj.svn-base │ │ │ │ ├── events.vcproj.svn-base │ │ │ │ ├── fsaa.vcproj.svn-base │ │ │ │ ├── fsinput.vcproj.svn-base │ │ │ │ ├── gears.vcproj.svn-base │ │ │ │ ├── joysticks.vcproj.svn-base │ │ │ │ ├── listmodes.vcproj.svn-base │ │ │ │ ├── mipmaps.vcproj.svn-base │ │ │ │ ├── mtbench.vcproj.svn-base │ │ │ │ ├── mthello.vcproj.svn-base │ │ │ │ ├── particles.vcproj.svn-base │ │ │ │ ├── peter.vcproj.svn-base │ │ │ │ ├── pong3d.vcproj.svn-base │ │ │ │ ├── reopen.vcproj.svn-base │ │ │ │ ├── splitview.vcproj.svn-base │ │ │ │ ├── tearing.vcproj.svn-base │ │ │ │ ├── triangle.vcproj.svn-base │ │ │ │ ├── version.vcproj.svn-base │ │ │ │ └── wave.vcproj.svn-base │ │ ├── GLFW.sln │ │ ├── GLFW.vcproj │ │ ├── GLFWDLL.vcproj │ │ ├── accuracy.vcproj │ │ ├── boing.vcproj │ │ ├── defaults.vcproj │ │ ├── events.vcproj │ │ ├── fsaa.vcproj │ │ ├── fsinput.vcproj │ │ ├── gears.vcproj │ │ ├── joysticks.vcproj │ │ ├── listmodes.vcproj │ │ ├── mipmaps.vcproj │ │ ├── mtbench.vcproj │ │ ├── mthello.vcproj │ │ ├── particles.vcproj │ │ ├── peter.vcproj │ │ ├── pong3d.vcproj │ │ ├── reopen.vcproj │ │ ├── splitview.vcproj │ │ ├── tearing.vcproj │ │ ├── triangle.vcproj │ │ ├── version.vcproj │ │ └── wave.vcproj │ └── pascal │ │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ └── text-base │ │ │ ├── Triangle.dpr.svn-base │ │ │ ├── glfw.pas.svn-base │ │ │ └── mipmaps.dpr.svn-base │ │ ├── Triangle.dpr │ │ ├── glfw.pas │ │ └── mipmaps.dpr │ └── tests │ ├── .svn │ ├── all-wcprops │ ├── entries │ ├── prop-base │ │ ├── Makefile.win32.cross-mgw.svn-base │ │ ├── Makefile.win32.cygwin.svn-base │ │ ├── Makefile.x11.in.svn-base │ │ ├── accuracy.c.svn-base │ │ ├── bundle.sh.svn-base │ │ ├── defaults.c.svn-base │ │ ├── events.c.svn-base │ │ ├── fsaa.c.svn-base │ │ ├── joysticks.c.svn-base │ │ ├── peter.c.svn-base │ │ ├── reopen.c.svn-base │ │ ├── tearing.c.svn-base │ │ └── version.c.svn-base │ └── text-base │ │ ├── Makefile.carbon.svn-base │ │ ├── Makefile.carbon.universal.svn-base │ │ ├── Makefile.cocoa.svn-base │ │ ├── Makefile.win32.cross-mgw.svn-base │ │ ├── Makefile.win32.cygwin.svn-base │ │ ├── Makefile.win32.mingw.svn-base │ │ ├── Makefile.x11.in.svn-base │ │ ├── accuracy.c.svn-base │ │ ├── bundle.sh.svn-base │ │ ├── defaults.c.svn-base │ │ ├── events.c.svn-base │ │ ├── fsaa.c.svn-base │ │ ├── fsinput.c.svn-base │ │ ├── getopt.c.svn-base │ │ ├── getopt.h.svn-base │ │ ├── joysticks.c.svn-base │ │ ├── peter.c.svn-base │ │ ├── reopen.c.svn-base │ │ ├── tearing.c.svn-base │ │ └── version.c.svn-base │ ├── Makefile.carbon │ ├── Makefile.carbon.universal │ ├── Makefile.cocoa │ ├── Makefile.win32.cross-mgw │ ├── Makefile.win32.cygwin │ ├── Makefile.win32.mingw │ ├── Makefile.x11.in │ ├── accuracy.c │ ├── bundle.sh │ ├── defaults.c │ ├── events.c │ ├── fsaa.c │ ├── fsinput.c │ ├── getopt.c │ ├── getopt.h │ ├── joysticks.c │ ├── peter.c │ ├── reopen.c │ ├── tearing.c │ └── version.c ├── example └── nehe │ ├── data │ ├── Crate.bmp │ └── NeHe.bmp │ ├── lesson3.js │ ├── lesson4.js │ ├── lesson4.png │ ├── lesson5.js │ ├── lesson5.png │ ├── lesson6.js │ └── lesson6.png ├── lib ├── .gitignore └── OpenGL.js ├── src ├── binding.cc ├── common.h ├── gl.cc ├── gl.h ├── glfw.cc ├── glfw.h ├── glu.cc └── glu.h ├── test └── sanity.js ├── util ├── gen.php ├── in │ ├── EGL │ │ ├── egl.h │ │ ├── eglext.h │ │ └── eglplatform.h │ ├── GL │ │ ├── gl.h │ │ ├── gl_mangle.h │ │ ├── glew.h │ │ ├── glext.h │ │ ├── glfbdev.h │ │ ├── glu.h │ │ ├── glu_mangle.h │ │ ├── glut.h │ │ ├── glut_h.dja │ │ ├── glutf90.h │ │ ├── glx.h │ │ ├── glx_mangle.h │ │ ├── glxew.h │ │ ├── glxext.h │ │ ├── internal │ │ │ ├── dri_interface.h │ │ │ ├── glcore.h │ │ │ └── sarea.h │ │ ├── mesa_wgl.h │ │ ├── mglmesa.h │ │ ├── osmesa.h │ │ ├── vms_x_fix.h │ │ ├── wglew.h │ │ ├── wglext.h │ │ └── wmesa.h │ ├── GLES │ │ ├── egl.h │ │ ├── egltypes.h │ │ ├── gl.h │ │ ├── glext.h │ │ └── glplatform.h │ ├── GLES2 │ │ ├── gl2.h │ │ ├── gl2ext.h │ │ └── gl2platform.h │ ├── KHR │ │ └── khrplatform.h │ └── VG │ │ ├── openvg.h │ │ ├── vgext.h │ │ ├── vgplatform.h │ │ └── vgu.h ├── template │ ├── header.h │ └── source.cc └── tmp │ └── gen.work └── wscript /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | deps 3 | *.o 4 | .lock-wscript 5 | lib -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Elijah Insua 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | ## Building 4 | ### Ubuntu 5 | 6 | sudo aptitude install libgl1-mesa-dev 7 | 8 | node-waf configure build test 9 | 10 | # Status 11 | 12 | * works on linux 13 | * nehe tutorials 3-5 have been ported 14 | * osx port on its way (works, but segfaults randomly) 15 | 16 | Somewhat working! 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/glfw/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 33 4 | /svnroot/glfw/!svn/ver/1183/trunk 5 | END 6 | readme.html 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 45 10 | /svnroot/glfw/!svn/ver/1181/trunk/readme.html 11 | END 12 | compile.sh 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 44 16 | /svnroot/glfw/!svn/ver/1122/trunk/compile.sh 17 | END 18 | COPYING.txt 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 44 22 | /svnroot/glfw/!svn/ver/939/trunk/COPYING.txt 23 | END 24 | Makefile 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 42 28 | /svnroot/glfw/!svn/ver/1150/trunk/Makefile 29 | END 30 | compile.bat 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 45 34 | /svnroot/glfw/!svn/ver/1128/trunk/compile.bat 35 | END 36 | -------------------------------------------------------------------------------- /deps/glfw/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2010-05-16T11:25:33.640232Z 11 | 1183 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | readme.html 30 | file 31 | 32 | 33 | 34 | 35 | 2010-05-23T05:06:07.994511Z 36 | 99199049b5008b032ed5cd56341cf494 37 | 2010-05-14T11:12:02.811398Z 38 | 1181 39 | elmindreda 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 46123 62 | 63 | compile.sh 64 | file 65 | 66 | 67 | 68 | 69 | 2010-05-23T05:06:07.994511Z 70 | 7faba2745f50c6ae79ecc1edf60d851c 71 | 2009-11-08T17:59:14.483275Z 72 | 1122 73 | elmindreda 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 18112 96 | 97 | tests 98 | dir 99 | 100 | include 101 | dir 102 | 103 | lib 104 | dir 105 | 106 | COPYING.txt 107 | file 108 | 109 | 110 | 111 | 112 | 2010-05-23T05:06:07.994511Z 113 | de7c97405cba465ccd9743541d056b49 114 | 2009-10-15T02:19:17.807497Z 115 | 939 116 | elmindreda 117 | has-props 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 901 139 | 140 | docs 141 | dir 142 | 143 | support 144 | dir 145 | 146 | Makefile 147 | file 148 | 149 | 150 | 151 | 152 | 2010-05-23T05:06:07.994511Z 153 | 6b1ad426a6faa7a63b611c314838f4c4 154 | 2009-11-30T18:21:44.930634Z 155 | 1150 156 | elmindreda 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 6660 179 | 180 | compile.bat 181 | file 182 | 183 | 184 | 185 | 186 | 2010-05-23T05:06:07.994511Z 187 | 2effdd150e00cbf65bfba460bb7be8ec 188 | 2009-11-08T19:12:39.720867Z 189 | 1128 190 | elmindreda 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 12497 213 | 214 | examples 215 | dir 216 | 217 | -------------------------------------------------------------------------------- /deps/glfw/.svn/prop-base/COPYING.txt.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mergeinfo 3 | V 0 4 | 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/.svn/text-base/COPYING.txt.svn-base: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002-2007 Camilla Berglund 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would 14 | be appreciated but is not required. 15 | 16 | 2. Altered source versions must be plainly marked as such, and must not 17 | be misrepresented as being the original software. 18 | 19 | 3. This notice may not be removed or altered from any source 20 | distribution. 21 | 22 | -------------------------------------------------------------------------------- /deps/glfw/COPYING.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002-2007 Camilla Berglund 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would 14 | be appreciated but is not required. 15 | 16 | 2. Altered source versions must be plainly marked as such, and must not 17 | be misrepresented as being the original software. 18 | 19 | 3. This notice may not be removed or altered from any source 20 | distribution. 21 | 22 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 38 4 | /svnroot/glfw/!svn/ver/1182/trunk/docs 5 | END 6 | glfwdoc.sty 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 49 10 | /svnroot/glfw/!svn/ver/431/trunk/docs/glfwdoc.sty 11 | END 12 | glfwug.tex 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 48 16 | /svnroot/glfw/!svn/ver/723/trunk/docs/glfwug.tex 17 | END 18 | readme.txt 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 48 22 | /svnroot/glfw/!svn/ver/431/trunk/docs/readme.txt 23 | END 24 | cleanup.bat 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 49 28 | /svnroot/glfw/!svn/ver/431/trunk/docs/cleanup.bat 29 | END 30 | Makefile 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 46 34 | /svnroot/glfw/!svn/ver/431/trunk/docs/Makefile 35 | END 36 | glfwrm.tex 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 49 40 | /svnroot/glfw/!svn/ver/1182/trunk/docs/glfwrm.tex 41 | END 42 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk/docs 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2010-05-14T11:12:36.269713Z 11 | 1182 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | glfwdoc.sty 30 | file 31 | 32 | 33 | 34 | 35 | 2010-05-23T05:06:07.504511Z 36 | 8546c0a8610821ef143e3f1de4141176 37 | 2007-05-25T09:56:38.000000Z 38 | 431 39 | elmindreda 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 2835 62 | 63 | glfwug.tex 64 | file 65 | 66 | 67 | 68 | 69 | 2010-05-23T05:06:07.504511Z 70 | f1b2c502ced207aa32995aed2f92a6ee 71 | 2009-03-08T15:30:25.611647Z 72 | 723 73 | elmindreda 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 81971 96 | 97 | readme.txt 98 | file 99 | 100 | 101 | 102 | 103 | 2010-05-23T05:06:07.504511Z 104 | 7802f9d3c48d66920cbe0da7c9f1973c 105 | 2007-05-25T09:56:38.000000Z 106 | 431 107 | elmindreda 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 2380 130 | 131 | cleanup.bat 132 | file 133 | 134 | 135 | 136 | 137 | 2010-05-23T05:06:07.504511Z 138 | 32c86b31eef7a5c047cdf8cca9583f16 139 | 2007-05-25T09:56:38.000000Z 140 | 431 141 | elmindreda 142 | has-props 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 724 164 | 165 | Makefile 166 | file 167 | 168 | 169 | 170 | 171 | 2010-05-23T05:06:07.504511Z 172 | dd5e762341b7ce3e65837832b7822ffb 173 | 2007-05-25T09:56:38.000000Z 174 | 431 175 | elmindreda 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 1678 198 | 199 | glfwrm.tex 200 | file 201 | 202 | 203 | 204 | 205 | 2010-05-23T05:06:07.504511Z 206 | 377320bf7a76c4e1a7d7ab3368669b17 207 | 2010-05-14T11:12:36.269713Z 208 | 1182 209 | elmindreda 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 104712 232 | 233 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/prop-base/cleanup.bat.svn-base: -------------------------------------------------------------------------------- 1 | K 14 2 | svn:executable 3 | V 1 4 | * 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/text-base/Makefile.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for the GLFW documentation. 3 | ########################################################################## 4 | 5 | PDFDOCS = glfwrm.pdf glfwug.pdf 6 | DVIDOCS = glfwrm.dvi glfwug.dvi 7 | 8 | 9 | ########################################################################## 10 | # Build macros 11 | ########################################################################## 12 | default: pdf 13 | pdf: $(PDFDOCS) 14 | dvi: $(DVIDOCS) 15 | 16 | 17 | ########################################################################## 18 | # Clean macros 19 | ########################################################################## 20 | clean: 21 | rm -f glfwrm.dvi glfwrm.aux glfwrm.log glfwrm.out glfwrm.pdf glfwrm.toc glfwrm.lot 22 | rm -f glfwug.dvi glfwug.aux glfwug.log glfwug.out glfwug.pdf glfwug.toc 23 | 24 | clean-win: 25 | @.\\cleanup.bat 26 | 27 | 28 | ########################################################################## 29 | # Rules for building the GLFW Reference Manual 30 | ########################################################################## 31 | 32 | glfwrm.pdf: glfwrm.tex glfwrm.toc glfwrm.lot glfwdoc.sty 33 | pdflatex glfwrm.tex 34 | 35 | glfwrm.dvi: glfwrm.tex glfwrm.toc glfwrm.lot glfwdoc.sty 36 | latex glfwrm.tex 37 | 38 | glfwrm.toc: glfwrm.tex glfwdoc.sty 39 | latex glfwrm.tex 40 | 41 | glfwrm.lot: glfwrm.tex glfwdoc.sty 42 | latex glfwrm.tex 43 | 44 | 45 | ########################################################################## 46 | # Rules for building the GLFW Users Guide 47 | ########################################################################## 48 | 49 | glfwug.pdf: glfwug.tex glfwug.toc glfwdoc.sty 50 | pdflatex glfwug.tex 51 | 52 | glfwug.dvi: glfwug.tex glfwug.toc glfwdoc.sty 53 | latex glfwug.tex 54 | 55 | glfwug.toc: glfwug.tex glfwdoc.sty 56 | latex glfwug.tex 57 | 58 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/text-base/cleanup.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM ---------------------------------------------------------------------- 4 | REM Windows cleanup batch file for the GLFW documentation. 5 | REM ---------------------------------------------------------------------- 6 | 7 | REM GLFW Reference Manual 8 | if exist glfwrm.dvi del glfwrm.dvi 9 | if exist glfwrm.aux del glfwrm.aux 10 | if exist glfwrm.log del glfwrm.log 11 | if exist glfwrm.out del glfwrm.out 12 | if exist glfwrm.pdf del glfwrm.pdf 13 | if exist glfwrm.toc del glfwrm.toc 14 | if exist glfwrm.lot del glfwrm.lot 15 | 16 | REM GLFW Users Guide 17 | if exist glfwug.dvi del glfwug.dvi 18 | if exist glfwug.aux del glfwug.aux 19 | if exist glfwug.log del glfwug.log 20 | if exist glfwug.out del glfwug.out 21 | if exist glfwug.pdf del glfwug.pdf 22 | if exist glfwug.toc del glfwug.toc 23 | -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/text-base/glfwrm.tex.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/docs/.svn/text-base/glfwrm.tex.svn-base -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/text-base/glfwug.tex.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/docs/.svn/text-base/glfwug.tex.svn-base -------------------------------------------------------------------------------- /deps/glfw/docs/.svn/text-base/readme.txt.svn-base: -------------------------------------------------------------------------------- 1 | Introduction 2 | ------------ 3 | 4 | The GLFW documentation is written in LaTeX, which I have found is a great 5 | tool for handling large and long-lived documents, where clumbsy s.c. 6 | WYSIWYG word processors (especially one from a major moneymaking company) 7 | fails in several aspects (document integrity being a serious Achilles 8 | heel). 9 | 10 | Besides being powerful, LaTeX is also very attractive since all the 11 | necessary tools for dealing with LaTeX documentation are both free and 12 | ported to a wide variety of platforms. Another advantage is that the LaTeX 13 | files are written in plain text, which means that version handling systems 14 | such as CVS handle them perfectly, without having to treat the documents 15 | as binary files. 16 | 17 | Ok, so much for the LaTeX glory. Now to the GLFW documentation... 18 | 19 | 20 | The Documents 21 | ------------- 22 | 23 | There are two main documents: 24 | 25 | glfwrm.tex - The GLFW Reference Manual 26 | glfwug.tex - The GLFW Users Guide 27 | 28 | In addition, there is a common LaTeX style file, which sets up things 29 | such as page formatting and useful macros: 30 | 31 | glfwdoc.sty - Common GLFW document styles and macros 32 | 33 | 34 | Requirements 35 | ------------ 36 | 37 | Of course you need LaTeX installed on your system in order to compile 38 | the GLFW documentation. The easiest way to get a full LaTeX system is to 39 | download/get the TeXLive CD from http://www.tug.org/texlive/. It has all 40 | the necessary software for Windows, Mac OS X and most popular Unix 41 | flavours (including Linux, FreeBSD, Solaris, IRIX etc). 42 | 43 | A number of LaTeX packages have to be installed in order to compile the 44 | GLFW documentation successfully: 45 | 46 | color 47 | fancyhdr 48 | hyperref 49 | lastpage 50 | listings 51 | needspace 52 | textcase 53 | times 54 | titling 55 | 56 | These packages are all available on the TeXLive CD. Just make sure that 57 | you have checked all these packages when installing TeXLive, or get them 58 | in some other way if you do not have the TeXLive CD. 59 | 60 | 61 | Build Files 62 | ----------- 63 | 64 | For convenience, I have created a Makefile that will build PDF documents 65 | from the LaTeX files. It is nothing fancy, but handles things like 66 | up-to-date TOC generation. It can also be used for cleaning up most (all?) 67 | of the files generated by the Makefile, by calling 'make clean' (Unix) or 68 | 'make clean-win' (Windows). 69 | 70 | Since Windows does not have a portable 'rm -f' counterpart, a special 71 | cleanup batch file was created, which is called 'cleanup.bat' (it is 72 | called when 'make clean-win' is run). 73 | 74 | 75 | 76 | Good luck! 77 | 78 | Marcus 79 | 80 | 81 | -------------------------------------------------------------------------------- /deps/glfw/docs/Makefile: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for the GLFW documentation. 3 | ########################################################################## 4 | 5 | PDFDOCS = glfwrm.pdf glfwug.pdf 6 | DVIDOCS = glfwrm.dvi glfwug.dvi 7 | 8 | 9 | ########################################################################## 10 | # Build macros 11 | ########################################################################## 12 | default: pdf 13 | pdf: $(PDFDOCS) 14 | dvi: $(DVIDOCS) 15 | 16 | 17 | ########################################################################## 18 | # Clean macros 19 | ########################################################################## 20 | clean: 21 | rm -f glfwrm.dvi glfwrm.aux glfwrm.log glfwrm.out glfwrm.pdf glfwrm.toc glfwrm.lot 22 | rm -f glfwug.dvi glfwug.aux glfwug.log glfwug.out glfwug.pdf glfwug.toc 23 | 24 | clean-win: 25 | @.\\cleanup.bat 26 | 27 | 28 | ########################################################################## 29 | # Rules for building the GLFW Reference Manual 30 | ########################################################################## 31 | 32 | glfwrm.pdf: glfwrm.tex glfwrm.toc glfwrm.lot glfwdoc.sty 33 | pdflatex glfwrm.tex 34 | 35 | glfwrm.dvi: glfwrm.tex glfwrm.toc glfwrm.lot glfwdoc.sty 36 | latex glfwrm.tex 37 | 38 | glfwrm.toc: glfwrm.tex glfwdoc.sty 39 | latex glfwrm.tex 40 | 41 | glfwrm.lot: glfwrm.tex glfwdoc.sty 42 | latex glfwrm.tex 43 | 44 | 45 | ########################################################################## 46 | # Rules for building the GLFW Users Guide 47 | ########################################################################## 48 | 49 | glfwug.pdf: glfwug.tex glfwug.toc glfwdoc.sty 50 | pdflatex glfwug.tex 51 | 52 | glfwug.dvi: glfwug.tex glfwug.toc glfwdoc.sty 53 | latex glfwug.tex 54 | 55 | glfwug.toc: glfwug.tex glfwdoc.sty 56 | latex glfwug.tex 57 | 58 | -------------------------------------------------------------------------------- /deps/glfw/docs/cleanup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM ---------------------------------------------------------------------- 4 | REM Windows cleanup batch file for the GLFW documentation. 5 | REM ---------------------------------------------------------------------- 6 | 7 | REM GLFW Reference Manual 8 | if exist glfwrm.dvi del glfwrm.dvi 9 | if exist glfwrm.aux del glfwrm.aux 10 | if exist glfwrm.log del glfwrm.log 11 | if exist glfwrm.out del glfwrm.out 12 | if exist glfwrm.pdf del glfwrm.pdf 13 | if exist glfwrm.toc del glfwrm.toc 14 | if exist glfwrm.lot del glfwrm.lot 15 | 16 | REM GLFW Users Guide 17 | if exist glfwug.dvi del glfwug.dvi 18 | if exist glfwug.aux del glfwug.aux 19 | if exist glfwug.log del glfwug.log 20 | if exist glfwug.out del glfwug.out 21 | if exist glfwug.pdf del glfwug.pdf 22 | if exist glfwug.toc del glfwug.toc 23 | -------------------------------------------------------------------------------- /deps/glfw/docs/glfwrm.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/docs/glfwrm.tex -------------------------------------------------------------------------------- /deps/glfw/docs/glfwug.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/docs/glfwug.tex -------------------------------------------------------------------------------- /deps/glfw/docs/readme.txt: -------------------------------------------------------------------------------- 1 | Introduction 2 | ------------ 3 | 4 | The GLFW documentation is written in LaTeX, which I have found is a great 5 | tool for handling large and long-lived documents, where clumbsy s.c. 6 | WYSIWYG word processors (especially one from a major moneymaking company) 7 | fails in several aspects (document integrity being a serious Achilles 8 | heel). 9 | 10 | Besides being powerful, LaTeX is also very attractive since all the 11 | necessary tools for dealing with LaTeX documentation are both free and 12 | ported to a wide variety of platforms. Another advantage is that the LaTeX 13 | files are written in plain text, which means that version handling systems 14 | such as CVS handle them perfectly, without having to treat the documents 15 | as binary files. 16 | 17 | Ok, so much for the LaTeX glory. Now to the GLFW documentation... 18 | 19 | 20 | The Documents 21 | ------------- 22 | 23 | There are two main documents: 24 | 25 | glfwrm.tex - The GLFW Reference Manual 26 | glfwug.tex - The GLFW Users Guide 27 | 28 | In addition, there is a common LaTeX style file, which sets up things 29 | such as page formatting and useful macros: 30 | 31 | glfwdoc.sty - Common GLFW document styles and macros 32 | 33 | 34 | Requirements 35 | ------------ 36 | 37 | Of course you need LaTeX installed on your system in order to compile 38 | the GLFW documentation. The easiest way to get a full LaTeX system is to 39 | download/get the TeXLive CD from http://www.tug.org/texlive/. It has all 40 | the necessary software for Windows, Mac OS X and most popular Unix 41 | flavours (including Linux, FreeBSD, Solaris, IRIX etc). 42 | 43 | A number of LaTeX packages have to be installed in order to compile the 44 | GLFW documentation successfully: 45 | 46 | color 47 | fancyhdr 48 | hyperref 49 | lastpage 50 | listings 51 | needspace 52 | textcase 53 | times 54 | titling 55 | 56 | These packages are all available on the TeXLive CD. Just make sure that 57 | you have checked all these packages when installing TeXLive, or get them 58 | in some other way if you do not have the TeXLive CD. 59 | 60 | 61 | Build Files 62 | ----------- 63 | 64 | For convenience, I have created a Makefile that will build PDF documents 65 | from the LaTeX files. It is nothing fancy, but handles things like 66 | up-to-date TOC generation. It can also be used for cleaning up most (all?) 67 | of the files generated by the Makefile, by calling 'make clean' (Unix) or 68 | 'make clean-win' (Windows). 69 | 70 | Since Windows does not have a portable 'rm -f' counterpart, a special 71 | cleanup batch file was created, which is called 'cleanup.bat' (it is 72 | called when 'make clean-win' is run). 73 | 74 | 75 | 76 | Good luck! 77 | 78 | Marcus 79 | 80 | 81 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/mipmaps.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_field.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_instr.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_menu.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_title.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_winner1.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/prop-base/pong3d_winner2.tga.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.win32.cross-mgw.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs for Windows on Unix using MinGW32 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cross-mgw 6 | ########################################################################## 7 | 8 | TARGET ?= i586-mingw32msvc- 9 | 10 | CC = gcc 11 | CFLAGS = -I../include -Wall -O2 12 | 13 | LIB = ../lib/win32/libglfw.a 14 | LFLAGS = $(LIB) -lglu32 -lopengl32 15 | 16 | WINDOWS = -mwindows -e _mainCRTStartup 17 | CONSOLE = -mconsole 18 | 19 | BINARIES = triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 20 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 21 | 22 | all: $(BINARIES) 23 | 24 | triangle.exe: triangle.c $(LIB) 25 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 26 | 27 | listmodes.exe: listmodes.c $(LIB) 28 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 29 | 30 | mthello.exe: mthello.c $(LIB) 31 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 32 | 33 | pong3d.exe: pong3d.c $(LIB) 34 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@ 35 | 36 | mtbench.exe: mtbench.c $(LIB) 37 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 38 | 39 | particles.exe: particles.c $(LIB) 40 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@ 41 | 42 | splitview.exe: splitview.c $(LIB) 43 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@ 44 | 45 | mipmaps.exe: mipmaps.c $(LIB) 46 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@ 47 | 48 | gears.exe: gears.c $(LIB) 49 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -lm -o $@ 50 | 51 | boing.exe: boing.c $(LIB) 52 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@ 53 | 54 | wave.exe: wave.c $(LIB) 55 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@ 56 | 57 | clean: 58 | rm -f $(BINARIES) 59 | 60 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.win32.cygwin.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Cygwin 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cygwin 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 -mwin32 -mno-cygwin 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = -mno-cygwin $(LIB) -lglu32 -lopengl32 13 | 14 | WINDOWS = -mwindows -e _mainCRTStartup 15 | CONSOLE = -mconsole 16 | 17 | BINARIES = triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 18 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 19 | 20 | all: $(BINARIES) 21 | 22 | triangle.exe: triangle.c $(LIB) 23 | $(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 24 | 25 | listmodes.exe: listmodes.c $(LIB) 26 | $(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 27 | 28 | mthello.exe: mthello.c $(LIB) 29 | $(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 30 | 31 | pong3d.exe: pong3d.c $(LIB) 32 | $(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -o $@ 33 | 34 | mtbench.exe: mtbench.c $(LIB) 35 | $(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 36 | 37 | particles.exe: particles.c $(LIB) 38 | $(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -o $@ 39 | 40 | splitview.exe: splitview.c $(LIB) 41 | $(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -o $@ 42 | 43 | mipmaps.exe: mipmaps.c $(LIB) 44 | $(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -o $@ 45 | 46 | gears.exe: gears.c $(LIB) 47 | $(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -o $@ 48 | 49 | boing.exe: boing.c $(LIB) 50 | $(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -o $@ 51 | 52 | wave.exe: wave.c $(LIB) 53 | $(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -o $@ 54 | 55 | clean: 56 | rm -f $(BINARIES) 57 | 58 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.win32.lcc.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using LCC-Win32. 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.lcc 6 | ########################################################################## 7 | 8 | # Compiler settings 9 | CC = lc 10 | CFLAGS = -I..\\include -O -A 11 | #CFLAGS = -I..\\include -O -A -DGLFW_DLL 12 | 13 | # Linker settings 14 | LFLAGS = ..\\lib\\win32\\glfw.lib glu32.lib opengl32.lib 15 | #LFLAGS = ..\\lib\\win32\\glfwdll.lib glu32.lib opengl32.lib 16 | 17 | # Subsystem settings 18 | WINDOWS = -subsystem windows 19 | CONSOLE = -subsystem console 20 | 21 | 22 | # Default: Build all tests 23 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 24 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 25 | 26 | 27 | # Rule for triangle 28 | triangle.exe: triangle.c 29 | $(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ -s $(WINDOWS) 30 | 31 | # Rule for listmodes 32 | listmodes.exe: listmodes.c 33 | $(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ -s $(CONSOLE) 34 | 35 | # Rule for mthello 36 | mthello.exe: mthello.c 37 | $(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ -s $(CONSOLE) 38 | 39 | # Rule for pong3d 40 | pong3d.exe: pong3d.c 41 | $(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ -s $(WINDOWS) 42 | 43 | # Rule for mtbench 44 | mtbench.exe: mtbench.c 45 | $(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ -s $(CONSOLE) 46 | 47 | # Rule for particles 48 | particles.exe: particles.c 49 | $(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ -s $(CONSOLE) 50 | 51 | # Rule for splitview 52 | splitview.exe: splitview.c 53 | $(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ -s $(WINDOWS) 54 | 55 | # Rule for mipmaps 56 | mipmaps.exe: mipmaps.c 57 | $(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ -s $(WINDOWS) 58 | 59 | # Rule for gears 60 | gears.exe: gears.c 61 | $(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ -s $(WINDOWS) 62 | 63 | # Rule for boing 64 | boing.exe: boing.c 65 | $(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ -s $(WINDOWS) 66 | 67 | # Rule for wave 68 | wave.exe: wave.c 69 | $(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ -s $(WINDOWS) 70 | 71 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.win32.mingw.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using bare MinGW 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.mingw 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = $(LIB) -lglu32 -lopengl32 -s 13 | 14 | WINDOWS = -mwindows 15 | CONSOLE = -mconsole 16 | 17 | HEADER = ../include/GL/glfw.h 18 | 19 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 20 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 21 | 22 | triangle.exe: triangle.c $(LIB) $(HEADER) 23 | $(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 24 | 25 | listmodes.exe: listmodes.c $(LIB) $(HEADER) 26 | $(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 27 | 28 | mthello.exe: mthello.c $(LIB) $(HEADER) 29 | $(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 30 | 31 | pong3d.exe: pong3d.c $(LIB) $(HEADER) 32 | $(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@ 33 | 34 | mtbench.exe: mtbench.c $(LIB) $(HEADER) 35 | $(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 36 | 37 | particles.exe: particles.c $(LIB) $(HEADER) 38 | $(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@ 39 | 40 | splitview.exe: splitview.c $(LIB) $(HEADER) 41 | $(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@ 42 | 43 | mipmaps.exe: mipmaps.c $(LIB) $(HEADER) 44 | $(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@ 45 | 46 | gears.exe: gears.c $(LIB) $(HEADER) 47 | $(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -lm -o $@ 48 | 49 | boing.exe: boing.c $(LIB) $(HEADER) 50 | $(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@ 51 | 52 | wave.exe: wave.c $(LIB) $(HEADER) 53 | $(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@ 54 | 55 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.win32.ow.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Open Watcom 1.0. 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # "wmake -ms -f Makefile.win32.ow" or "nmake -f Makefile.win32.ow" 6 | ########################################################################## 7 | 8 | # Compiler settings 9 | CC = wcl386 10 | CFLAGS = /Ox /I..\\include 11 | #CFLAGS = /Ox /I..\\include /DGLFW_DLL 12 | 13 | # Linker settings 14 | LFLAGS = ..\\lib\\win32\\glfw.lib opengl32.lib glu32.lib user32.lib 15 | #LFLAGS = ..\\lib\\win32\\glfwdll.lib opengl32.lib glu32.lib 16 | 17 | # Subsystem settings 18 | WINDOWS = -"RUNTIME windows=4.0 REFERENCE 'mainCRTStartup' OPTION { start='mainCRTStartup' quiet stack=1M }" 19 | CONSOLE = -"RUNTIME console REFERENCE _cstart_ OPTION { START=_cstart_ quiet stack=1M }" 20 | 21 | 22 | # Default: Build all tests 23 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 24 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 25 | 26 | 27 | # Rule for triangle 28 | triangle.exe: triangle.c 29 | $(CC) $(CFLAGS) /Fe$@ triangle.c $(LFLAGS) $(WINDOWS) 30 | 31 | # Rule for listmodes 32 | listmodes.exe: listmodes.c 33 | $(CC) $(CFLAGS) /Fe$@ listmodes.c $(LFLAGS) $(CONSOLE) 34 | 35 | # Rule for mthello 36 | mthello.exe: mthello.c 37 | $(CC) $(CFLAGS) /Fe$@ mthello.c $(LFLAGS) $(CONSOLE) 38 | 39 | # Rule for pong3d 40 | pong3d.exe: pong3d.c 41 | $(CC) $(CFLAGS) /Fe$@ pong3d.c $(LFLAGS) $(WINDOWS) 42 | 43 | # Rule for mtbench 44 | mtbench.exe: mtbench.c 45 | $(CC) $(CFLAGS) /Fe$@ mtbench.c $(LFLAGS) $(CONSOLE) 46 | 47 | # Rule for particles 48 | particles.exe: particles.c 49 | $(CC) $(CFLAGS) /Fe$@ particles.c $(LFLAGS) $(CONSOLE) 50 | 51 | # Rule for splitview 52 | splitview.exe: splitview.c 53 | $(CC) $(CFLAGS) /Fe$@ splitview.c $(LFLAGS) $(WINDOWS) 54 | 55 | # Rule for mipmaps 56 | mipmaps.exe: mipmaps.c 57 | $(CC) $(CFLAGS) /Fe$@ mipmaps.c $(LFLAGS) $(WINDOWS) 58 | 59 | # Rule for gears 60 | gears.exe: gears.c 61 | $(CC) $(CFLAGS) /Fe$@ gears.c $(LFLAGS) $(WINDOWS) 62 | 63 | # Rule for boing 64 | boing.exe: boing.c 65 | $(CC) $(CFLAGS) /Fe$@ boing.c $(LFLAGS) $(WINDOWS) 66 | 67 | # Rule for wave 68 | wave.exe: wave.c 69 | $(CC) $(CFLAGS) /Fe$@ wave.c $(LFLAGS) $(WINDOWS) 70 | 71 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/Makefile.x11.in.svn-base: -------------------------------------------------------------------------------- 1 | BINARIES = triangle listmodes mthello pong3d mtbench particles splitview \ 2 | mipmaps gears boing wave 3 | 4 | all: $(BINARIES) 5 | 6 | triangle: triangle.c ../lib/x11/libglfw.a 7 | $(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ 8 | 9 | listmodes: listmodes.c ../lib/x11/libglfw.a 10 | $(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ 11 | 12 | mthello: mthello.c ../lib/x11/libglfw.a 13 | $(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ 14 | 15 | pong3d: pong3d.c ../lib/x11/libglfw.a 16 | $(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ 17 | 18 | mtbench: mtbench.c ../lib/x11/libglfw.a 19 | $(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ 20 | 21 | particles: particles.c ../lib/x11/libglfw.a 22 | $(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ 23 | 24 | splitview: splitview.c ../lib/x11/libglfw.a 25 | $(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ 26 | 27 | mipmaps: mipmaps.c ../lib/x11/libglfw.a 28 | $(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ 29 | 30 | gears: gears.c ../lib/x11/libglfw.a 31 | $(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ 32 | 33 | boing: boing.c ../lib/x11/libglfw.a 34 | $(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ 35 | 36 | wave: wave.c ../lib/x11/libglfw.a 37 | $(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ 38 | 39 | clean: 40 | rm -f $(BINARIES) 41 | 42 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/bundle.sh.svn-base: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Creates application bundles for use on Mac OS X. 4 | 5 | if [ -z "$1" ]; then 6 | echo "usage: `basename $0` BUNDLE-NAME" 7 | exit 1 8 | fi 9 | 10 | bundle_name="$1" 11 | 12 | if [ ! -d "${bundle_name}.app/Contents/MacOS" ]; then 13 | mkdir -p "${bundle_name}.app/Contents/MacOS" 14 | fi 15 | 16 | if [ ! -d "${bundle_name}.app/Contents/Resources" ]; then 17 | mkdir -p "${bundle_name}.app/Contents/Resources" 18 | fi 19 | 20 | if [ ! -f "${bundle_name}.app/Contents/PkgInfo" ]; then 21 | echo -n "APPL????" > "${bundle_name}.app/Contents/PkgInfo" 22 | fi 23 | 24 | if [ ! -f "${bundle_name}.app/Contents/Info.plist" ]; then 25 | cat > "${bundle_name}.app/Contents/Info.plist" < 27 | 28 | 29 | 30 | CFBundleDevelopmentRegion 31 | English 32 | CFBundleExecutable 33 | ${bundle_name} 34 | CFBundleInfoDictionaryVersion 35 | 6.0 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 0.1 42 | 43 | 44 | EOF 45 | fi 46 | 47 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/listmodes.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // This is a small test application for GLFW. 3 | // The program lists all available fullscreen video modes. 4 | //======================================================================== 5 | 6 | #include 7 | #include 8 | 9 | // Maximum number of modes that we want to list 10 | #define MAX_NUM_MODES 400 11 | 12 | 13 | //======================================================================== 14 | // main() 15 | //======================================================================== 16 | 17 | int main( void ) 18 | { 19 | GLFWvidmode dtmode, modes[ MAX_NUM_MODES ]; 20 | int modecount, i; 21 | 22 | // Initialize GLFW 23 | if( !glfwInit() ) 24 | { 25 | return 0; 26 | } 27 | 28 | // Show desktop video mode 29 | glfwGetDesktopMode( &dtmode ); 30 | printf( "Desktop mode: %d x %d x %d\n\n", 31 | dtmode.Width, dtmode.Height, dtmode.RedBits + 32 | dtmode.GreenBits + dtmode.BlueBits ); 33 | 34 | // List available video modes 35 | modecount = glfwGetVideoModes( modes, MAX_NUM_MODES ); 36 | printf( "Available modes:\n" ); 37 | for( i = 0; i < modecount; i ++ ) 38 | { 39 | printf( "%3d: %d x %d x %d\n", i, 40 | modes[i].Width, modes[i].Height, modes[i].RedBits + 41 | modes[i].GreenBits + modes[i].BlueBits ); 42 | } 43 | 44 | // Terminate GLFW 45 | glfwTerminate(); 46 | 47 | return 0; 48 | } 49 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/mipmaps.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/mipmaps.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/mthello.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // This is a small test application for GLFW. 3 | // The program prints "Hello world!", using two threads. 4 | //======================================================================== 5 | 6 | #include 7 | #include 8 | 9 | 10 | //======================================================================== 11 | // HelloFun() - Thread function 12 | //======================================================================== 13 | 14 | void GLFWCALL HelloFun( void *arg ) 15 | { 16 | // Print the first part of the message 17 | printf( "Hello " ); 18 | } 19 | 20 | 21 | //======================================================================== 22 | // main() - Main function (main thread) 23 | //======================================================================== 24 | 25 | int main( void ) 26 | { 27 | GLFWthread thread; 28 | 29 | // Initialise GLFW 30 | if( !glfwInit() ) 31 | { 32 | return 0; 33 | } 34 | 35 | // Create thread 36 | thread = glfwCreateThread( HelloFun, NULL ); 37 | 38 | // Wait for thread to die 39 | glfwWaitThread( thread, GLFW_WAIT ); 40 | 41 | // Print the rest of the message 42 | printf( "world!\n" ); 43 | 44 | // Terminate GLFW 45 | glfwTerminate(); 46 | 47 | return 0; 48 | } 49 | -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_field.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_field.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_instr.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_instr.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_menu.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_menu.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_title.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_title.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_winner1.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_winner1.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/.svn/text-base/pong3d_winner2.tga.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/.svn/text-base/pong3d_winner2.tga.svn-base -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.win32.cross-mgw: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs for Windows on Unix using MinGW32 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cross-mgw 6 | ########################################################################## 7 | 8 | TARGET ?= i586-mingw32msvc- 9 | 10 | CC = gcc 11 | CFLAGS = -I../include -Wall -O2 12 | 13 | LIB = ../lib/win32/libglfw.a 14 | LFLAGS = $(LIB) -lglu32 -lopengl32 15 | 16 | WINDOWS = -mwindows -e _mainCRTStartup 17 | CONSOLE = -mconsole 18 | 19 | BINARIES = triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 20 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 21 | 22 | all: $(BINARIES) 23 | 24 | triangle.exe: triangle.c $(LIB) 25 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 26 | 27 | listmodes.exe: listmodes.c $(LIB) 28 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 29 | 30 | mthello.exe: mthello.c $(LIB) 31 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 32 | 33 | pong3d.exe: pong3d.c $(LIB) 34 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@ 35 | 36 | mtbench.exe: mtbench.c $(LIB) 37 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 38 | 39 | particles.exe: particles.c $(LIB) 40 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@ 41 | 42 | splitview.exe: splitview.c $(LIB) 43 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@ 44 | 45 | mipmaps.exe: mipmaps.c $(LIB) 46 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@ 47 | 48 | gears.exe: gears.c $(LIB) 49 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -lm -o $@ 50 | 51 | boing.exe: boing.c $(LIB) 52 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@ 53 | 54 | wave.exe: wave.c $(LIB) 55 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@ 56 | 57 | clean: 58 | rm -f $(BINARIES) 59 | 60 | -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.win32.cygwin: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Cygwin 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cygwin 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 -mwin32 -mno-cygwin 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = -mno-cygwin $(LIB) -lglu32 -lopengl32 13 | 14 | WINDOWS = -mwindows -e _mainCRTStartup 15 | CONSOLE = -mconsole 16 | 17 | BINARIES = triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 18 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 19 | 20 | all: $(BINARIES) 21 | 22 | triangle.exe: triangle.c $(LIB) 23 | $(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 24 | 25 | listmodes.exe: listmodes.c $(LIB) 26 | $(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 27 | 28 | mthello.exe: mthello.c $(LIB) 29 | $(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 30 | 31 | pong3d.exe: pong3d.c $(LIB) 32 | $(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -o $@ 33 | 34 | mtbench.exe: mtbench.c $(LIB) 35 | $(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 36 | 37 | particles.exe: particles.c $(LIB) 38 | $(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -o $@ 39 | 40 | splitview.exe: splitview.c $(LIB) 41 | $(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -o $@ 42 | 43 | mipmaps.exe: mipmaps.c $(LIB) 44 | $(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -o $@ 45 | 46 | gears.exe: gears.c $(LIB) 47 | $(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -o $@ 48 | 49 | boing.exe: boing.c $(LIB) 50 | $(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -o $@ 51 | 52 | wave.exe: wave.c $(LIB) 53 | $(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -o $@ 54 | 55 | clean: 56 | rm -f $(BINARIES) 57 | 58 | -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.win32.lcc: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using LCC-Win32. 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.lcc 6 | ########################################################################## 7 | 8 | # Compiler settings 9 | CC = lc 10 | CFLAGS = -I..\\include -O -A 11 | #CFLAGS = -I..\\include -O -A -DGLFW_DLL 12 | 13 | # Linker settings 14 | LFLAGS = ..\\lib\\win32\\glfw.lib glu32.lib opengl32.lib 15 | #LFLAGS = ..\\lib\\win32\\glfwdll.lib glu32.lib opengl32.lib 16 | 17 | # Subsystem settings 18 | WINDOWS = -subsystem windows 19 | CONSOLE = -subsystem console 20 | 21 | 22 | # Default: Build all tests 23 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 24 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 25 | 26 | 27 | # Rule for triangle 28 | triangle.exe: triangle.c 29 | $(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ -s $(WINDOWS) 30 | 31 | # Rule for listmodes 32 | listmodes.exe: listmodes.c 33 | $(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ -s $(CONSOLE) 34 | 35 | # Rule for mthello 36 | mthello.exe: mthello.c 37 | $(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ -s $(CONSOLE) 38 | 39 | # Rule for pong3d 40 | pong3d.exe: pong3d.c 41 | $(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ -s $(WINDOWS) 42 | 43 | # Rule for mtbench 44 | mtbench.exe: mtbench.c 45 | $(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ -s $(CONSOLE) 46 | 47 | # Rule for particles 48 | particles.exe: particles.c 49 | $(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ -s $(CONSOLE) 50 | 51 | # Rule for splitview 52 | splitview.exe: splitview.c 53 | $(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ -s $(WINDOWS) 54 | 55 | # Rule for mipmaps 56 | mipmaps.exe: mipmaps.c 57 | $(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ -s $(WINDOWS) 58 | 59 | # Rule for gears 60 | gears.exe: gears.c 61 | $(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ -s $(WINDOWS) 62 | 63 | # Rule for boing 64 | boing.exe: boing.c 65 | $(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ -s $(WINDOWS) 66 | 67 | # Rule for wave 68 | wave.exe: wave.c 69 | $(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ -s $(WINDOWS) 70 | 71 | -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.win32.mingw: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using bare MinGW 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.mingw 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = $(LIB) -lglu32 -lopengl32 -s 13 | 14 | WINDOWS = -mwindows 15 | CONSOLE = -mconsole 16 | 17 | HEADER = ../include/GL/glfw.h 18 | 19 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 20 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 21 | 22 | triangle.exe: triangle.c $(LIB) $(HEADER) 23 | $(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@ 24 | 25 | listmodes.exe: listmodes.c $(LIB) $(HEADER) 26 | $(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@ 27 | 28 | mthello.exe: mthello.c $(LIB) $(HEADER) 29 | $(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@ 30 | 31 | pong3d.exe: pong3d.c $(LIB) $(HEADER) 32 | $(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@ 33 | 34 | mtbench.exe: mtbench.c $(LIB) $(HEADER) 35 | $(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@ 36 | 37 | particles.exe: particles.c $(LIB) $(HEADER) 38 | $(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@ 39 | 40 | splitview.exe: splitview.c $(LIB) $(HEADER) 41 | $(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@ 42 | 43 | mipmaps.exe: mipmaps.c $(LIB) $(HEADER) 44 | $(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@ 45 | 46 | gears.exe: gears.c $(LIB) $(HEADER) 47 | $(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -lm -o $@ 48 | 49 | boing.exe: boing.c $(LIB) $(HEADER) 50 | $(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@ 51 | 52 | wave.exe: wave.c $(LIB) $(HEADER) 53 | $(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@ 54 | 55 | -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.win32.ow: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Open Watcom 1.0. 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # "wmake -ms -f Makefile.win32.ow" or "nmake -f Makefile.win32.ow" 6 | ########################################################################## 7 | 8 | # Compiler settings 9 | CC = wcl386 10 | CFLAGS = /Ox /I..\\include 11 | #CFLAGS = /Ox /I..\\include /DGLFW_DLL 12 | 13 | # Linker settings 14 | LFLAGS = ..\\lib\\win32\\glfw.lib opengl32.lib glu32.lib user32.lib 15 | #LFLAGS = ..\\lib\\win32\\glfwdll.lib opengl32.lib glu32.lib 16 | 17 | # Subsystem settings 18 | WINDOWS = -"RUNTIME windows=4.0 REFERENCE 'mainCRTStartup' OPTION { start='mainCRTStartup' quiet stack=1M }" 19 | CONSOLE = -"RUNTIME console REFERENCE _cstart_ OPTION { START=_cstart_ quiet stack=1M }" 20 | 21 | 22 | # Default: Build all tests 23 | all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \ 24 | particles.exe splitview.exe mipmaps.exe gears.exe boing.exe wave.exe 25 | 26 | 27 | # Rule for triangle 28 | triangle.exe: triangle.c 29 | $(CC) $(CFLAGS) /Fe$@ triangle.c $(LFLAGS) $(WINDOWS) 30 | 31 | # Rule for listmodes 32 | listmodes.exe: listmodes.c 33 | $(CC) $(CFLAGS) /Fe$@ listmodes.c $(LFLAGS) $(CONSOLE) 34 | 35 | # Rule for mthello 36 | mthello.exe: mthello.c 37 | $(CC) $(CFLAGS) /Fe$@ mthello.c $(LFLAGS) $(CONSOLE) 38 | 39 | # Rule for pong3d 40 | pong3d.exe: pong3d.c 41 | $(CC) $(CFLAGS) /Fe$@ pong3d.c $(LFLAGS) $(WINDOWS) 42 | 43 | # Rule for mtbench 44 | mtbench.exe: mtbench.c 45 | $(CC) $(CFLAGS) /Fe$@ mtbench.c $(LFLAGS) $(CONSOLE) 46 | 47 | # Rule for particles 48 | particles.exe: particles.c 49 | $(CC) $(CFLAGS) /Fe$@ particles.c $(LFLAGS) $(CONSOLE) 50 | 51 | # Rule for splitview 52 | splitview.exe: splitview.c 53 | $(CC) $(CFLAGS) /Fe$@ splitview.c $(LFLAGS) $(WINDOWS) 54 | 55 | # Rule for mipmaps 56 | mipmaps.exe: mipmaps.c 57 | $(CC) $(CFLAGS) /Fe$@ mipmaps.c $(LFLAGS) $(WINDOWS) 58 | 59 | # Rule for gears 60 | gears.exe: gears.c 61 | $(CC) $(CFLAGS) /Fe$@ gears.c $(LFLAGS) $(WINDOWS) 62 | 63 | # Rule for boing 64 | boing.exe: boing.c 65 | $(CC) $(CFLAGS) /Fe$@ boing.c $(LFLAGS) $(WINDOWS) 66 | 67 | # Rule for wave 68 | wave.exe: wave.c 69 | $(CC) $(CFLAGS) /Fe$@ wave.c $(LFLAGS) $(WINDOWS) 70 | 71 | -------------------------------------------------------------------------------- /deps/glfw/examples/Makefile.x11.in: -------------------------------------------------------------------------------- 1 | BINARIES = triangle listmodes mthello pong3d mtbench particles splitview \ 2 | mipmaps gears boing wave 3 | 4 | all: $(BINARIES) 5 | 6 | triangle: triangle.c ../lib/x11/libglfw.a 7 | $(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ 8 | 9 | listmodes: listmodes.c ../lib/x11/libglfw.a 10 | $(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ 11 | 12 | mthello: mthello.c ../lib/x11/libglfw.a 13 | $(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ 14 | 15 | pong3d: pong3d.c ../lib/x11/libglfw.a 16 | $(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ 17 | 18 | mtbench: mtbench.c ../lib/x11/libglfw.a 19 | $(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ 20 | 21 | particles: particles.c ../lib/x11/libglfw.a 22 | $(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ 23 | 24 | splitview: splitview.c ../lib/x11/libglfw.a 25 | $(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ 26 | 27 | mipmaps: mipmaps.c ../lib/x11/libglfw.a 28 | $(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ 29 | 30 | gears: gears.c ../lib/x11/libglfw.a 31 | $(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ 32 | 33 | boing: boing.c ../lib/x11/libglfw.a 34 | $(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ 35 | 36 | wave: wave.c ../lib/x11/libglfw.a 37 | $(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ 38 | 39 | clean: 40 | rm -f $(BINARIES) 41 | 42 | -------------------------------------------------------------------------------- /deps/glfw/examples/bundle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Creates application bundles for use on Mac OS X. 4 | 5 | if [ -z "$1" ]; then 6 | echo "usage: `basename $0` BUNDLE-NAME" 7 | exit 1 8 | fi 9 | 10 | bundle_name="$1" 11 | 12 | if [ ! -d "${bundle_name}.app/Contents/MacOS" ]; then 13 | mkdir -p "${bundle_name}.app/Contents/MacOS" 14 | fi 15 | 16 | if [ ! -d "${bundle_name}.app/Contents/Resources" ]; then 17 | mkdir -p "${bundle_name}.app/Contents/Resources" 18 | fi 19 | 20 | if [ ! -f "${bundle_name}.app/Contents/PkgInfo" ]; then 21 | echo -n "APPL????" > "${bundle_name}.app/Contents/PkgInfo" 22 | fi 23 | 24 | if [ ! -f "${bundle_name}.app/Contents/Info.plist" ]; then 25 | cat > "${bundle_name}.app/Contents/Info.plist" < 27 | 28 | 29 | 30 | CFBundleDevelopmentRegion 31 | English 32 | CFBundleExecutable 33 | ${bundle_name} 34 | CFBundleInfoDictionaryVersion 35 | 6.0 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 0.1 42 | 43 | 44 | EOF 45 | fi 46 | 47 | -------------------------------------------------------------------------------- /deps/glfw/examples/listmodes.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // This is a small test application for GLFW. 3 | // The program lists all available fullscreen video modes. 4 | //======================================================================== 5 | 6 | #include 7 | #include 8 | 9 | // Maximum number of modes that we want to list 10 | #define MAX_NUM_MODES 400 11 | 12 | 13 | //======================================================================== 14 | // main() 15 | //======================================================================== 16 | 17 | int main( void ) 18 | { 19 | GLFWvidmode dtmode, modes[ MAX_NUM_MODES ]; 20 | int modecount, i; 21 | 22 | // Initialize GLFW 23 | if( !glfwInit() ) 24 | { 25 | return 0; 26 | } 27 | 28 | // Show desktop video mode 29 | glfwGetDesktopMode( &dtmode ); 30 | printf( "Desktop mode: %d x %d x %d\n\n", 31 | dtmode.Width, dtmode.Height, dtmode.RedBits + 32 | dtmode.GreenBits + dtmode.BlueBits ); 33 | 34 | // List available video modes 35 | modecount = glfwGetVideoModes( modes, MAX_NUM_MODES ); 36 | printf( "Available modes:\n" ); 37 | for( i = 0; i < modecount; i ++ ) 38 | { 39 | printf( "%3d: %d x %d x %d\n", i, 40 | modes[i].Width, modes[i].Height, modes[i].RedBits + 41 | modes[i].GreenBits + modes[i].BlueBits ); 42 | } 43 | 44 | // Terminate GLFW 45 | glfwTerminate(); 46 | 47 | return 0; 48 | } 49 | -------------------------------------------------------------------------------- /deps/glfw/examples/mipmaps.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/mipmaps.tga -------------------------------------------------------------------------------- /deps/glfw/examples/mthello.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // This is a small test application for GLFW. 3 | // The program prints "Hello world!", using two threads. 4 | //======================================================================== 5 | 6 | #include 7 | #include 8 | 9 | 10 | //======================================================================== 11 | // HelloFun() - Thread function 12 | //======================================================================== 13 | 14 | void GLFWCALL HelloFun( void *arg ) 15 | { 16 | // Print the first part of the message 17 | printf( "Hello " ); 18 | } 19 | 20 | 21 | //======================================================================== 22 | // main() - Main function (main thread) 23 | //======================================================================== 24 | 25 | int main( void ) 26 | { 27 | GLFWthread thread; 28 | 29 | // Initialise GLFW 30 | if( !glfwInit() ) 31 | { 32 | return 0; 33 | } 34 | 35 | // Create thread 36 | thread = glfwCreateThread( HelloFun, NULL ); 37 | 38 | // Wait for thread to die 39 | glfwWaitThread( thread, GLFW_WAIT ); 40 | 41 | // Print the rest of the message 42 | printf( "world!\n" ); 43 | 44 | // Terminate GLFW 45 | glfwTerminate(); 46 | 47 | return 0; 48 | } 49 | -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_field.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_field.tga -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_instr.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_instr.tga -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_menu.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_menu.tga -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_title.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_title.tga -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_winner1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_winner1.tga -------------------------------------------------------------------------------- /deps/glfw/examples/pong3d_winner2.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/deps/glfw/examples/pong3d_winner2.tga -------------------------------------------------------------------------------- /deps/glfw/include/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 41 4 | /svnroot/glfw/!svn/ver/1177/trunk/include 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/include/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk/include 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2010-04-25T20:46:57.620053Z 11 | 1177 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | GL 30 | dir 31 | 32 | -------------------------------------------------------------------------------- /deps/glfw/include/GL/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 44 4 | /svnroot/glfw/!svn/ver/1177/trunk/include/GL 5 | END 6 | glfw.h 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 51 10 | /svnroot/glfw/!svn/ver/1177/trunk/include/GL/glfw.h 11 | END 12 | -------------------------------------------------------------------------------- /deps/glfw/include/GL/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk/include/GL 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2010-04-25T20:46:57.620053Z 11 | 1177 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | glfw.h 30 | file 31 | 32 | 33 | 34 | 35 | 2010-05-23T05:06:07.084911Z 36 | de3df5450906ac7b98dc912e17ae6251 37 | 2010-04-25T20:46:57.620053Z 38 | 1177 39 | elmindreda 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 19814 62 | 63 | -------------------------------------------------------------------------------- /deps/glfw/lib/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 37 4 | /svnroot/glfw/!svn/ver/1183/trunk/lib 5 | END 6 | time.c 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 43 10 | /svnroot/glfw/!svn/ver/712/trunk/lib/time.c 11 | END 12 | input.c 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 44 16 | /svnroot/glfw/!svn/ver/945/trunk/lib/input.c 17 | END 18 | joystick.c 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 47 22 | /svnroot/glfw/!svn/ver/932/trunk/lib/joystick.c 23 | END 24 | internal.h 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 47 28 | /svnroot/glfw/!svn/ver/938/trunk/lib/internal.h 29 | END 30 | fullscreen.c 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 49 34 | /svnroot/glfw/!svn/ver/712/trunk/lib/fullscreen.c 35 | END 36 | image.c 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 44 40 | /svnroot/glfw/!svn/ver/945/trunk/lib/image.c 41 | END 42 | init.c 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 43 46 | /svnroot/glfw/!svn/ver/945/trunk/lib/init.c 47 | END 48 | glext.c 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 45 52 | /svnroot/glfw/!svn/ver/1183/trunk/lib/glext.c 53 | END 54 | enable.c 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 45 58 | /svnroot/glfw/!svn/ver/945/trunk/lib/enable.c 59 | END 60 | thread.c 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 45 64 | /svnroot/glfw/!svn/ver/712/trunk/lib/thread.c 65 | END 66 | window.c 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 46 70 | /svnroot/glfw/!svn/ver/1176/trunk/lib/window.c 71 | END 72 | tga.c 73 | K 25 74 | svn:wc:ra_dav:version-url 75 | V 42 76 | /svnroot/glfw/!svn/ver/813/trunk/lib/tga.c 77 | END 78 | stream.c 79 | K 25 80 | svn:wc:ra_dav:version-url 81 | V 45 82 | /svnroot/glfw/!svn/ver/936/trunk/lib/stream.c 83 | END 84 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 44 4 | /svnroot/glfw/!svn/ver/1175/trunk/lib/carbon 5 | END 6 | Makefile.carbon 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 60 10 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/Makefile.carbon 11 | END 12 | carbon_time.c 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 58 16 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_time.c 17 | END 18 | carbon_joystick.c 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 62 22 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_joystick.c 23 | END 24 | Makefile.carbon.universal 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 70 28 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/Makefile.carbon.universal 29 | END 30 | carbon_fullscreen.c 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 64 34 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_fullscreen.c 35 | END 36 | carbon_glext.c 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 59 40 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_glext.c 41 | END 42 | carbon_init.c 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 58 46 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_init.c 47 | END 48 | platform.h 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 55 52 | /svnroot/glfw/!svn/ver/1175/trunk/lib/carbon/platform.h 53 | END 54 | carbon_enable.c 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 60 58 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_enable.c 59 | END 60 | carbon_thread.c 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 60 64 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_thread.c 65 | END 66 | carbon_window.c 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 60 70 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/carbon_window.c 71 | END 72 | libglfw.pc.in 73 | K 25 74 | svn:wc:ra_dav:version-url 75 | V 58 76 | /svnroot/glfw/!svn/ver/1134/trunk/lib/carbon/libglfw.pc.in 77 | END 78 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/.svn/text-base/carbon_enable.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_enable.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | void _glfwPlatformEnableSystemKeys( void ) 32 | { 33 | // Nothing to do; event handling code checks the status of 34 | // _glfwWin.sysKeysDisabled to ensure this behavior. 35 | } 36 | 37 | void _glfwPlatformDisableSystemKeys( void ) 38 | { 39 | // Nothing to do; event handling code checks the status of 40 | // _glfwWin.sysKeysDisabled to ensure this behavior. 41 | } 42 | 43 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/.svn/text-base/carbon_glext.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_glext.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | int _glfwPlatformExtensionSupported( const char *extension ) 34 | { 35 | // There are no AGL, CGL or NSGL extensions. 36 | return GL_FALSE; 37 | } 38 | 39 | void * _glfwPlatformGetProcAddress( const char *procname ) 40 | { 41 | CFStringRef symbolName = CFStringCreateWithCString( kCFAllocatorDefault, 42 | procname, 43 | kCFStringEncodingASCII ); 44 | 45 | void *symbol = CFBundleGetFunctionPointerForName( _glfwLibrary.Libs.OpenGLFramework, 46 | symbolName ); 47 | 48 | CFRelease( symbolName ); 49 | 50 | return symbol; 51 | } 52 | 53 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/.svn/text-base/carbon_joystick.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_joystick.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | // TO DO: use HID manager to implement joystick support. 34 | 35 | int _glfwPlatformGetJoystickParam( int joy, int param ) 36 | { 37 | // GL_FALSE == 0 38 | return 0; 39 | } 40 | 41 | int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ) 42 | { 43 | return 0; 44 | } 45 | 46 | int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ) 47 | { 48 | return 0; 49 | } 50 | 51 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/.svn/text-base/libglfw.pc.in.svn-base: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -framework AGL -framework OpenGL -framework Carbon 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/carbon_enable.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_enable.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | void _glfwPlatformEnableSystemKeys( void ) 32 | { 33 | // Nothing to do; event handling code checks the status of 34 | // _glfwWin.sysKeysDisabled to ensure this behavior. 35 | } 36 | 37 | void _glfwPlatformDisableSystemKeys( void ) 38 | { 39 | // Nothing to do; event handling code checks the status of 40 | // _glfwWin.sysKeysDisabled to ensure this behavior. 41 | } 42 | 43 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/carbon_glext.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_glext.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | int _glfwPlatformExtensionSupported( const char *extension ) 34 | { 35 | // There are no AGL, CGL or NSGL extensions. 36 | return GL_FALSE; 37 | } 38 | 39 | void * _glfwPlatformGetProcAddress( const char *procname ) 40 | { 41 | CFStringRef symbolName = CFStringCreateWithCString( kCFAllocatorDefault, 42 | procname, 43 | kCFStringEncodingASCII ); 44 | 45 | void *symbol = CFBundleGetFunctionPointerForName( _glfwLibrary.Libs.OpenGLFramework, 46 | symbolName ); 47 | 48 | CFRelease( symbolName ); 49 | 50 | return symbol; 51 | } 52 | 53 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/carbon_joystick.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_joystick.c 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | // TO DO: use HID manager to implement joystick support. 34 | 35 | int _glfwPlatformGetJoystickParam( int joy, int param ) 36 | { 37 | // GL_FALSE == 0 38 | return 0; 39 | } 40 | 41 | int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ) 42 | { 43 | return 0; 44 | } 45 | 46 | int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ) 47 | { 48 | return 0; 49 | } 50 | 51 | -------------------------------------------------------------------------------- /deps/glfw/lib/carbon/libglfw.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -framework AGL -framework OpenGL -framework Carbon 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 43 4 | /svnroot/glfw/!svn/ver/1175/trunk/lib/cocoa 5 | END 6 | Makefile.cocoa 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 58 10 | /svnroot/glfw/!svn/ver/1075/trunk/lib/cocoa/Makefile.cocoa 11 | END 12 | cocoa_fullscreen.m 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 61 16 | /svnroot/glfw/!svn/ver/977/trunk/lib/cocoa/cocoa_fullscreen.m 17 | END 18 | cocoa_glext.m 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 56 22 | /svnroot/glfw/!svn/ver/966/trunk/lib/cocoa/cocoa_glext.m 23 | END 24 | cocoa_init.m 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 56 28 | /svnroot/glfw/!svn/ver/1140/trunk/lib/cocoa/cocoa_init.m 29 | END 30 | cocoa_enable.m 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 57 34 | /svnroot/glfw/!svn/ver/966/trunk/lib/cocoa/cocoa_enable.m 35 | END 36 | cocoa_window.m 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 58 40 | /svnroot/glfw/!svn/ver/1169/trunk/lib/cocoa/cocoa_window.m 41 | END 42 | platform.h 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 54 46 | /svnroot/glfw/!svn/ver/1175/trunk/lib/cocoa/platform.h 47 | END 48 | cocoa_thread.c 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 57 52 | /svnroot/glfw/!svn/ver/966/trunk/lib/cocoa/cocoa_thread.c 53 | END 54 | libglfw.pc.in 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 56 58 | /svnroot/glfw/!svn/ver/976/trunk/lib/cocoa/libglfw.pc.in 59 | END 60 | cocoa_time.m 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 55 64 | /svnroot/glfw/!svn/ver/966/trunk/lib/cocoa/cocoa_time.m 65 | END 66 | cocoa_joystick.m 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 59 70 | /svnroot/glfw/!svn/ver/966/trunk/lib/cocoa/cocoa_joystick.m 71 | END 72 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/dir-prop-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mergeinfo 3 | V 0 4 | 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/prop-base/Makefile.cocoa.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mergeinfo 3 | V 0 4 | 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/prop-base/cocoa_thread.c.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mergeinfo 3 | V 0 4 | 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/prop-base/libglfw.pc.in.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mergeinfo 3 | V 0 4 | 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/text-base/cocoa_enable.m.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_enable.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Enable and disable system keys 39 | //======================================================================== 40 | 41 | void _glfwPlatformEnableSystemKeys( void ) 42 | { 43 | // This is checked in macosx_window.m; we take no action here 44 | } 45 | 46 | void _glfwPlatformDisableSystemKeys( void ) 47 | { 48 | // This is checked in macosx_window.m; we take no action here 49 | // I don't think it's really possible to disable stuff like Exposé 50 | // except in full-screen mode. 51 | } 52 | 53 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/text-base/cocoa_glext.m.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_glext.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Check if an OpenGL extension is available at runtime 39 | //======================================================================== 40 | 41 | int _glfwPlatformExtensionSupported( const char *extension ) 42 | { 43 | // There are no AGL, CGL or NSGL extensions. 44 | return GL_FALSE; 45 | } 46 | 47 | //======================================================================== 48 | // Get the function pointer to an OpenGL function 49 | //======================================================================== 50 | 51 | void * _glfwPlatformGetProcAddress( const char *procname ) 52 | { 53 | CFStringRef symbolName = CFStringCreateWithCString( kCFAllocatorDefault, 54 | procname, 55 | kCFStringEncodingASCII ); 56 | 57 | void *symbol = CFBundleGetFunctionPointerForName( _glfwLibrary.OpenGLFramework, 58 | symbolName ); 59 | 60 | CFRelease( symbolName ); 61 | 62 | return symbol; 63 | } 64 | 65 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/text-base/cocoa_joystick.m.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_joystick.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Determine joystick capabilities 39 | //======================================================================== 40 | 41 | int _glfwPlatformGetJoystickParam( int joy, int param ) 42 | { 43 | // TODO: Implement this. 44 | return 0; 45 | } 46 | 47 | //======================================================================== 48 | // Get joystick axis positions 49 | //======================================================================== 50 | 51 | int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ) 52 | { 53 | // TODO: Implement this. 54 | return 0; 55 | } 56 | 57 | //======================================================================== 58 | // Get joystick button states 59 | //======================================================================== 60 | 61 | int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ) 62 | { 63 | // TODO: Implement this. 64 | return 0; 65 | } 66 | 67 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/.svn/text-base/libglfw.pc.in.svn-base: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -framework Cocoa -framework OpenGL 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/cocoa_enable.m: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_enable.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Enable and disable system keys 39 | //======================================================================== 40 | 41 | void _glfwPlatformEnableSystemKeys( void ) 42 | { 43 | // This is checked in macosx_window.m; we take no action here 44 | } 45 | 46 | void _glfwPlatformDisableSystemKeys( void ) 47 | { 48 | // This is checked in macosx_window.m; we take no action here 49 | // I don't think it's really possible to disable stuff like Exposé 50 | // except in full-screen mode. 51 | } 52 | 53 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/cocoa_glext.m: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_glext.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Check if an OpenGL extension is available at runtime 39 | //======================================================================== 40 | 41 | int _glfwPlatformExtensionSupported( const char *extension ) 42 | { 43 | // There are no AGL, CGL or NSGL extensions. 44 | return GL_FALSE; 45 | } 46 | 47 | //======================================================================== 48 | // Get the function pointer to an OpenGL function 49 | //======================================================================== 50 | 51 | void * _glfwPlatformGetProcAddress( const char *procname ) 52 | { 53 | CFStringRef symbolName = CFStringCreateWithCString( kCFAllocatorDefault, 54 | procname, 55 | kCFStringEncodingASCII ); 56 | 57 | void *symbol = CFBundleGetFunctionPointerForName( _glfwLibrary.OpenGLFramework, 58 | symbolName ); 59 | 60 | CFRelease( symbolName ); 61 | 62 | return symbol; 63 | } 64 | 65 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/cocoa_joystick.m: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: macosx_joystick.m 4 | // Platform: Mac OS X 5 | // API Version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | //************************************************************************ 34 | //**** Platform implementation functions **** 35 | //************************************************************************ 36 | 37 | //======================================================================== 38 | // Determine joystick capabilities 39 | //======================================================================== 40 | 41 | int _glfwPlatformGetJoystickParam( int joy, int param ) 42 | { 43 | // TODO: Implement this. 44 | return 0; 45 | } 46 | 47 | //======================================================================== 48 | // Get joystick axis positions 49 | //======================================================================== 50 | 51 | int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ) 52 | { 53 | // TODO: Implement this. 54 | return 0; 55 | } 56 | 57 | //======================================================================== 58 | // Get joystick button states 59 | //======================================================================== 60 | 61 | int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, int numbuttons ) 62 | { 63 | // TODO: Implement this. 64 | return 0; 65 | } 66 | 67 | -------------------------------------------------------------------------------- /deps/glfw/lib/cocoa/libglfw.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -framework Cocoa -framework OpenGL 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 43 4 | /svnroot/glfw/!svn/ver/1175/trunk/lib/win32 5 | END 6 | win32_dllmain.c 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 58 10 | /svnroot/glfw/!svn/ver/867/trunk/lib/win32/win32_dllmain.c 11 | END 12 | glfwdll_mgw1.def 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 59 16 | /svnroot/glfw/!svn/ver/422/trunk/lib/win32/glfwdll_mgw1.def 17 | END 18 | glfwdll_mgw2.def 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 59 22 | /svnroot/glfw/!svn/ver/422/trunk/lib/win32/glfwdll_mgw2.def 23 | END 24 | win32_glext.c 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 56 28 | /svnroot/glfw/!svn/ver/867/trunk/lib/win32/win32_glext.c 29 | END 30 | glfwdll.def 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 54 34 | /svnroot/glfw/!svn/ver/422/trunk/lib/win32/glfwdll.def 35 | END 36 | win32_enable.c 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 57 40 | /svnroot/glfw/!svn/ver/945/trunk/lib/win32/win32_enable.c 41 | END 42 | libglfw.pc.in 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 56 46 | /svnroot/glfw/!svn/ver/712/trunk/lib/win32/libglfw.pc.in 47 | END 48 | Makefile.win32.mingw 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 64 52 | /svnroot/glfw/!svn/ver/1075/trunk/lib/win32/Makefile.win32.mingw 53 | END 54 | Makefile.win32.cross-mgw 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 68 58 | /svnroot/glfw/!svn/ver/1139/trunk/lib/win32/Makefile.win32.cross-mgw 59 | END 60 | win32_time.c 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 55 64 | /svnroot/glfw/!svn/ver/712/trunk/lib/win32/win32_time.c 65 | END 66 | win32_joystick.c 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 59 70 | /svnroot/glfw/!svn/ver/943/trunk/lib/win32/win32_joystick.c 71 | END 72 | Makefile.win32.ow 73 | K 25 74 | svn:wc:ra_dav:version-url 75 | V 61 76 | /svnroot/glfw/!svn/ver/1075/trunk/lib/win32/Makefile.win32.ow 77 | END 78 | win32_fullscreen.c 79 | K 25 80 | svn:wc:ra_dav:version-url 81 | V 61 82 | /svnroot/glfw/!svn/ver/945/trunk/lib/win32/win32_fullscreen.c 83 | END 84 | win32_init.c 85 | K 25 86 | svn:wc:ra_dav:version-url 87 | V 55 88 | /svnroot/glfw/!svn/ver/943/trunk/lib/win32/win32_init.c 89 | END 90 | platform.h 91 | K 25 92 | svn:wc:ra_dav:version-url 93 | V 54 94 | /svnroot/glfw/!svn/ver/1175/trunk/lib/win32/platform.h 95 | END 96 | win32_thread.c 97 | K 25 98 | svn:wc:ra_dav:version-url 99 | V 57 100 | /svnroot/glfw/!svn/ver/712/trunk/lib/win32/win32_thread.c 101 | END 102 | win32_window.c 103 | K 25 104 | svn:wc:ra_dav:version-url 105 | V 58 106 | /svnroot/glfw/!svn/ver/1171/trunk/lib/win32/win32_window.c 107 | END 108 | Makefile.win32.cygwin 109 | K 25 110 | svn:wc:ra_dav:version-url 111 | V 65 112 | /svnroot/glfw/!svn/ver/1073/trunk/lib/win32/Makefile.win32.cygwin 113 | END 114 | Makefile.win32.lcc 115 | K 25 116 | svn:wc:ra_dav:version-url 117 | V 62 118 | /svnroot/glfw/!svn/ver/1075/trunk/lib/win32/Makefile.win32.lcc 119 | END 120 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/text-base/glfwdll.def.svn-base: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond 5 | glfwCloseWindow 6 | glfwCreateCond 7 | glfwCreateMutex 8 | glfwCreateThread 9 | glfwDestroyCond 10 | glfwDestroyMutex 11 | glfwDestroyThread 12 | glfwDisable 13 | glfwEnable 14 | glfwExtensionSupported 15 | glfwFreeImage 16 | glfwGetDesktopMode 17 | glfwGetGLVersion 18 | glfwGetJoystickButtons 19 | glfwGetJoystickParam 20 | glfwGetJoystickPos 21 | glfwGetKey 22 | glfwGetMouseButton 23 | glfwGetMousePos 24 | glfwGetMouseWheel 25 | glfwGetNumberOfProcessors 26 | glfwGetProcAddress 27 | glfwGetThreadID 28 | glfwGetTime 29 | glfwGetVersion 30 | glfwGetVideoModes 31 | glfwGetWindowParam 32 | glfwGetWindowSize 33 | glfwIconifyWindow 34 | glfwInit 35 | glfwLoadMemoryTexture2D 36 | glfwLoadTexture2D 37 | glfwLoadTextureImage2D 38 | glfwLockMutex 39 | glfwOpenWindow 40 | glfwOpenWindowHint 41 | glfwPollEvents 42 | glfwReadImage 43 | glfwReadMemoryImage 44 | glfwRestoreWindow 45 | glfwSetCharCallback 46 | glfwSetKeyCallback 47 | glfwSetMouseButtonCallback 48 | glfwSetMousePos 49 | glfwSetMousePosCallback 50 | glfwSetMouseWheel 51 | glfwSetMouseWheelCallback 52 | glfwSetTime 53 | glfwSetWindowCloseCallback 54 | glfwSetWindowRefreshCallback 55 | glfwSetWindowPos 56 | glfwSetWindowSize 57 | glfwSetWindowSizeCallback 58 | glfwSetWindowTitle 59 | glfwSignalCond 60 | glfwSleep 61 | glfwSwapBuffers 62 | glfwSwapInterval 63 | glfwTerminate 64 | glfwUnlockMutex 65 | glfwWaitCond 66 | glfwWaitEvents 67 | glfwWaitThread 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/text-base/glfwdll_mgw1.def.svn-base: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond = glfwBroadcastCond@4 5 | glfwCloseWindow = glfwCloseWindow@0 6 | glfwCreateCond = glfwCreateCond@0 7 | glfwCreateMutex = glfwCreateMutex@0 8 | glfwCreateThread = glfwCreateThread@8 9 | glfwDestroyCond = glfwDestroyCond@4 10 | glfwDestroyMutex = glfwDestroyMutex@4 11 | glfwDestroyThread = glfwDestroyThread@4 12 | glfwDisable = glfwDisable@4 13 | glfwEnable = glfwEnable@4 14 | glfwExtensionSupported = glfwExtensionSupported@4 15 | glfwFreeImage = glfwFreeImage@4 16 | glfwGetDesktopMode = glfwGetDesktopMode@4 17 | glfwGetGLVersion = glfwGetGLVersion@12 18 | glfwGetJoystickButtons = glfwGetJoystickButtons@12 19 | glfwGetJoystickParam = glfwGetJoystickParam@8 20 | glfwGetJoystickPos = glfwGetJoystickPos@12 21 | glfwGetKey = glfwGetKey@4 22 | glfwGetMouseButton = glfwGetMouseButton@4 23 | glfwGetMousePos = glfwGetMousePos@8 24 | glfwGetMouseWheel = glfwGetMouseWheel@0 25 | glfwGetNumberOfProcessors = glfwGetNumberOfProcessors@0 26 | glfwGetProcAddress = glfwGetProcAddress@4 27 | glfwGetThreadID = glfwGetThreadID@0 28 | glfwGetTime = glfwGetTime@0 29 | glfwGetVersion = glfwGetVersion@12 30 | glfwGetVideoModes = glfwGetVideoModes@8 31 | glfwGetWindowParam = glfwGetWindowParam@4 32 | glfwGetWindowSize = glfwGetWindowSize@8 33 | glfwIconifyWindow = glfwIconifyWindow@0 34 | glfwInit = glfwInit@0 35 | glfwLoadMemoryTexture2D = glfwLoadMemoryTexture2D@12 36 | glfwLoadTexture2D = glfwLoadTexture2D@8 37 | glfwLoadTextureImage2D = glfwLoadTextureImage2D@8 38 | glfwLockMutex = glfwLockMutex@4 39 | glfwOpenWindow = glfwOpenWindow@36 40 | glfwOpenWindowHint = glfwOpenWindowHint@8 41 | glfwPollEvents = glfwPollEvents@0 42 | glfwReadImage = glfwReadImage@12 43 | glfwReadMemoryImage = glfwReadMemoryImage@16 44 | glfwRestoreWindow = glfwRestoreWindow@0 45 | glfwSetCharCallback = glfwSetCharCallback@4 46 | glfwSetKeyCallback = glfwSetKeyCallback@4 47 | glfwSetMouseButtonCallback = glfwSetMouseButtonCallback@4 48 | glfwSetMousePos = glfwSetMousePos@8 49 | glfwSetMousePosCallback = glfwSetMousePosCallback@4 50 | glfwSetMouseWheel = glfwSetMouseWheel@4 51 | glfwSetMouseWheelCallback = glfwSetMouseWheelCallback@4 52 | glfwSetTime = glfwSetTime@8 53 | glfwSetWindowCloseCallback = glfwSetWindowCloseCallback@4 54 | glfwSetWindowRefreshCallback = glfwSetWindowRefreshCallback@4 55 | glfwSetWindowPos = glfwSetWindowPos@8 56 | glfwSetWindowSize = glfwSetWindowSize@8 57 | glfwSetWindowSizeCallback = glfwSetWindowSizeCallback@4 58 | glfwSetWindowTitle = glfwSetWindowTitle@4 59 | glfwSignalCond = glfwSignalCond@4 60 | glfwSleep = glfwSleep@8 61 | glfwSwapBuffers = glfwSwapBuffers@0 62 | glfwSwapInterval = glfwSwapInterval@4 63 | glfwTerminate = glfwTerminate@0 64 | glfwUnlockMutex = glfwUnlockMutex@4 65 | glfwWaitCond = glfwWaitCond@16 66 | glfwWaitEvents = glfwWaitEvents@0 67 | glfwWaitThread = glfwWaitThread@8 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/text-base/glfwdll_mgw2.def.svn-base: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond@4 5 | glfwCloseWindow@0 6 | glfwCreateCond@0 7 | glfwCreateMutex@0 8 | glfwCreateThread@8 9 | glfwDestroyCond@4 10 | glfwDestroyMutex@4 11 | glfwDestroyThread@4 12 | glfwDisable@4 13 | glfwEnable@4 14 | glfwExtensionSupported@4 15 | glfwFreeImage@4 16 | glfwGetDesktopMode@4 17 | glfwGetGLVersion@12 18 | glfwGetJoystickButtons@12 19 | glfwGetJoystickParam@8 20 | glfwGetJoystickPos@12 21 | glfwGetKey@4 22 | glfwGetMouseButton@4 23 | glfwGetMousePos@8 24 | glfwGetMouseWheel@0 25 | glfwGetNumberOfProcessors@0 26 | glfwGetProcAddress@4 27 | glfwGetThreadID@0 28 | glfwGetTime@0 29 | glfwGetVersion@12 30 | glfwGetVideoModes@8 31 | glfwGetWindowParam@4 32 | glfwGetWindowSize@8 33 | glfwIconifyWindow@0 34 | glfwInit@0 35 | glfwLoadMemoryTexture2D@12 36 | glfwLoadTexture2D@8 37 | glfwLoadTextureImage2D@8 38 | glfwLockMutex@4 39 | glfwOpenWindow@36 40 | glfwOpenWindowHint@8 41 | glfwPollEvents@0 42 | glfwReadImage@12 43 | glfwReadMemoryImage@16 44 | glfwRestoreWindow@0 45 | glfwSetCharCallback@4 46 | glfwSetKeyCallback@4 47 | glfwSetMouseButtonCallback@4 48 | glfwSetMousePos@8 49 | glfwSetMousePosCallback@4 50 | glfwSetMouseWheel@4 51 | glfwSetMouseWheelCallback@4 52 | glfwSetTime@8 53 | glfwSetWindowCloseCallback@4 54 | glfwSetWindowRefreshCallback@4 55 | glfwSetWindowPos@8 56 | glfwSetWindowSize@8 57 | glfwSetWindowSizeCallback@4 58 | glfwSetWindowTitle@4 59 | glfwSignalCond@4 60 | glfwSleep@8 61 | glfwSwapBuffers@0 62 | glfwSwapInterval@4 63 | glfwTerminate@0 64 | glfwUnlockMutex@4 65 | glfwWaitCond@16 66 | glfwWaitEvents@0 67 | glfwWaitThread@8 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/text-base/libglfw.pc.in.svn-base: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -lglu32 -lopengl32 -lm -s -mwindows -e _mainCRTStartup 11 | Cflags: -I${includedir} -mwin32 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/.svn/text-base/win32_dllmain.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: win32_dllmain.c 4 | // Platform: Windows 5 | // API version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | 34 | #if defined(GLFW_BUILD_DLL) 35 | 36 | //======================================================================== 37 | // GLFW DLL entry point 38 | //======================================================================== 39 | 40 | BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, LPVOID reserved ) 41 | { 42 | // NOTE: Some compilers complains about instance and x never being used - 43 | // never mind that (we don't want to use them)! 44 | 45 | switch( reason ) 46 | { 47 | case DLL_PROCESS_ATTACH: 48 | // Initializations 49 | break; 50 | case DLL_PROCESS_DETACH: 51 | // Do some cleanup 52 | glfwTerminate(); 53 | break; 54 | }; 55 | 56 | return TRUE; 57 | } 58 | 59 | #endif // GLFW_BUILD_DLL 60 | 61 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/glfwdll.def: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond 5 | glfwCloseWindow 6 | glfwCreateCond 7 | glfwCreateMutex 8 | glfwCreateThread 9 | glfwDestroyCond 10 | glfwDestroyMutex 11 | glfwDestroyThread 12 | glfwDisable 13 | glfwEnable 14 | glfwExtensionSupported 15 | glfwFreeImage 16 | glfwGetDesktopMode 17 | glfwGetGLVersion 18 | glfwGetJoystickButtons 19 | glfwGetJoystickParam 20 | glfwGetJoystickPos 21 | glfwGetKey 22 | glfwGetMouseButton 23 | glfwGetMousePos 24 | glfwGetMouseWheel 25 | glfwGetNumberOfProcessors 26 | glfwGetProcAddress 27 | glfwGetThreadID 28 | glfwGetTime 29 | glfwGetVersion 30 | glfwGetVideoModes 31 | glfwGetWindowParam 32 | glfwGetWindowSize 33 | glfwIconifyWindow 34 | glfwInit 35 | glfwLoadMemoryTexture2D 36 | glfwLoadTexture2D 37 | glfwLoadTextureImage2D 38 | glfwLockMutex 39 | glfwOpenWindow 40 | glfwOpenWindowHint 41 | glfwPollEvents 42 | glfwReadImage 43 | glfwReadMemoryImage 44 | glfwRestoreWindow 45 | glfwSetCharCallback 46 | glfwSetKeyCallback 47 | glfwSetMouseButtonCallback 48 | glfwSetMousePos 49 | glfwSetMousePosCallback 50 | glfwSetMouseWheel 51 | glfwSetMouseWheelCallback 52 | glfwSetTime 53 | glfwSetWindowCloseCallback 54 | glfwSetWindowRefreshCallback 55 | glfwSetWindowPos 56 | glfwSetWindowSize 57 | glfwSetWindowSizeCallback 58 | glfwSetWindowTitle 59 | glfwSignalCond 60 | glfwSleep 61 | glfwSwapBuffers 62 | glfwSwapInterval 63 | glfwTerminate 64 | glfwUnlockMutex 65 | glfwWaitCond 66 | glfwWaitEvents 67 | glfwWaitThread 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/glfwdll_mgw1.def: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond = glfwBroadcastCond@4 5 | glfwCloseWindow = glfwCloseWindow@0 6 | glfwCreateCond = glfwCreateCond@0 7 | glfwCreateMutex = glfwCreateMutex@0 8 | glfwCreateThread = glfwCreateThread@8 9 | glfwDestroyCond = glfwDestroyCond@4 10 | glfwDestroyMutex = glfwDestroyMutex@4 11 | glfwDestroyThread = glfwDestroyThread@4 12 | glfwDisable = glfwDisable@4 13 | glfwEnable = glfwEnable@4 14 | glfwExtensionSupported = glfwExtensionSupported@4 15 | glfwFreeImage = glfwFreeImage@4 16 | glfwGetDesktopMode = glfwGetDesktopMode@4 17 | glfwGetGLVersion = glfwGetGLVersion@12 18 | glfwGetJoystickButtons = glfwGetJoystickButtons@12 19 | glfwGetJoystickParam = glfwGetJoystickParam@8 20 | glfwGetJoystickPos = glfwGetJoystickPos@12 21 | glfwGetKey = glfwGetKey@4 22 | glfwGetMouseButton = glfwGetMouseButton@4 23 | glfwGetMousePos = glfwGetMousePos@8 24 | glfwGetMouseWheel = glfwGetMouseWheel@0 25 | glfwGetNumberOfProcessors = glfwGetNumberOfProcessors@0 26 | glfwGetProcAddress = glfwGetProcAddress@4 27 | glfwGetThreadID = glfwGetThreadID@0 28 | glfwGetTime = glfwGetTime@0 29 | glfwGetVersion = glfwGetVersion@12 30 | glfwGetVideoModes = glfwGetVideoModes@8 31 | glfwGetWindowParam = glfwGetWindowParam@4 32 | glfwGetWindowSize = glfwGetWindowSize@8 33 | glfwIconifyWindow = glfwIconifyWindow@0 34 | glfwInit = glfwInit@0 35 | glfwLoadMemoryTexture2D = glfwLoadMemoryTexture2D@12 36 | glfwLoadTexture2D = glfwLoadTexture2D@8 37 | glfwLoadTextureImage2D = glfwLoadTextureImage2D@8 38 | glfwLockMutex = glfwLockMutex@4 39 | glfwOpenWindow = glfwOpenWindow@36 40 | glfwOpenWindowHint = glfwOpenWindowHint@8 41 | glfwPollEvents = glfwPollEvents@0 42 | glfwReadImage = glfwReadImage@12 43 | glfwReadMemoryImage = glfwReadMemoryImage@16 44 | glfwRestoreWindow = glfwRestoreWindow@0 45 | glfwSetCharCallback = glfwSetCharCallback@4 46 | glfwSetKeyCallback = glfwSetKeyCallback@4 47 | glfwSetMouseButtonCallback = glfwSetMouseButtonCallback@4 48 | glfwSetMousePos = glfwSetMousePos@8 49 | glfwSetMousePosCallback = glfwSetMousePosCallback@4 50 | glfwSetMouseWheel = glfwSetMouseWheel@4 51 | glfwSetMouseWheelCallback = glfwSetMouseWheelCallback@4 52 | glfwSetTime = glfwSetTime@8 53 | glfwSetWindowCloseCallback = glfwSetWindowCloseCallback@4 54 | glfwSetWindowRefreshCallback = glfwSetWindowRefreshCallback@4 55 | glfwSetWindowPos = glfwSetWindowPos@8 56 | glfwSetWindowSize = glfwSetWindowSize@8 57 | glfwSetWindowSizeCallback = glfwSetWindowSizeCallback@4 58 | glfwSetWindowTitle = glfwSetWindowTitle@4 59 | glfwSignalCond = glfwSignalCond@4 60 | glfwSleep = glfwSleep@8 61 | glfwSwapBuffers = glfwSwapBuffers@0 62 | glfwSwapInterval = glfwSwapInterval@4 63 | glfwTerminate = glfwTerminate@0 64 | glfwUnlockMutex = glfwUnlockMutex@4 65 | glfwWaitCond = glfwWaitCond@16 66 | glfwWaitEvents = glfwWaitEvents@0 67 | glfwWaitThread = glfwWaitThread@8 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/glfwdll_mgw2.def: -------------------------------------------------------------------------------- 1 | LIBRARY GLFW.DLL 2 | 3 | EXPORTS 4 | glfwBroadcastCond@4 5 | glfwCloseWindow@0 6 | glfwCreateCond@0 7 | glfwCreateMutex@0 8 | glfwCreateThread@8 9 | glfwDestroyCond@4 10 | glfwDestroyMutex@4 11 | glfwDestroyThread@4 12 | glfwDisable@4 13 | glfwEnable@4 14 | glfwExtensionSupported@4 15 | glfwFreeImage@4 16 | glfwGetDesktopMode@4 17 | glfwGetGLVersion@12 18 | glfwGetJoystickButtons@12 19 | glfwGetJoystickParam@8 20 | glfwGetJoystickPos@12 21 | glfwGetKey@4 22 | glfwGetMouseButton@4 23 | glfwGetMousePos@8 24 | glfwGetMouseWheel@0 25 | glfwGetNumberOfProcessors@0 26 | glfwGetProcAddress@4 27 | glfwGetThreadID@0 28 | glfwGetTime@0 29 | glfwGetVersion@12 30 | glfwGetVideoModes@8 31 | glfwGetWindowParam@4 32 | glfwGetWindowSize@8 33 | glfwIconifyWindow@0 34 | glfwInit@0 35 | glfwLoadMemoryTexture2D@12 36 | glfwLoadTexture2D@8 37 | glfwLoadTextureImage2D@8 38 | glfwLockMutex@4 39 | glfwOpenWindow@36 40 | glfwOpenWindowHint@8 41 | glfwPollEvents@0 42 | glfwReadImage@12 43 | glfwReadMemoryImage@16 44 | glfwRestoreWindow@0 45 | glfwSetCharCallback@4 46 | glfwSetKeyCallback@4 47 | glfwSetMouseButtonCallback@4 48 | glfwSetMousePos@8 49 | glfwSetMousePosCallback@4 50 | glfwSetMouseWheel@4 51 | glfwSetMouseWheelCallback@4 52 | glfwSetTime@8 53 | glfwSetWindowCloseCallback@4 54 | glfwSetWindowRefreshCallback@4 55 | glfwSetWindowPos@8 56 | glfwSetWindowSize@8 57 | glfwSetWindowSizeCallback@4 58 | glfwSetWindowTitle@4 59 | glfwSignalCond@4 60 | glfwSleep@8 61 | glfwSwapBuffers@0 62 | glfwSwapInterval@4 63 | glfwTerminate@0 64 | glfwUnlockMutex@4 65 | glfwWaitCond@16 66 | glfwWaitEvents@0 67 | glfwWaitThread@8 68 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/libglfw.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@PREFIX@ 2 | exec_prefix=@PREFIX@ 3 | libdir=@PREFIX@/lib 4 | includedir=@PREFIX@/include 5 | 6 | Name: GLFW 7 | Description: A portable framework for OpenGL development 8 | Version: 2.7 9 | URL: http://glfw.sourceforge.net/ 10 | Libs: -L${libdir} -lglfw -lglu32 -lopengl32 -lm -s -mwindows -e _mainCRTStartup 11 | Cflags: -I${includedir} -mwin32 12 | -------------------------------------------------------------------------------- /deps/glfw/lib/win32/win32_dllmain.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: win32_dllmain.c 4 | // Platform: Windows 5 | // API version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | 34 | #if defined(GLFW_BUILD_DLL) 35 | 36 | //======================================================================== 37 | // GLFW DLL entry point 38 | //======================================================================== 39 | 40 | BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, LPVOID reserved ) 41 | { 42 | // NOTE: Some compilers complains about instance and x never being used - 43 | // never mind that (we don't want to use them)! 44 | 45 | switch( reason ) 46 | { 47 | case DLL_PROCESS_ATTACH: 48 | // Initializations 49 | break; 50 | case DLL_PROCESS_DETACH: 51 | // Do some cleanup 52 | glfwTerminate(); 53 | break; 54 | }; 55 | 56 | return TRUE; 57 | } 58 | 59 | #endif // GLFW_BUILD_DLL 60 | 61 | -------------------------------------------------------------------------------- /deps/glfw/lib/x11/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 41 4 | /svnroot/glfw/!svn/ver/1178/trunk/lib/x11 5 | END 6 | x11_enable.c 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 53 10 | /svnroot/glfw/!svn/ver/865/trunk/lib/x11/x11_enable.c 11 | END 12 | x11_thread.c 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 54 16 | /svnroot/glfw/!svn/ver/1015/trunk/lib/x11/x11_thread.c 17 | END 18 | x11_window.c 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 54 22 | /svnroot/glfw/!svn/ver/1178/trunk/lib/x11/x11_window.c 23 | END 24 | x11_keysym2unicode.c 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 62 28 | /svnroot/glfw/!svn/ver/1015/trunk/lib/x11/x11_keysym2unicode.c 29 | END 30 | x11_time.c 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 52 34 | /svnroot/glfw/!svn/ver/1009/trunk/lib/x11/x11_time.c 35 | END 36 | x11_joystick.c 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 56 40 | /svnroot/glfw/!svn/ver/1093/trunk/lib/x11/x11_joystick.c 41 | END 42 | Makefile.x11.in 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 57 46 | /svnroot/glfw/!svn/ver/1130/trunk/lib/x11/Makefile.x11.in 47 | END 48 | platform.h 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 52 52 | /svnroot/glfw/!svn/ver/1175/trunk/lib/x11/platform.h 53 | END 54 | x11_fullscreen.c 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 58 58 | /svnroot/glfw/!svn/ver/1009/trunk/lib/x11/x11_fullscreen.c 59 | END 60 | x11_glext.c 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 53 64 | /svnroot/glfw/!svn/ver/1143/trunk/lib/x11/x11_glext.c 65 | END 66 | x11_init.c 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 52 70 | /svnroot/glfw/!svn/ver/1013/trunk/lib/x11/x11_init.c 71 | END 72 | -------------------------------------------------------------------------------- /deps/glfw/lib/x11/.svn/text-base/x11_enable.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: x11_enable.c 4 | // Platform: X11 (Unix) 5 | // API version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | 34 | //************************************************************************ 35 | //**** Platform implementation functions **** 36 | //************************************************************************ 37 | 38 | //======================================================================== 39 | // Enable system keys 40 | //======================================================================== 41 | 42 | void _glfwPlatformEnableSystemKeys( void ) 43 | { 44 | // Not supported under X11 (yet) 45 | } 46 | 47 | //======================================================================== 48 | // Disable system keys 49 | //======================================================================== 50 | 51 | void _glfwPlatformDisableSystemKeys( void ) 52 | { 53 | // Not supported under X11 (yet) 54 | } 55 | 56 | -------------------------------------------------------------------------------- /deps/glfw/lib/x11/x11_enable.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // GLFW - An OpenGL framework 3 | // File: x11_enable.c 4 | // Platform: X11 (Unix) 5 | // API version: 2.7 6 | // WWW: http://glfw.sourceforge.net 7 | //------------------------------------------------------------------------ 8 | // Copyright (c) 2002-2006 Camilla Berglund 9 | // 10 | // This software is provided 'as-is', without any express or implied 11 | // warranty. In no event will the authors be held liable for any damages 12 | // arising from the use of this software. 13 | // 14 | // Permission is granted to anyone to use this software for any purpose, 15 | // including commercial applications, and to alter it and redistribute it 16 | // freely, subject to the following restrictions: 17 | // 18 | // 1. The origin of this software must not be misrepresented; you must not 19 | // claim that you wrote the original software. If you use this software 20 | // in a product, an acknowledgment in the product documentation would 21 | // be appreciated but is not required. 22 | // 23 | // 2. Altered source versions must be plainly marked as such, and must not 24 | // be misrepresented as being the original software. 25 | // 26 | // 3. This notice may not be removed or altered from any source 27 | // distribution. 28 | // 29 | //======================================================================== 30 | 31 | #include "internal.h" 32 | 33 | 34 | //************************************************************************ 35 | //**** Platform implementation functions **** 36 | //************************************************************************ 37 | 38 | //======================================================================== 39 | // Enable system keys 40 | //======================================================================== 41 | 42 | void _glfwPlatformEnableSystemKeys( void ) 43 | { 44 | // Not supported under X11 (yet) 45 | } 46 | 47 | //======================================================================== 48 | // Disable system keys 49 | //======================================================================== 50 | 51 | void _glfwPlatformDisableSystemKeys( void ) 52 | { 53 | // Not supported under X11 (yet) 54 | } 55 | 56 | -------------------------------------------------------------------------------- /deps/glfw/support/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 41 4 | /svnroot/glfw/!svn/ver/1128/trunk/support 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/support/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk/support 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2009-11-08T19:12:39.720867Z 11 | 1128 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | msvc90 30 | dir 31 | 32 | d 33 | dir 34 | 35 | pascal 36 | dir 37 | 38 | -------------------------------------------------------------------------------- /deps/glfw/support/d/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 43 4 | /svnroot/glfw/!svn/ver/1023/trunk/support/d 5 | END 6 | -------------------------------------------------------------------------------- /deps/glfw/support/d/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 1183 5 | https://glfw.svn.sourceforge.net/svnroot/glfw/trunk/support/d 6 | https://glfw.svn.sourceforge.net/svnroot/glfw 7 | 8 | 9 | 10 | 2009-10-19T20:13:19.606410Z 11 | 1023 12 | elmindreda 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 6b6f12f4-d702-4756-b7d5-daec80946654 28 | 29 | lib 30 | dir 31 | 32 | imports 33 | dir 34 | 35 | examples 36 | dir 37 | 38 | -------------------------------------------------------------------------------- /deps/glfw/support/d/examples/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 51 4 | /svnroot/glfw/!svn/ver/985/trunk/support/d/examples 5 | END 6 | boing.d 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 59 10 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/boing.d 11 | END 12 | mtbench.d 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 61 16 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/mtbench.d 17 | END 18 | gears.d 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 59 22 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/gears.d 23 | END 24 | wave.d 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 58 28 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/wave.d 29 | END 30 | listmodes.d 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 63 34 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/listmodes.d 35 | END 36 | mthello.d 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 61 40 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/mthello.d 41 | END 42 | triangle.d 43 | K 25 44 | svn:wc:ra_dav:version-url 45 | V 62 46 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/triangle.d 47 | END 48 | mipmaps.d 49 | K 25 50 | svn:wc:ra_dav:version-url 51 | V 61 52 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/mipmaps.d 53 | END 54 | particles.d 55 | K 25 56 | svn:wc:ra_dav:version-url 57 | V 63 58 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/particles.d 59 | END 60 | splitview.d 61 | K 25 62 | svn:wc:ra_dav:version-url 63 | V 63 64 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/splitview.d 65 | END 66 | keytest.d 67 | K 25 68 | svn:wc:ra_dav:version-url 69 | V 61 70 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/keytest.d 71 | END 72 | pong3d.d 73 | K 25 74 | svn:wc:ra_dav:version-url 75 | V 60 76 | /svnroot/glfw/!svn/ver/431/trunk/support/d/examples/pong3d.d 77 | END 78 | Makefile 79 | K 25 80 | svn:wc:ra_dav:version-url 81 | V 60 82 | /svnroot/glfw/!svn/ver/985/trunk/support/d/examples/Makefile 83 | END 84 | -------------------------------------------------------------------------------- /deps/glfw/support/d/examples/.svn/text-base/Makefile.svn-base: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # This makefile builds the example programs using the Digital Mars D 3 | # compiler. You need to copy the .lib files from support\d\lib to your 4 | # Digital Mars C/C++ compiler/linker lib folder (dm\lib) before compiling 5 | # the programs. 6 | ########################################################################## 7 | 8 | DC = dmd 9 | IMPORTSDIR = ..\imports 10 | DFLAGS = -O -I$(IMPORTSDIR) 11 | LIBDIR = ..\lib 12 | LIBS = $(LIBDIR)\glfwdll.lib $(LIBDIR)\glu32.lib $(LIBDIR)\opengl32.lib 13 | 14 | 15 | all: boing.exe gears.exe listmodes.exe mipmaps.exe mthello.exe mtbench.exe \ 16 | particles.exe pong3d.exe splitview.exe triangle.exe wave.exe 17 | 18 | 19 | clean: 20 | del *.exe *.obj *.map 21 | 22 | 23 | boing.exe: boing.d 24 | $(DC) $(DFLAGS) -of$@ $ "${bundle_name}.app/Contents/PkgInfo" 22 | fi 23 | 24 | if [ ! -f "${bundle_name}.app/Contents/Info.plist" ]; then 25 | cat > "${bundle_name}.app/Contents/Info.plist" < 27 | 28 | 29 | 30 | CFBundleDevelopmentRegion 31 | English 32 | CFBundleExecutable 33 | ${bundle_name} 34 | CFBundleInfoDictionaryVersion 35 | 6.0 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 0.1 42 | 43 | 44 | EOF 45 | fi 46 | 47 | -------------------------------------------------------------------------------- /deps/glfw/tests/.svn/text-base/getopt.h.svn-base: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * getopt.h - competent and free getopt library. 3 | * $Header: /cvsroot/freegetopt/freegetopt/getopt.h,v 1.2 2003/10/26 03:10:20 vindaci Exp $ 4 | * 5 | * Copyright (c)2002-2003 Mark K. Kim 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * * Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in 17 | * the documentation and/or other materials provided with the 18 | * distribution. 19 | * 20 | * * Neither the original author of this software nor the names of its 21 | * contributors may be used to endorse or promote products derived 22 | * from this software without specific prior written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 27 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 28 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 29 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 30 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 31 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 32 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 34 | * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 35 | * DAMAGE. 36 | */ 37 | #ifndef GETOPT_H_ 38 | #define GETOPT_H_ 39 | 40 | 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | 46 | extern char* optarg; 47 | extern int optind; 48 | extern int opterr; 49 | extern int optopt; 50 | 51 | int getopt(int argc, char** argv, char* optstr); 52 | 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | 59 | #endif /* GETOPT_H_ */ 60 | 61 | 62 | /* vim:ts=3 63 | */ 64 | -------------------------------------------------------------------------------- /deps/glfw/tests/.svn/text-base/tearing.c.svn-base: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // Vsync enabling test 3 | // Copyright (c) Camilla Berglund 4 | // 5 | // This software is provided 'as-is', without any express or implied 6 | // warranty. In no event will the authors be held liable for any damages 7 | // arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it 11 | // freely, subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; you must not 14 | // claim that you wrote the original software. If you use this software 15 | // in a product, an acknowledgment in the product documentation would 16 | // be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, and must not 19 | // be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source 22 | // distribution. 23 | // 24 | //======================================================================== 25 | // 26 | // This test renders a high contrast, horizontally moving bar, allowing for 27 | // visual verification of whether the set swap interval is indeed obeyed 28 | // 29 | //======================================================================== 30 | 31 | #include 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | static void GLFWCALL window_size_callback(int width, int height) 38 | { 39 | glViewport(0, 0, width, height); 40 | } 41 | 42 | int main(void) 43 | { 44 | float position; 45 | 46 | if (!glfwInit()) 47 | { 48 | fprintf(stderr, "Failed to initialize GLFW\n"); 49 | exit(1); 50 | } 51 | 52 | if (!glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW)) 53 | { 54 | glfwTerminate(); 55 | 56 | fprintf(stderr, "Failed to open GLFW window\n"); 57 | exit(1); 58 | } 59 | 60 | glfwSetWindowTitle("Tearing Detector"); 61 | glfwSetWindowSizeCallback(window_size_callback); 62 | glfwSwapInterval(1); 63 | 64 | glClearColor(0.f, 0.f, 0.f, 0.f); 65 | glColor3f(1.f, 1.f, 1.f); 66 | 67 | glMatrixMode(GL_PROJECTION); 68 | glOrtho(-1.f, 1.f, -1.f, 1.f, 1.f, -1.f); 69 | glMatrixMode(GL_MODELVIEW); 70 | 71 | while (glfwGetWindowParam(GLFW_OPENED) == GL_TRUE) 72 | { 73 | glClear(GL_COLOR_BUFFER_BIT); 74 | 75 | position = cosf(glfwGetTime() * 4.f) * 0.75f; 76 | glRectf(position - 0.25f, -1.f, position + 0.25f, 1.f); 77 | 78 | glfwSwapBuffers(); 79 | } 80 | 81 | glfwTerminate(); 82 | exit(0); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /deps/glfw/tests/Makefile.carbon: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Apple GCC. 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.carbon 6 | ########################################################################## 7 | 8 | # Compiler settings 9 | CC = gcc 10 | CFLAGS = -I../include -m32 11 | 12 | # Linker settings 13 | LIB = ../lib/carbon/libglfw.a 14 | LFLAGS = $(LIB) -framework AGL -framework OpenGL -framework Carbon -m32 15 | 16 | # Default: Build all tests 17 | all: Accuracy.app/Contents/MacOS/Accuracy \ 18 | Defaults.app/Contents/MacOS/Defaults \ 19 | Events.app/Contents/MacOS/Events \ 20 | FSAA.app/Contents/MacOS/FSAA \ 21 | FSInput.app/Contents/MacOS/FSInput \ 22 | Joysticks.app/Contents/MacOS/Joysticks \ 23 | Peter.app/Contents/MacOS/Peter \ 24 | ReOpen.app/Contents/MacOS/ReOpen \ 25 | Tearing.app/Contents/MacOS/Tearing \ 26 | Version.app/Contents/MacOS/Version 27 | 28 | Accuracy.app/Contents/MacOS/Accuracy: accuracy.c $(LIB) 29 | /bin/sh bundle.sh Accuracy 30 | $(CC) $(CFLAGS) accuracy.c $(LFLAGS) -o Accuracy.app/Contents/MacOS/Accuracy 31 | 32 | Defaults.app/Contents/MacOS/Defaults: defaults.c $(LIB) 33 | /bin/sh bundle.sh Defaults 34 | $(CC) $(CFLAGS) defaults.c $(LFLAGS) -o Defaults.app/Contents/MacOS/Defaults 35 | 36 | Events.app/Contents/MacOS/Events: events.c $(LIB) 37 | /bin/sh bundle.sh Events 38 | $(CC) $(CFLAGS) events.c $(LFLAGS) -o Events.app/Contents/MacOS/Events 39 | 40 | FSAA.app/Contents/MacOS/FSAA: fsaa.c $(LIB) 41 | /bin/sh bundle.sh FSAA 42 | $(CC) $(CFLAGS) fsaa.c $(LFLAGS) -o FSAA.app/Contents/MacOS/FSAA 43 | 44 | FSInput.app/Contents/MacOS/FSInput: fsinput.c $(LIB) 45 | /bin/sh bundle.sh FSInput 46 | $(CC) $(CFLAGS) fsinput.c $(LFLAGS) -o FSInput.app/Contents/MacOS/FSInput 47 | 48 | Joysticks.app/Contents/MacOS/Joysticks: joysticks.c $(LIB) 49 | /bin/sh bundle.sh Joysticks 50 | $(CC) $(CFLAGS) joysticks.c $(LFLAGS) -o Joysticks.app/Contents/MacOS/Joysticks 51 | 52 | Peter.app/Contents/MacOS/Peter: peter.c $(LIB) 53 | /bin/sh bundle.sh Peter 54 | $(CC) $(CFLAGS) peter.c $(LFLAGS) -o Peter.app/Contents/MacOS/Peter 55 | 56 | ReOpen.app/Contents/MacOS/ReOpen: reopen.c $(LIB) 57 | /bin/sh bundle.sh ReOpen 58 | $(CC) $(CFLAGS) reopen.c $(LFLAGS) -o ReOpen.app/Contents/MacOS/ReOpen 59 | 60 | Tearing.app/Contents/MacOS/Tearing: tearing.c $(LIB) 61 | /bin/sh bundle.sh Tearing 62 | $(CC) $(CFLAGS) tearing.c $(LFLAGS) -o Tearing.app/Contents/MacOS/Tearing 63 | 64 | Version.app/Contents/MacOS/Version: version.c $(LIB) 65 | /bin/sh bundle.sh Version 66 | $(CC) $(CFLAGS) version.c $(LFLAGS) -o Version.app/Contents/MacOS/Version 67 | 68 | clean: 69 | rm -rf Accuracy.app Defaults.app Events.app FSAA.app FSInput.app \ 70 | Joysticks.app Peter.app ReOpen.app Tearing.app Version.app 71 | 72 | -------------------------------------------------------------------------------- /deps/glfw/tests/Makefile.win32.cross-mgw: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on *nix using MinGW32 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cross-mgw 6 | ########################################################################## 7 | 8 | TARGET ?= i586-mingw32msvc- 9 | 10 | CC = gcc 11 | CFLAGS = -I../include -Wall -O2 12 | 13 | LIB = ../lib/win32/libglfw.a 14 | LFLAGS = $(LIB) -lglu32 -lopengl32 15 | 16 | WINDOWS = -mwindows -e _mainCRTStartup 17 | CONSOLE = -mconsole 18 | 19 | BINARIES = accuracy.exe defaults.exe events.exe fsaa.exe fsinput.exe \ 20 | joysticks.exe peter.exe reopen.exe tearing.exe version.exe 21 | 22 | HEADER = ../include/GL/glfw.h 23 | 24 | all: $(BINARIES) 25 | 26 | accuracy.exe: accuracy.c $(LIB) $(HEADER) 27 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) accuracy.c $(LFLAGS) -o $@ 28 | 29 | defaults.exe: defaults.c $(LIB) $(HEADER) 30 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) defaults.c $(LFLAGS) -o $@ 31 | 32 | events.exe: events.c $(LIB) $(HEADER) 33 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) events.c $(LFLAGS) -o $@ 34 | 35 | fsaa.exe: fsaa.c $(LIB) $(HEADER) 36 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) fsaa.c $(LFLAGS) -o $@ 37 | 38 | fsinput.exe: fsinput.c $(LIB) $(HEADER) 39 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) fsinput.c $(LFLAGS) -o $@ 40 | 41 | joysticks.exe: joysticks.c $(LIB) $(HEADER) 42 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) joysticks.c $(LFLAGS) -o $@ 43 | 44 | peter.exe: peter.c $(LIB) $(HEADER) 45 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) peter.c $(LFLAGS) -o $@ 46 | 47 | reopen.exe: reopen.c $(LIB) $(HEADER) 48 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) reopen.c $(LFLAGS) -o $@ 49 | 50 | tearing.exe: tearing.c $(LIB) $(HEADER) 51 | $(TARGET)$(CC) $(CFLAGS) $(WINDOWS) tearing.c $(LFLAGS) -o $@ 52 | 53 | version.exe: version.c getopt.c $(LIB) $(HEADER) 54 | $(TARGET)$(CC) $(CFLAGS) $(CONSOLE) version.c getopt.c $(LFLAGS) -o $@ 55 | 56 | clean: 57 | rm -f $(BINARIES) 58 | 59 | -------------------------------------------------------------------------------- /deps/glfw/tests/Makefile.win32.cygwin: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using Cygwin 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.cygwin 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 -mwin32 -mno-cygwin 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = -mno-cygwin $(LIB) -lglu32 -lopengl32 13 | 14 | WINDOWS = -mwindows -e _mainCRTStartup 15 | CONSOLE = -mconsole 16 | 17 | BINARIES = accuracy.exe defaults.exe events.exe fsaa.exe fsinput.exe \ 18 | joysticks.exe peter.exe reopen.exe tearing.exe version.exe 19 | 20 | HEADER = ../include/GL/glfw.h 21 | 22 | all: $(BINARIES) 23 | 24 | accuracy.exe: accuracy.c $(LIB) $(HEADER) 25 | $(CC) $(CFLAGS) $(WINDOWS) accuracy.c $(LFLAGS) -o $@ 26 | 27 | defaults.exe: defaults.c $(LIB) $(HEADER) 28 | $(CC) $(CFLAGS) $(CONSOLE) defaults.c $(LFLAGS) -o $@ 29 | 30 | events.exe: events.c $(LIB) $(HEADER) 31 | $(CC) $(CFLAGS) $(CONSOLE) events.c $(LFLAGS) -o $@ 32 | 33 | fsaa.exe: fsaa.c $(LIB) $(HEADER) 34 | $(CC) $(CFLAGS) $(CONSOLE) fsaa.c $(LFLAGS) -lm -o $@ 35 | 36 | fsinput.exe: fsinput.c $(LIB) $(HEADER) 37 | $(CC) $(CFLAGS) $(WINDOWS) fsinput.c $(LFLAGS) -lm -o $@ 38 | 39 | joysticks.exe: joysticks.c $(LIB) $(HEADER) 40 | $(CC) $(CFLAGS) $(CONSOLE) joysticks.c $(LFLAGS) -lm -o $@ 41 | 42 | peter.exe: peter.c $(LIB) $(HEADER) 43 | $(CC) $(CFLAGS) $(CONSOLE) peter.c $(LFLAGS) -o $@ 44 | 45 | reopen.exe: reopen.c $(LIB) $(HEADER) 46 | $(CC) $(CFLAGS) $(CONSOLE) reopen.c $(LFLAGS) -lm -o $@ 47 | 48 | tearing.exe: tearing.c $(LIB) $(HEADER) 49 | $(CC) $(CFLAGS) $(WINDOWS) tearing.c $(LFLAGS) -lm -o $@ 50 | 51 | version.exe: version.c getopt.c $(LIB) $(HEADER) 52 | $(CC) $(CFLAGS) $(CONSOLE) version.c getopt.c $(LFLAGS) -lm -o $@ 53 | 54 | clean: 55 | rm -f $(BINARIES) 56 | 57 | -------------------------------------------------------------------------------- /deps/glfw/tests/Makefile.win32.mingw: -------------------------------------------------------------------------------- 1 | ########################################################################## 2 | # Makefile for GLFW test programs on Windows using bare MinGW 3 | #------------------------------------------------------------------------- 4 | # To compile the test files using this makefile, run: 5 | # make -f Makefile.win32.mingw 6 | ########################################################################## 7 | 8 | CC = gcc 9 | CFLAGS = -I../include -Wall -O2 10 | 11 | LIB = ../lib/win32/libglfw.a 12 | LFLAGS = $(LIB) -lglu32 -lopengl32 -s 13 | 14 | WINDOWS = -mwindows 15 | CONSOLE = -mconsole 16 | 17 | HEADER = ../include/GL/glfw.h 18 | 19 | all: accuracy.exe defaults.exe events.exe fsaa.exe fsinput.exe \ 20 | joysticks.exe peter.exe reopen.exe tearing.exe version.exe 21 | 22 | accuracy.exe: accuracy.c $(LIB) $(HEADER) 23 | $(CC) $(CFLAGS) $(WINDOWS) accuracy.c $(LFLAGS) -o $@ 24 | 25 | defaults.exe: defaults.c $(LIB) $(HEADER) 26 | $(CC) $(CFLAGS) $(CONSOLE) defaults.c $(LFLAGS) -o $@ 27 | 28 | events.exe: events.c $(LIB) $(HEADER) 29 | $(CC) $(CFLAGS) $(CONSOLE) events.c $(LFLAGS) -o $@ 30 | 31 | fsaa.exe: fsaa.c $(LIB) $(HEADER) 32 | $(CC) $(CFLAGS) $(CONSOLE) fsaa.c $(LFLAGS) -o $@ 33 | 34 | fsinput.exe: fsinput.c $(LIB) $(HEADER) 35 | $(CC) $(CFLAGS) $(WINDOWS) fsinput.c $(LFLAGS) -o $@ 36 | 37 | joysticks.exe: joysticks.c $(LIB) $(HEADER) 38 | $(CC) $(CFLAGS) $(CONSOLE) joysticks.c $(LFLAGS) -o $@ 39 | 40 | peter.exe: peter.c $(LIB) $(HEADER) 41 | $(CC) $(CFLAGS) $(CONSOLE) peter.c $(LFLAGS) -o $@ 42 | 43 | reopen.exe: reopen.c $(LIB) $(HEADER) 44 | $(CC) $(CFLAGS) $(CONSOLE) reopen.c $(LFLAGS) -o $@ 45 | 46 | tearing.exe: tearing.c $(LIB) $(HEADER) 47 | $(CC) $(CFLAGS) $(WINDOWS) tearing.c $(LFLAGS) -o $@ 48 | 49 | version.exe: version.c $(LIB) $(HEADER) 50 | $(CC) $(CFLAGS) $(CONSOLE) version.c $(LFLAGS) -o $@ 51 | 52 | -------------------------------------------------------------------------------- /deps/glfw/tests/Makefile.x11.in: -------------------------------------------------------------------------------- 1 | BINARIES = accuracy defaults events fsaa fsinput joysticks peter reopen \ 2 | tearing version 3 | 4 | HEADER = ../include/GL/glfw.h 5 | 6 | all: $(BINARIES) 7 | 8 | accuracy: accuracy.c $(LIB) $(HEADER) 9 | $(CC) $(CFLAGS) accuracy.c $(LFLAGS) -o $@ 10 | 11 | defaults: defaults.c $(LIB) $(HEADER) 12 | $(CC) $(CFLAGS) defaults.c $(LFLAGS) -o $@ 13 | 14 | events: events.c $(LIB) $(HEADER) 15 | $(CC) $(CFLAGS) events.c $(LFLAGS) -o $@ 16 | 17 | fsaa: fsaa.c $(LIB) $(HEADER) 18 | $(CC) $(CFLAGS) fsaa.c $(LFLAGS) -o $@ 19 | 20 | fsinput: fsinput.c $(LIB) $(HEADER) 21 | $(CC) $(CFLAGS) fsinput.c $(LFLAGS) -o $@ 22 | 23 | joysticks: joysticks.c $(LIB) $(HEADER) 24 | $(CC) $(CFLAGS) joysticks.c $(LFLAGS) -o $@ 25 | 26 | peter: peter.c $(LIB) $(HEADER) 27 | $(CC) $(CFLAGS) peter.c $(LFLAGS) -o $@ 28 | 29 | reopen: reopen.c $(LIB) $(HEADER) 30 | $(CC) $(CFLAGS) reopen.c $(LFLAGS) -o $@ 31 | 32 | tearing: tearing.c $(LIB) $(HEADER) 33 | $(CC) $(CFLAGS) tearing.c $(LFLAGS) -o $@ 34 | 35 | version: version.c getopt.c $(LIB) $(HEADER) 36 | $(CC) $(CFLAGS) version.c getopt.c $(LFLAGS) -o $@ 37 | 38 | clean: 39 | rm -f $(BINARIES) 40 | 41 | -------------------------------------------------------------------------------- /deps/glfw/tests/bundle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Creates application bundles for use on Mac OS X. 4 | 5 | if [ -z "$1" ]; then 6 | echo "usage: `basename $0` BUNDLE-NAME" 7 | exit 1 8 | fi 9 | 10 | bundle_name="$1" 11 | 12 | if [ ! -d "${bundle_name}.app/Contents/MacOS" ]; then 13 | mkdir -p "${bundle_name}.app/Contents/MacOS" 14 | fi 15 | 16 | if [ ! -d "${bundle_name}.app/Contents/Resources" ]; then 17 | mkdir -p "${bundle_name}.app/Contents/Resources" 18 | fi 19 | 20 | if [ ! -f "${bundle_name}.app/Contents/PkgInfo" ]; then 21 | echo -n "APPL????" > "${bundle_name}.app/Contents/PkgInfo" 22 | fi 23 | 24 | if [ ! -f "${bundle_name}.app/Contents/Info.plist" ]; then 25 | cat > "${bundle_name}.app/Contents/Info.plist" < 27 | 28 | 29 | 30 | CFBundleDevelopmentRegion 31 | English 32 | CFBundleExecutable 33 | ${bundle_name} 34 | CFBundleInfoDictionaryVersion 35 | 6.0 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 0.1 42 | 43 | 44 | EOF 45 | fi 46 | 47 | -------------------------------------------------------------------------------- /deps/glfw/tests/getopt.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * getopt.h - competent and free getopt library. 3 | * $Header: /cvsroot/freegetopt/freegetopt/getopt.h,v 1.2 2003/10/26 03:10:20 vindaci Exp $ 4 | * 5 | * Copyright (c)2002-2003 Mark K. Kim 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 12 | * * Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * * Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in 17 | * the documentation and/or other materials provided with the 18 | * distribution. 19 | * 20 | * * Neither the original author of this software nor the names of its 21 | * contributors may be used to endorse or promote products derived 22 | * from this software without specific prior written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 27 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 28 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 29 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 30 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 31 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 32 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 34 | * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 35 | * DAMAGE. 36 | */ 37 | #ifndef GETOPT_H_ 38 | #define GETOPT_H_ 39 | 40 | 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | 46 | extern char* optarg; 47 | extern int optind; 48 | extern int opterr; 49 | extern int optopt; 50 | 51 | int getopt(int argc, char** argv, char* optstr); 52 | 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | 58 | 59 | #endif /* GETOPT_H_ */ 60 | 61 | 62 | /* vim:ts=3 63 | */ 64 | -------------------------------------------------------------------------------- /deps/glfw/tests/tearing.c: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // Vsync enabling test 3 | // Copyright (c) Camilla Berglund 4 | // 5 | // This software is provided 'as-is', without any express or implied 6 | // warranty. In no event will the authors be held liable for any damages 7 | // arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it 11 | // freely, subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; you must not 14 | // claim that you wrote the original software. If you use this software 15 | // in a product, an acknowledgment in the product documentation would 16 | // be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, and must not 19 | // be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source 22 | // distribution. 23 | // 24 | //======================================================================== 25 | // 26 | // This test renders a high contrast, horizontally moving bar, allowing for 27 | // visual verification of whether the set swap interval is indeed obeyed 28 | // 29 | //======================================================================== 30 | 31 | #include 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | static void GLFWCALL window_size_callback(int width, int height) 38 | { 39 | glViewport(0, 0, width, height); 40 | } 41 | 42 | int main(void) 43 | { 44 | float position; 45 | 46 | if (!glfwInit()) 47 | { 48 | fprintf(stderr, "Failed to initialize GLFW\n"); 49 | exit(1); 50 | } 51 | 52 | if (!glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW)) 53 | { 54 | glfwTerminate(); 55 | 56 | fprintf(stderr, "Failed to open GLFW window\n"); 57 | exit(1); 58 | } 59 | 60 | glfwSetWindowTitle("Tearing Detector"); 61 | glfwSetWindowSizeCallback(window_size_callback); 62 | glfwSwapInterval(1); 63 | 64 | glClearColor(0.f, 0.f, 0.f, 0.f); 65 | glColor3f(1.f, 1.f, 1.f); 66 | 67 | glMatrixMode(GL_PROJECTION); 68 | glOrtho(-1.f, 1.f, -1.f, 1.f, 1.f, -1.f); 69 | glMatrixMode(GL_MODELVIEW); 70 | 71 | while (glfwGetWindowParam(GLFW_OPENED) == GL_TRUE) 72 | { 73 | glClear(GL_COLOR_BUFFER_BIT); 74 | 75 | position = cosf(glfwGetTime() * 4.f) * 0.75f; 76 | glRectf(position - 0.25f, -1.f, position + 0.25f, 1.f); 77 | 78 | glfwSwapBuffers(); 79 | } 80 | 81 | glfwTerminate(); 82 | exit(0); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /example/nehe/data/Crate.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/example/nehe/data/Crate.bmp -------------------------------------------------------------------------------- /example/nehe/data/NeHe.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/example/nehe/data/NeHe.bmp -------------------------------------------------------------------------------- /example/nehe/lesson3.js: -------------------------------------------------------------------------------- 1 | var gl = require(__dirname + "/../../lib/OpenGL"), 2 | sys = require("sys"), 3 | width = 400, 4 | height = 400; 5 | 6 | gl.OpenWindow(width,height,0,0,0,0,0,0,0); 7 | 8 | gl.glShadeModel(gl.GL_SMOOTH); 9 | gl.glClearColor(1.0, 1.0, 1.0, 1.0); 10 | gl.glClearDepth(1.0); // Depth Buffer Setup 11 | gl.glEnable(gl.GL_DEPTH_TEST); // Enables Depth Testing 12 | gl.glDepthFunc(gl.GL_LEQUAL); 13 | gl.glViewport(0,0,width,height); 14 | gl.glHint(gl.GL_PERSPECTIVE_CORRECTION_HINT, gl.GL_NICEST); 15 | gl.glMatrixMode(gl.GL_PROJECTION); 16 | gl.glLoadIdentity(); 17 | gl.gluPerspective(45.0, width / height, 0.1, 100.0); 18 | gl.glMatrixMode(gl.GL_MODELVIEW); 19 | gl.glFlush(); 20 | 21 | setTimeout(function render() { 22 | 23 | gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT); 24 | gl.glLoadIdentity(); 25 | 26 | gl.glTranslatef(-1.5,0.0,-6.0); 27 | 28 | gl.glBegin(gl.GL_TRIANGLES); // Drawing Using Triangles 29 | gl.glColor3f(1.0,0.0,0.0); 30 | gl.glVertex3f( 0.0, 1.0, 0.0); // Top 31 | gl.glColor3f(0.0,1.0,0.0); 32 | gl.glVertex3f(-1.0,-1.0, 0.0); // Bottom Left 33 | gl.glColor3f(0.0,0.0,1.0); 34 | gl.glVertex3f( 1.0,-1.0, 0.0); // Bottom Right 35 | gl.glEnd(); 36 | 37 | gl.glTranslatef(3.0,0.0,0.0); 38 | gl.glColor3f(0.5,0.5,1.0); // Set The Color To Blue One Time Only 39 | gl.glBegin(gl.GL_QUADS); // Start Drawing Quads 40 | gl.glVertex3f(-1.0, 1.0, 0.0); // Left And Up 1 Unit (Top Left) 41 | gl.glVertex3f( 1.0, 1.0, 0.0); // Right And Up 1 Unit (Top Right) 42 | gl.glVertex3f( 1.0,-1.0, 0.0); // Right And Down One Unit (Bottom Right) 43 | gl.glVertex3f(-1.0,-1.0, 0.0); // Left And Down One Unit (Bottom Left) 44 | gl.glEnd(); 45 | 46 | gl.SwapBuffers(); 47 | setTimeout(render, 10); 48 | }, 0); 49 | 50 | 51 | -------------------------------------------------------------------------------- /example/nehe/lesson4.js: -------------------------------------------------------------------------------- 1 | var gl = require(__dirname + "/../../lib/OpenGL"), 2 | sys = require("sys"), 3 | width = 1280, 4 | height = 1024; 5 | 6 | gl.OpenWindow(width,height,0,0,0,0,0,0,0); 7 | 8 | gl.glShadeModel(gl.GL_SMOOTH); 9 | gl.glClearColor(1.0, 1.0, 1.0, 1.0); 10 | gl.glClearDepth(1.0); // Depth Buffer Setup 11 | gl.glEnable(gl.GL_DEPTH_TEST); // Enables Depth Testing 12 | gl.glDepthFunc(gl.GL_LEQUAL); 13 | gl.glViewport(0,0,width,height); 14 | gl.glHint(gl.GL_PERSPECTIVE_CORRECTION_HINT, gl.GL_NICEST); 15 | gl.glMatrixMode(gl.GL_PROJECTION); 16 | gl.glLoadIdentity(); 17 | gl.gluPerspective(45.0, width / height, 0.1, 100.0); 18 | gl.glMatrixMode(gl.GL_MODELVIEW); 19 | gl.glFlush(); 20 | 21 | var running = true; 22 | var rtri = 0.0; var rquad = 0.0; 23 | 24 | setTimeout(function render() { 25 | gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT); 26 | gl.glLoadIdentity(); 27 | 28 | gl.glTranslatef(-1.5,0.0,-6.0); 29 | gl.glRotatef(rtri,0.0,1.0,0.0); 30 | gl.glBegin(gl.GL_TRIANGLES); // Drawing Using Triangles 31 | gl.glColor3f(1.0,0.0,0.0); 32 | gl.glVertex3f( 0.0, 1.0, 0.0); // Top 33 | gl.glColor3f(0.0,1.0,0.0); 34 | gl.glVertex3f(-1.0,-1.0, 0.0); // Bottom Left 35 | gl.glColor3f(0.0,0.0,1.0); 36 | gl.glVertex3f( 1.0,-1.0, 0.0); // Bottom Right 37 | gl.glEnd(); 38 | 39 | gl.glLoadIdentity(); 40 | gl.glTranslatef(1.5,0.0,-6.0); 41 | gl.glRotatef(rquad,1.0,0.0,0.0); 42 | gl.glColor3f(0.5,0.5,1.0); // Set The Color To Blue One Time Only 43 | gl.glBegin(gl.GL_QUADS); // Start Drawing Quads 44 | gl.glVertex3f(-1.0, 1.0, 0.0); // Left And Up 1 Unit (Top Left) 45 | gl.glVertex3f( 1.0, 1.0, 0.0); // Right And Up 1 Unit (Top Right) 46 | gl.glVertex3f( 1.0,-1.0, 0.0); // Right And Down One Unit (Bottom Right) 47 | gl.glVertex3f(-1.0,-1.0, 0.0); // Left And Down One Unit (Bottom Left) 48 | gl.glEnd(); 49 | 50 | gl.SwapBuffers(); 51 | rtri+=0.25; 52 | rquad-=0.15; 53 | setTimeout(render, 10); 54 | }, 0); 55 | 56 | 57 | -------------------------------------------------------------------------------- /example/nehe/lesson4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/example/nehe/lesson4.png -------------------------------------------------------------------------------- /example/nehe/lesson5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/example/nehe/lesson5.png -------------------------------------------------------------------------------- /example/nehe/lesson6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/example/nehe/lesson6.png -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmpvar/node-ogl/dc988af4d8f981f676c3fa042f9d7e521f2e0eb6/lib/.gitignore -------------------------------------------------------------------------------- /lib/OpenGL.js: -------------------------------------------------------------------------------- 1 | var types = ['GLenum','GLboolean','GLbitfield','GLvoid','GLbyte','GLshort', 2 | 'GLint','GLubyte','GLushort','GLuint','GLsizei','GLfloat', 3 | 'GLclampf','GLdouble','GLclampd'], 4 | nodeogl = require("./node-ogl"); 5 | 6 | for (var i=0; i 0) { 39 | sys.puts("calling: " + key); 40 | sys.puts("error: " + error); 41 | process.exit(); 42 | } 43 | }; 44 | })(key); 45 | } else { 46 | exports[key] = nodeogl[key]; 47 | } 48 | }; 49 | 50 | -------------------------------------------------------------------------------- /src/binding.cc: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | 3 | using namespace v8; 4 | using namespace node; 5 | 6 | extern "C" void 7 | init (Handle target) 8 | { 9 | HandleScope scope; 10 | 11 | // Initialize 12 | glfw::Initialize(target); 13 | gl::Initialize(target); 14 | glu::Initialize(target); 15 | } 16 | 17 | -------------------------------------------------------------------------------- /src/common.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Elijah Insua 2 | #ifndef NODE_ADDON_SRC_COMMON_H_ 3 | #define NODE_ADDON_SRC_COMMON_H_ 4 | 5 | // Node Includes 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | // OpenGL Includes 16 | #ifdef __APPLE__ 17 | #include 18 | #include 19 | #else // Other than __APPLE__ 20 | #include 21 | #include 22 | #endif 23 | 24 | // Binding includes 25 | #include "gl.h" 26 | #include "glfw.h" 27 | #include "glu.h" 28 | 29 | namespace node { 30 | class glConstants { 31 | public: 32 | static void Initialize (v8::Handle target) { 33 | glConstants::value_symbol = v8::Persistent::New(v8::String::NewSymbol("value")); 34 | } 35 | static v8::Persistent value_symbol; 36 | }; 37 | } 38 | #endif 39 | -------------------------------------------------------------------------------- /src/gl.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Elijah Insua 2 | #ifndef NODE_ADDON_SRC_GL_H_ 3 | #define NODE_ADDON_SRC_GL_H_ 4 | 5 | #include "common.h" 6 | 7 | namespace node { 8 | using namespace v8; 9 | 10 | class gl : ObjectWrap { 11 | public: 12 | static void Initialize (Handle target); 13 | protected: 14 | 15 | gl (); 16 | }; 17 | } // namespace node 18 | #endif 19 | -------------------------------------------------------------------------------- /src/glfw.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "glfw.h" 3 | 4 | using namespace v8; 5 | namespace node { 6 | 7 | void glfw::Initialize(Handle target) { 8 | HandleScope scope; 9 | Local _OpenWindow = FunctionTemplate::New(glfw::OpenWindow); 10 | target->Set(String::New("OpenWindow"), _OpenWindow->GetFunction()); 11 | 12 | Local _SwapBuffers = FunctionTemplate::New(glfw::SwapBuffers); 13 | target->Set(String::New("SwapBuffers"), _SwapBuffers->GetFunction()); 14 | 15 | } 16 | 17 | // Constructor 18 | glfw::glfw() : ObjectWrap() 19 | { 20 | glfwInit(); 21 | } 22 | 23 | // destructor 24 | glfw::~glfw() 25 | { 26 | glfwTerminate(); 27 | } 28 | 29 | /** 30 | * @param int width 31 | * @param int height 32 | * @param int redbits 33 | * @param int greenbits 34 | * @param int bluebits 35 | * @param int alphabits 36 | * @param int depthbits 37 | * @param int stencilbits 38 | * @param int mode 39 | * @return int 40 | */ 41 | Handle glfw::OpenWindow(const Arguments& args) 42 | { 43 | HandleScope scope; 44 | glfwInit(); 45 | bool res = glfwOpenWindow(args[0]->Int32Value(), 46 | args[1]->Int32Value(), 47 | 0, 48 | 0, 49 | 0, 50 | 0, 51 | 0, 52 | 0, 53 | GLFW_WINDOW); 54 | 55 | return scope.Close(Boolean::New(res)); 56 | } 57 | 58 | Handle glfw::SwapBuffers(const Arguments& args) 59 | { 60 | HandleScope scope; 61 | glfwSwapBuffers(); 62 | } 63 | 64 | Handle glfw::New(const Arguments &args) 65 | { 66 | // create new avro instance (process incoming schema) 67 | glfw *instance = new glfw(); 68 | // wrap instance in the v8 object 69 | instance->Wrap(args.This()); 70 | return args.This(); 71 | } 72 | } // namespace node 73 | -------------------------------------------------------------------------------- /src/glfw.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Elijah Insua 2 | #ifndef NODE_ADDON_SRC_GLFW_H_ 3 | #define NODE_ADDON_SRC_GLFW_H_ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include 11 | 12 | namespace node { 13 | using namespace v8; 14 | 15 | class glfw : ObjectWrap { 16 | public: 17 | static void Initialize (v8::Handle target); 18 | 19 | protected: 20 | glfw(); 21 | ~glfw(); 22 | static Handle OpenWindow(const Arguments& args); 23 | static Handle SwapBuffers(const Arguments& args); 24 | Handle New(const Arguments &args); 25 | }; 26 | } // namespace node 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /src/glu.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Elijah Insua 2 | #ifndef NODE_ADDON_SRC_GLU_H_ 3 | #define NODE_ADDON_SRC_GLU_H_ 4 | 5 | #include "common.h" 6 | 7 | namespace node { 8 | using namespace v8; 9 | 10 | class glu : ObjectWrap { 11 | public: 12 | static void Initialize (Handle target); 13 | protected: 14 | 15 | glu (); 16 | }; 17 | } // namespace node 18 | #endif 19 | -------------------------------------------------------------------------------- /test/sanity.js: -------------------------------------------------------------------------------- 1 | var gl = require("../lib/OpenGL"), 2 | sys = require("sys"), 3 | width = 400, 4 | height = 400; 5 | 6 | sys.puts("Module included."); 7 | 8 | if (!gl) { 9 | throw new Error("Environment Is not sane, lib.gl does not exist"); 10 | } 11 | 12 | sys.puts("enabling GL_LINE_SMOOTH (" + gl.GL_LINE_SMOOTH + ")"); 13 | sys.puts("ret: " + gl.glEnable(gl.GL_LINE_SMOOTH)); 14 | var stored = gl.glIsEnabled(gl.GL_LINE_SMOOTH); 15 | sys.puts("Is GL_LINE_SMOOTH enabled? " + stored); 16 | sys.puts("Error: " + gl.glGetError()); 17 | 18 | // Pass by reference testing 19 | 20 | function add10(ref) { 21 | ref.value += 10; 22 | } 23 | 24 | var delta = gl.GLfloat(0.11); 25 | 26 | sys.puts(sys.inspect(delta, true)); 27 | add10(delta); 28 | sys.puts("delta is now: " + delta.value); 29 | -------------------------------------------------------------------------------- /util/in/GLES/egl.h: -------------------------------------------------------------------------------- 1 | /* For compatibility with early OpenGL ES 1.0 implementations that 2 | * included gl.h in egl.h (and apps that only included egl.h) 3 | * See: http://www.khronos.org/registry/implementers_guide.html 4 | */ 5 | #include 6 | #include 7 | -------------------------------------------------------------------------------- /util/in/GLES/egltypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** egltypes.h for Mesa 3 | ** 4 | ** ONLY egl.h SHOULD INCLUDE THIS FILE! 5 | ** 6 | ** See comments about egltypes.h in the standard egl.h file. 7 | */ 8 | 9 | 10 | #include 11 | 12 | 13 | /* 14 | ** These opaque EGL types are implemented as unsigned 32-bit integers: 15 | */ 16 | typedef uint32_t EGLDisplay; 17 | typedef uint32_t EGLConfig; 18 | typedef uint32_t EGLSurface; 19 | typedef uint32_t EGLContext; 20 | 21 | /* EGL_MESA_screen_surface */ 22 | typedef uint32_t EGLModeMESA; 23 | typedef uint32_t EGLScreenMESA; 24 | 25 | 26 | /* 27 | ** Other basic EGL types: 28 | */ 29 | typedef uint8_t EGLBoolean; 30 | typedef int32_t EGLint; 31 | 32 | typedef void * NativeDisplayType; 33 | typedef int NativePixmapType; 34 | typedef int NativeWindowType; 35 | 36 | /* 37 | ** EGL and native handle null values: 38 | */ 39 | #define EGL_DEFAULT_DISPLAY ((NativeDisplayType) 0) 40 | #define EGL_NO_CONTEXT ((EGLContext) 0) 41 | #define EGL_NO_DISPLAY ((EGLDisplay) 0) 42 | #define EGL_NO_SURFACE ((EGLSurface) 0) 43 | 44 | /* EGL_MESA_screen_surface */ 45 | #define EGL_NO_MODE_MESA ((EGLModeMESA) 0) 46 | -------------------------------------------------------------------------------- /util/in/GLES/glplatform.h: -------------------------------------------------------------------------------- 1 | #ifndef __glplatform_h_ 2 | #define __glplatform_h_ 3 | 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | /* 10 | ** License Applicability. Except to the extent portions of this file are 11 | ** made subject to an alternative license as permitted in the SGI Free 12 | ** Software License B, Version 1.0 (the "License"), the contents of this 13 | ** file are subject only to the provisions of the License. You may not use 14 | ** this file except in compliance with the License. You may obtain a copy 15 | ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 16 | ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: 17 | ** 18 | ** http://oss.sgi.com/projects/FreeB 19 | ** 20 | ** Note that, as provided in the License, the Software is distributed on an 21 | ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS 22 | ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND 23 | ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A 24 | ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 25 | ** 26 | ** Original Code. The Original Code is: OpenGL Sample Implementation, 27 | ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, 28 | ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. 29 | ** Copyright in any portions created by third parties is as indicated 30 | ** elsewhere herein. All Rights Reserved. 31 | ** 32 | ** Additional Notice Provisions: The application programming interfaces 33 | ** established by SGI in conjunction with the Original Code are The 34 | ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released 35 | ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version 36 | ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X 37 | ** Window System(R) (Version 1.3), released October 19, 1998. This software 38 | ** was created using the OpenGL(R) version 1.2.1 Sample Implementation 39 | ** published by SGI, but has not been independently verified as being 40 | ** compliant with the OpenGL(R) version 1.2.1 Specification. 41 | */ 42 | 43 | /*------------------------------------------------------------------------- 44 | * Definition of GL_API and GL_APIENTRY 45 | *-----------------------------------------------------------------------*/ 46 | 47 | #ifdef _WIN32 48 | # ifdef __GL_EXPORTS 49 | # define GL_API __declspec(dllexport) 50 | # else 51 | # define GL_API __declspec(dllimport) 52 | # endif 53 | # ifdef UNDER_CE 54 | # define GL_APIENTRY 55 | # else 56 | # define GL_APIENTRY __stdcall 57 | # endif 58 | #else 59 | # ifdef __GL_EXPORTS 60 | # define GL_API 61 | # else 62 | # define GL_API extern 63 | # endif 64 | # define GL_APIENTRY 65 | #endif 66 | 67 | 68 | #ifndef APIENTRY 69 | # define APIENTRY GL_APIENTRY 70 | #endif 71 | 72 | #ifdef __cplusplus 73 | } 74 | #endif 75 | 76 | #endif /* __glplatform_h_ */ 77 | -------------------------------------------------------------------------------- /util/in/GLES2/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | /* 10 | ** License Applicability. Except to the extent portions of this file are 11 | ** made subject to an alternative license as permitted in the SGI Free 12 | ** Software License B, Version 1.0 (the "License"), the contents of this 13 | ** file are subject only to the provisions of the License. You may not use 14 | ** this file except in compliance with the License. You may obtain a copy 15 | ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 16 | ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: 17 | ** 18 | ** http://oss.sgi.com/projects/FreeB 19 | ** 20 | ** Note that, as provided in the License, the Software is distributed on an 21 | ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS 22 | ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND 23 | ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A 24 | ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 25 | ** 26 | ** Original Code. The Original Code is: OpenGL Sample Implementation, 27 | ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, 28 | ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. 29 | ** Copyright in any portions created by third parties is as indicated 30 | ** elsewhere herein. All Rights Reserved. 31 | ** 32 | ** Additional Notice Provisions: The application programming interfaces 33 | ** established by SGI in conjunction with the Original Code are The 34 | ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released 35 | ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version 36 | ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X 37 | ** Window System(R) (Version 1.3), released October 19, 1998. This software 38 | ** was created using the OpenGL(R) version 1.2.1 Sample Implementation 39 | ** published by SGI, but has not been independently verified as being 40 | ** compliant with the OpenGL(R) version 1.2.1 Specification. 41 | */ 42 | 43 | /*------------------------------------------------------------------------- 44 | * Definition of GL_APICALL and GL_APIENTRY 45 | *-----------------------------------------------------------------------*/ 46 | 47 | #ifdef _WIN32 48 | # ifdef __GL_EXPORTS 49 | # define GL_APICALL __declspec(dllexport) 50 | # else 51 | # define GL_APICALL __declspec(dllimport) 52 | # endif 53 | # ifdef UNDER_CE 54 | # define GL_APIENTRY 55 | # else 56 | # define GL_APIENTRY __stdcall 57 | # endif 58 | #else 59 | # ifdef __GL_EXPORTS 60 | # define GL_APICALL 61 | # else 62 | # define GL_APICALL extern 63 | # endif 64 | # define GL_APIENTRY 65 | #endif 66 | 67 | 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | 72 | #endif /* __gl2platform_h_ */ 73 | -------------------------------------------------------------------------------- /util/template/header.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Elijah Insua 2 | #ifndef NODE_ADDON_SRC_%_UNAME_H_ 3 | #define NODE_ADDON_SRC_%_UNAME_H_ 4 | 5 | #include "common.h" 6 | 7 | namespace node { 8 | using namespace v8; 9 | 10 | class %_NAME : ObjectWrap { 11 | public: 12 | static void Initialize (Handle target); 13 | protected: 14 | 15 | %_NAME (); 16 | }; 17 | } // namespace node 18 | #endif 19 | -------------------------------------------------------------------------------- /util/template/source.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "common.h" 3 | 4 | // Includes 5 | %_INCLUDES 6 | 7 | using namespace v8; 8 | namespace node { 9 | 10 | %_METHODS 11 | 12 | // Constructor 13 | %_NAME::%_NAME() { } 14 | 15 | void %_NAME::Initialize(v8::Handle target) { 16 | HandleScope scope; 17 | 18 | // Constants 19 | %_CONSTANTS 20 | 21 | // Expose this classes methods to v8/javascript 22 | %_JSMETHODS 23 | 24 | } 25 | } // namespace node 26 | -------------------------------------------------------------------------------- /wscript: -------------------------------------------------------------------------------- 1 | import Options, glob 2 | from os.path import join, dirname, abspath, exists 3 | from shutil import copy, rmtree 4 | from os import unlink 5 | import sys, os 6 | 7 | srcdir = "." 8 | blddir = "build" 9 | VERSION = "0.0.1" 10 | 11 | def set_options(opt): 12 | opt.tool_options("compiler_cxx") 13 | opt.tool_options("compiler_cc") 14 | 15 | def configure(conf): 16 | conf.check_tool("compiler_cxx") 17 | conf.check_tool("compiler_cc") 18 | conf.check_tool("node_addon") 19 | conf.check_cfg(package='gl', mandatory=1, args='--cflags --libs') 20 | conf.check_cfg(package='glu', mandatory=1, args='--cflags --libs') 21 | conf.check_cfg(package='xrandr', mandatory=1, args='--cflags --libs') 22 | 23 | conf.env.append_value("LIBPATH_GLFW", abspath("./build/default/lib/")) 24 | conf.env.append_value("STATICLIB_GLFW",["glfw"]) 25 | conf.env.append_value("CPPPATH_GLFW", abspath("./build/default/include/")) 26 | 27 | # TODO: add support for more platforms.. 28 | buildpath = abspath("build/default") 29 | cmd = "cd \"deps/glfw\" && CFLAGS=-fPIC PREFIX=%s make x11-dist-install" 30 | if os.system(cmd % (buildpath)) != 0: 31 | conf.fatal("Building glfw failed.") 32 | 33 | 34 | 35 | def clean(ctx): 36 | if exists("lib/node-ogl.node"): unlink("lib/node-ogl.node") 37 | if exists("build"): rmtree("build") 38 | 39 | # TODO: add support for more platforms.. 40 | buildpath = abspath("build/default") 41 | cmd = "cd \"deps/glfw\" && PREFIX=%s make x11-dist-clean" 42 | if os.system(cmd % (buildpath)) != 0: 43 | conf.fatal("Building glfw failed.") 44 | 45 | 46 | def build(bld): 47 | # build node-avro 48 | node_ogl = bld.new_task_gen("cxx", "shlib", "node_addon") 49 | node_ogl.source = bld.glob("src/*.cc") 50 | node_ogl.name = "node-ogl" 51 | node_ogl.target = "node-ogl" 52 | node_ogl.uselib = ["GL", "GLU", "GLFW", "XRANDR"] 53 | bld.add_post_fun(copynode) 54 | 55 | def copynode(ctx): 56 | if exists('build/default/node-ogl.node'): 57 | copy('build/default/node-ogl.node','lib/node-ogl.node') 58 | 59 | def test(tst): 60 | os.system("node test/sanity.js") 61 | --------------------------------------------------------------------------------