ruby-glfw 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -0
- data/README.API +73 -0
- data/Rakefile +120 -0
- data/examples/boing.rb +519 -0
- data/examples/gears.rb +327 -0
- data/examples/keytest.rb +117 -0
- data/examples/listmodes.rb +20 -0
- data/examples/mipmaps.rb +104 -0
- data/examples/mipmaps.tga +0 -0
- data/examples/particles.rb +837 -0
- data/examples/pong3d.rb +741 -0
- data/examples/pong3d_field.tga +0 -0
- data/examples/pong3d_instr.tga +0 -0
- data/examples/pong3d_menu.tga +0 -0
- data/examples/pong3d_title.tga +0 -0
- data/examples/pong3d_winner1.tga +0 -0
- data/examples/pong3d_winner2.tga +0 -0
- data/examples/splitview.rb +432 -0
- data/examples/triangle.rb +89 -0
- data/examples/wave.rb +294 -0
- data/ext/glfw/glfw.c +1094 -0
- data/ext/glfw/mkrf_conf.rb +70 -0
- data/glfw-src/Makefile +220 -0
- data/glfw-src/compile.ami +61 -0
- data/glfw-src/compile.bat +217 -0
- data/glfw-src/compile.sh +607 -0
- data/glfw-src/docs/Makefile +57 -0
- data/glfw-src/docs/Reference.pdf +0 -0
- data/glfw-src/docs/UsersGuide.pdf +0 -0
- data/glfw-src/docs/cleanup.bat +22 -0
- data/glfw-src/docs/glfwdoc.sty +80 -0
- data/glfw-src/docs/glfwrm.tex +3034 -0
- data/glfw-src/docs/glfwug.tex +2024 -0
- data/glfw-src/docs/readme.txt +80 -0
- data/glfw-src/examples/Makefile.amigaos.gcc +70 -0
- data/glfw-src/examples/Makefile.amigaos.vbcc +70 -0
- data/glfw-src/examples/Makefile.dos.djgpp +71 -0
- data/glfw-src/examples/Makefile.macosx.gcc +96 -0
- data/glfw-src/examples/Makefile.win32.bcc +75 -0
- data/glfw-src/examples/Makefile.win32.cross-mgw +79 -0
- data/glfw-src/examples/Makefile.win32.cygwin +79 -0
- data/glfw-src/examples/Makefile.win32.lcc +74 -0
- data/glfw-src/examples/Makefile.win32.mgw +75 -0
- data/glfw-src/examples/Makefile.win32.msvc +74 -0
- data/glfw-src/examples/Makefile.win32.ow +74 -0
- data/glfw-src/examples/Makefile.win32.pellesc +74 -0
- data/glfw-src/examples/Makefile.x11.in +54 -0
- data/glfw-src/examples/boing.c +606 -0
- data/glfw-src/examples/bundle.sh +46 -0
- data/glfw-src/examples/gears.c +382 -0
- data/glfw-src/examples/keytest.c +264 -0
- data/glfw-src/examples/listmodes.c +48 -0
- data/glfw-src/examples/mipmaps.c +126 -0
- data/glfw-src/examples/mipmaps.tga +0 -0
- data/glfw-src/examples/mtbench.c +301 -0
- data/glfw-src/examples/mthello.c +48 -0
- data/glfw-src/examples/particles.c +1148 -0
- data/glfw-src/examples/pong3d.c +839 -0
- data/glfw-src/examples/pong3d_field.tga +0 -0
- data/glfw-src/examples/pong3d_instr.tga +0 -0
- data/glfw-src/examples/pong3d_menu.tga +0 -0
- data/glfw-src/examples/pong3d_title.tga +0 -0
- data/glfw-src/examples/pong3d_winner1.tga +0 -0
- data/glfw-src/examples/pong3d_winner2.tga +0 -0
- data/glfw-src/examples/splitview.c +506 -0
- data/glfw-src/examples/triangle.c +108 -0
- data/glfw-src/examples/wave.c +397 -0
- data/glfw-src/images/opengl.gif +0 -0
- data/glfw-src/images/osicert.gif +0 -0
- data/glfw-src/include/GL/glfw.h +486 -0
- data/glfw-src/lib/amigaos/Makefile.amigaos.gcc +128 -0
- data/glfw-src/lib/amigaos/Makefile.amigaos.vbcc +128 -0
- data/glfw-src/lib/amigaos/SDI_compiler.h +94 -0
- data/glfw-src/lib/amigaos/amigaos_enable.c +51 -0
- data/glfw-src/lib/amigaos/amigaos_fullscreen.c +319 -0
- data/glfw-src/lib/amigaos/amigaos_glext.c +61 -0
- data/glfw-src/lib/amigaos/amigaos_init.c +284 -0
- data/glfw-src/lib/amigaos/amigaos_joystick.c +359 -0
- data/glfw-src/lib/amigaos/amigaos_thread.c +494 -0
- data/glfw-src/lib/amigaos/amigaos_time.c +206 -0
- data/glfw-src/lib/amigaos/amigaos_window.c +830 -0
- data/glfw-src/lib/amigaos/platform.h +337 -0
- data/glfw-src/lib/dos/Makefile.dos.djgpp +146 -0
- data/glfw-src/lib/dos/dos_enable.c +51 -0
- data/glfw-src/lib/dos/dos_events.c +173 -0
- data/glfw-src/lib/dos/dos_fullscreen.c +101 -0
- data/glfw-src/lib/dos/dos_glext.c +59 -0
- data/glfw-src/lib/dos/dos_init.c +105 -0
- data/glfw-src/lib/dos/dos_irq.s +246 -0
- data/glfw-src/lib/dos/dos_joystick.c +94 -0
- data/glfw-src/lib/dos/dos_keyboard.c +694 -0
- data/glfw-src/lib/dos/dos_mouse.c +337 -0
- data/glfw-src/lib/dos/dos_thread.c +267 -0
- data/glfw-src/lib/dos/dos_time.c +309 -0
- data/glfw-src/lib/dos/dos_window.c +563 -0
- data/glfw-src/lib/dos/platform.h +341 -0
- data/glfw-src/lib/enable.c +295 -0
- data/glfw-src/lib/fullscreen.c +95 -0
- data/glfw-src/lib/glext.c +201 -0
- data/glfw-src/lib/image.c +629 -0
- data/glfw-src/lib/init.c +108 -0
- data/glfw-src/lib/input.c +280 -0
- data/glfw-src/lib/internal.h +210 -0
- data/glfw-src/lib/joystick.c +101 -0
- data/glfw-src/lib/macosx/Makefile.macosx.gcc +172 -0
- data/glfw-src/lib/macosx/Makefile.macosx.gcc.universal +166 -0
- data/glfw-src/lib/macosx/libglfw.pc.in +11 -0
- data/glfw-src/lib/macosx/macosx_enable.c +42 -0
- data/glfw-src/lib/macosx/macosx_fullscreen.c +126 -0
- data/glfw-src/lib/macosx/macosx_glext.c +52 -0
- data/glfw-src/lib/macosx/macosx_init.c +194 -0
- data/glfw-src/lib/macosx/macosx_joystick.c +50 -0
- data/glfw-src/lib/macosx/macosx_thread.c +414 -0
- data/glfw-src/lib/macosx/macosx_time.c +112 -0
- data/glfw-src/lib/macosx/macosx_window.c +1279 -0
- data/glfw-src/lib/macosx/platform.h +349 -0
- data/glfw-src/lib/stream.c +194 -0
- data/glfw-src/lib/tga.c +405 -0
- data/glfw-src/lib/thread.c +340 -0
- data/glfw-src/lib/time.c +83 -0
- data/glfw-src/lib/win32/Makefile.win32.bcc +265 -0
- data/glfw-src/lib/win32/Makefile.win32.cross-mgw +274 -0
- data/glfw-src/lib/win32/Makefile.win32.cygwin +279 -0
- data/glfw-src/lib/win32/Makefile.win32.lcc +246 -0
- data/glfw-src/lib/win32/Makefile.win32.mgw +243 -0
- data/glfw-src/lib/win32/Makefile.win32.msvc +242 -0
- data/glfw-src/lib/win32/Makefile.win32.ow +242 -0
- data/glfw-src/lib/win32/Makefile.win32.pellesc +242 -0
- data/glfw-src/lib/win32/glfwdll.def +67 -0
- data/glfw-src/lib/win32/glfwdll_mgw1.def +67 -0
- data/glfw-src/lib/win32/glfwdll_mgw2.def +67 -0
- data/glfw-src/lib/win32/glfwdll_pellesc.def +65 -0
- data/glfw-src/lib/win32/libglfw.pc.in +11 -0
- data/glfw-src/lib/win32/platform.h +474 -0
- data/glfw-src/lib/win32/win32_dllmain.c +60 -0
- data/glfw-src/lib/win32/win32_enable.c +155 -0
- data/glfw-src/lib/win32/win32_fullscreen.c +317 -0
- data/glfw-src/lib/win32/win32_glext.c +85 -0
- data/glfw-src/lib/win32/win32_init.c +356 -0
- data/glfw-src/lib/win32/win32_joystick.c +234 -0
- data/glfw-src/lib/win32/win32_thread.c +511 -0
- data/glfw-src/lib/win32/win32_time.c +146 -0
- data/glfw-src/lib/win32/win32_window.c +1714 -0
- data/glfw-src/lib/window.c +727 -0
- data/glfw-src/lib/x11/Makefile.x11.in +243 -0
- data/glfw-src/lib/x11/platform.h +415 -0
- data/glfw-src/lib/x11/x11_enable.c +51 -0
- data/glfw-src/lib/x11/x11_fullscreen.c +524 -0
- data/glfw-src/lib/x11/x11_glext.c +69 -0
- data/glfw-src/lib/x11/x11_init.c +275 -0
- data/glfw-src/lib/x11/x11_joystick.c +371 -0
- data/glfw-src/lib/x11/x11_keysym2unicode.c +902 -0
- data/glfw-src/lib/x11/x11_thread.c +507 -0
- data/glfw-src/lib/x11/x11_time.c +154 -0
- data/glfw-src/lib/x11/x11_window.c +1746 -0
- data/glfw-src/license.txt +21 -0
- data/glfw-src/readme.html +927 -0
- data/glfw-src/support/d/examples/Makefile +59 -0
- data/glfw-src/support/d/examples/boing.d +610 -0
- data/glfw-src/support/d/examples/gears.d +379 -0
- data/glfw-src/support/d/examples/keytest.d +272 -0
- data/glfw-src/support/d/examples/listmodes.d +48 -0
- data/glfw-src/support/d/examples/mipmaps.d +126 -0
- data/glfw-src/support/d/examples/mtbench.d +304 -0
- data/glfw-src/support/d/examples/mthello.d +54 -0
- data/glfw-src/support/d/examples/particles.d +1150 -0
- data/glfw-src/support/d/examples/pong3d.d +840 -0
- data/glfw-src/support/d/examples/splitview.d +486 -0
- data/glfw-src/support/d/examples/triangle.d +108 -0
- data/glfw-src/support/d/examples/wave.d +400 -0
- data/glfw-src/support/d/imports/gl.d +4539 -0
- data/glfw-src/support/d/imports/glfw.d +349 -0
- data/glfw-src/support/d/imports/glu.d +328 -0
- data/glfw-src/support/d/lib/glfwdll.def +64 -0
- data/glfw-src/support/d/lib/glu32.def +56 -0
- data/glfw-src/support/d/lib/makefile +12 -0
- data/glfw-src/support/d/lib/opengl32.def +372 -0
- data/glfw-src/support/d/readme.html +83 -0
- data/glfw-src/support/delphi/examples/Triangle.dpr +105 -0
- data/glfw-src/support/delphi/lib/glfw.pas +437 -0
- data/glfw-src/support/delphi/readme.html +97 -0
- data/glfw-src/support/lua/examples/gears.lua +383 -0
- data/glfw-src/support/lua/examples/test1.lua +68 -0
- data/glfw-src/support/lua/readme.html +128 -0
- data/glfw-src/support/lua/src/luaglfw.c +1179 -0
- data/glfw-src/support/lua/src/luaglfw.h +48 -0
- data/glfw-src/support/lua/src/runlua.c +82 -0
- data/glfw-src/support/masm/examples/fpc.mac +47 -0
- data/glfw-src/support/masm/examples/makeit.bat +66 -0
- data/glfw-src/support/masm/examples/triangle.asm +232 -0
- data/glfw-src/support/masm/include/glfw.inc +326 -0
- data/glfw-src/support/masm/include/glu32.inc +55 -0
- data/glfw-src/support/masm/include/opengl32.inc +372 -0
- data/glfw-src/support/masm/lib/glfwdll.lib +0 -0
- data/glfw-src/support/masm/readme.html +170 -0
- data/glfw-src/support/msvc80/GLFW.sln +26 -0
- data/glfw-src/support/msvc80/GLFW.vcproj +257 -0
- data/glfw-src/support/msvc80/GLFWDLL.vcproj +287 -0
- data/glfw-src/support/visualbasic/bindings/glfw.bas +320 -0
- data/glfw-src/support/visualbasic/bindings/glu32.bas +284 -0
- data/glfw-src/support/visualbasic/bindings/opengl32.bas +999 -0
- data/glfw-src/support/visualbasic/examples/Triangle.bas +101 -0
- data/glfw-src/support/visualbasic/readme.html +164 -0
- data/website/index.html +84 -0
- data/website/style.css +110 -0
- metadata +301 -0
@@ -0,0 +1,79 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on Windows 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
|
+
# Compiler settings
|
11
|
+
CC = gcc
|
12
|
+
CFLAGS = -I../include -Wall -O3 -ffast-math
|
13
|
+
|
14
|
+
# Linker settings
|
15
|
+
LFLAGS = -L../lib/win32 -lglfw -lglu32 -lopengl32
|
16
|
+
|
17
|
+
# Subsystem settings
|
18
|
+
WINDOWS = -mwindows -e _mainCRTStartup
|
19
|
+
CONSOLE = -mconsole
|
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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
clean:
|
29
|
+
@rm -f *.o *.obj *.tds *.exe
|
30
|
+
|
31
|
+
|
32
|
+
# Rule for triangle
|
33
|
+
triangle.exe: triangle.c
|
34
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@
|
35
|
+
|
36
|
+
# Rule for listmodes
|
37
|
+
listmodes.exe: listmodes.c
|
38
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@
|
39
|
+
|
40
|
+
# Rule for mthello
|
41
|
+
mthello.exe: mthello.c
|
42
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@
|
43
|
+
|
44
|
+
# Rule for pong3d
|
45
|
+
pong3d.exe: pong3d.c
|
46
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@
|
47
|
+
|
48
|
+
# Rule for mtbench
|
49
|
+
mtbench.exe: mtbench.c
|
50
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@
|
51
|
+
|
52
|
+
# Rule for particles
|
53
|
+
particles.exe: particles.c
|
54
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@
|
55
|
+
|
56
|
+
# Rule for splitview
|
57
|
+
splitview.exe: splitview.c
|
58
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@
|
59
|
+
|
60
|
+
# Rule for mipmaps
|
61
|
+
mipmaps.exe: mipmaps.c
|
62
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@
|
63
|
+
|
64
|
+
# Rule for keytest
|
65
|
+
keytest.exe: keytest.c
|
66
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) keytest.c $(LFLAGS) -lm -o $@
|
67
|
+
|
68
|
+
# Rule for gears
|
69
|
+
gears.exe: gears.c
|
70
|
+
$(TARGET)$(CC) $(CFLAGS) $(CONSOLE) gears.c $(LFLAGS) -lm -o $@
|
71
|
+
|
72
|
+
# Rule for boing
|
73
|
+
boing.exe: boing.c
|
74
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@
|
75
|
+
|
76
|
+
# Rule for wave
|
77
|
+
wave.exe: wave.c
|
78
|
+
$(TARGET)$(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@
|
79
|
+
|
@@ -0,0 +1,79 @@
|
|
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
|
+
# Compiler settings
|
9
|
+
CC = gcc
|
10
|
+
CFLAGS = -I../include -Wall -mwin32 -O3 -ffast-math
|
11
|
+
#CFLAGS = -I../include -Wall -mwin32 -O3 -ffast-math -DGLFW_DLL
|
12
|
+
|
13
|
+
# Linker settings
|
14
|
+
LFLAGS = -mno-cygwin -mwindows -L../lib/win32 -lglfw -lglu32 -lopengl32 -lm -s
|
15
|
+
#LFLAGS = -L../lib/win32 -lglfwdll -lglu32 -lopengl32 -lm -s
|
16
|
+
|
17
|
+
# Subsystem settings
|
18
|
+
WINDOWS = -mno-cygwin -mwindows -e _mainCRTStartup
|
19
|
+
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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
clean:
|
29
|
+
@rm -f *.o *.obj *.tds *.exe
|
30
|
+
|
31
|
+
|
32
|
+
# Rule for triangle
|
33
|
+
triangle.exe: triangle.c
|
34
|
+
$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@
|
35
|
+
|
36
|
+
# Rule for listmodes
|
37
|
+
listmodes.exe: listmodes.c
|
38
|
+
$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@
|
39
|
+
|
40
|
+
# Rule for mthello
|
41
|
+
mthello.exe: mthello.c
|
42
|
+
$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@
|
43
|
+
|
44
|
+
# Rule for pong3d
|
45
|
+
pong3d.exe: pong3d.c
|
46
|
+
$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -o $@
|
47
|
+
|
48
|
+
# Rule for mtbench
|
49
|
+
mtbench.exe: mtbench.c
|
50
|
+
$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@
|
51
|
+
|
52
|
+
# Rule for particles
|
53
|
+
particles.exe: particles.c
|
54
|
+
$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -o $@
|
55
|
+
|
56
|
+
# Rule for splitview
|
57
|
+
splitview.exe: splitview.c
|
58
|
+
$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -o $@
|
59
|
+
|
60
|
+
# Rule for mipmaps
|
61
|
+
mipmaps.exe: mipmaps.c
|
62
|
+
$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -o $@
|
63
|
+
|
64
|
+
# Rule for keytest
|
65
|
+
keytest.exe: keytest.c
|
66
|
+
$(CC) $(CFLAGS) $(CONSOLE) keytest.c $(LFLAGS) -o $@
|
67
|
+
|
68
|
+
# Rule for gears
|
69
|
+
gears.exe: gears.c
|
70
|
+
$(CC) $(CFLAGS) $(CONSOLE) gears.c $(LFLAGS) -o $@
|
71
|
+
|
72
|
+
# Rule for boing
|
73
|
+
boing.exe: boing.c
|
74
|
+
$(CC) $(CFLAGS) $(CONSOLE) boing.c $(LFLAGS) -o $@
|
75
|
+
|
76
|
+
# Rule for wave
|
77
|
+
wave.exe: wave.c
|
78
|
+
$(CC) $(CFLAGS) $(CONSOLE) wave.c $(LFLAGS) -o $@
|
79
|
+
|
@@ -0,0 +1,74 @@
|
|
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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
# Rule for triangle
|
29
|
+
triangle.exe: triangle.c
|
30
|
+
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
31
|
+
|
32
|
+
# Rule for listmodes
|
33
|
+
listmodes.exe: listmodes.c
|
34
|
+
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
35
|
+
|
36
|
+
# Rule for mthello
|
37
|
+
mthello.exe: mthello.c
|
38
|
+
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
39
|
+
|
40
|
+
# Rule for pong3d
|
41
|
+
pong3d.exe: pong3d.c
|
42
|
+
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
43
|
+
|
44
|
+
# Rule for mtbench
|
45
|
+
mtbench.exe: mtbench.c
|
46
|
+
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
47
|
+
|
48
|
+
# Rule for particles
|
49
|
+
particles.exe: particles.c
|
50
|
+
$(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
51
|
+
|
52
|
+
# Rule for splitview
|
53
|
+
splitview.exe: splitview.c
|
54
|
+
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
55
|
+
|
56
|
+
# Rule for mipmaps
|
57
|
+
mipmaps.exe: mipmaps.c
|
58
|
+
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
59
|
+
|
60
|
+
# Rule for keytest
|
61
|
+
keytest.exe: keytest.c
|
62
|
+
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
63
|
+
|
64
|
+
# Rule for gears
|
65
|
+
gears.exe: gears.c
|
66
|
+
$(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ -s $(CONSOLE)
|
67
|
+
|
68
|
+
# Rule for boing
|
69
|
+
boing.exe: boing.c
|
70
|
+
$(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
71
|
+
|
72
|
+
# Rule for wave
|
73
|
+
wave.exe: wave.c
|
74
|
+
$(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ -s $(WINDOWS)
|
@@ -0,0 +1,75 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on Windows using MinGW32.
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# To compile the test files using this makefile, run:
|
5
|
+
# make -f Makefile.win32.mgw
|
6
|
+
##########################################################################
|
7
|
+
|
8
|
+
# Compiler settings
|
9
|
+
CC = gcc
|
10
|
+
CFLAGS = -I../include -Wall -O3 -ffast-math
|
11
|
+
#CFLAGS = -I../include -Wall -O3 -ffast-math -DGLFW_DLL
|
12
|
+
|
13
|
+
# Linker settings
|
14
|
+
LFLAGS = -L../lib/win32 -lglfw -lglu32 -lopengl32 -s
|
15
|
+
#LFLAGS = -L../lib/win32 -lglfwdll -lglu32 -lopengl32 -s
|
16
|
+
|
17
|
+
# Subsystem settings
|
18
|
+
WINDOWS = -mwindows
|
19
|
+
CONSOLE = -mconsole
|
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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
# Rule for triangle
|
29
|
+
triangle.exe: triangle.c
|
30
|
+
$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@
|
31
|
+
|
32
|
+
# Rule for listmodes
|
33
|
+
listmodes.exe: listmodes.c
|
34
|
+
$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@
|
35
|
+
|
36
|
+
# Rule for mthello
|
37
|
+
mthello.exe: mthello.c
|
38
|
+
$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@
|
39
|
+
|
40
|
+
# Rule for pong3d
|
41
|
+
pong3d.exe: pong3d.c
|
42
|
+
$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@
|
43
|
+
|
44
|
+
# Rule for mtbench
|
45
|
+
mtbench.exe: mtbench.c
|
46
|
+
$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@
|
47
|
+
|
48
|
+
# Rule for particles
|
49
|
+
particles.exe: particles.c
|
50
|
+
$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@
|
51
|
+
|
52
|
+
# Rule for splitview
|
53
|
+
splitview.exe: splitview.c
|
54
|
+
$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@
|
55
|
+
|
56
|
+
# Rule for mipmaps
|
57
|
+
mipmaps.exe: mipmaps.c
|
58
|
+
$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@
|
59
|
+
|
60
|
+
# Rule for keytest
|
61
|
+
keytest.exe: keytest.c
|
62
|
+
$(CC) $(CFLAGS) $(CONSOLE) keytest.c $(LFLAGS) -lm -o $@
|
63
|
+
|
64
|
+
# Rule for gears
|
65
|
+
gears.exe: gears.c
|
66
|
+
$(CC) $(CFLAGS) $(CONSOLE) gears.c $(LFLAGS) -lm -o $@
|
67
|
+
|
68
|
+
# Rule for boing
|
69
|
+
boing.exe: boing.c
|
70
|
+
$(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@
|
71
|
+
|
72
|
+
# Rule for wave
|
73
|
+
wave.exe: wave.c
|
74
|
+
$(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@
|
75
|
+
|
@@ -0,0 +1,74 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on Windows using MS VC++ 6.x.
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# To compile the test files using this makefile, run:
|
5
|
+
# nmake -f Makefile.win32.msvc
|
6
|
+
##########################################################################
|
7
|
+
|
8
|
+
# Compiler settings
|
9
|
+
CC = cl
|
10
|
+
CFLAGS = /nologo /Ox /I..\\include
|
11
|
+
#CFLAGS = /nologo /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 = /link /subsystem:windows /entry:mainCRTStartup
|
19
|
+
CONSOLE = /link /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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
# Rule for triangle
|
29
|
+
triangle.exe: triangle.c
|
30
|
+
$(CC) $(CFLAGS) /Fe$@ triangle.c $(LFLAGS) $(WINDOWS)
|
31
|
+
|
32
|
+
# Rule for listmodes
|
33
|
+
listmodes.exe: listmodes.c
|
34
|
+
$(CC) $(CFLAGS) /Fe$@ listmodes.c $(LFLAGS) $(CONSOLE)
|
35
|
+
|
36
|
+
# Rule for mthello
|
37
|
+
mthello.exe: mthello.c
|
38
|
+
$(CC) $(CFLAGS) /Fe$@ mthello.c $(LFLAGS) $(CONSOLE)
|
39
|
+
|
40
|
+
# Rule for pong3d
|
41
|
+
pong3d.exe: pong3d.c
|
42
|
+
$(CC) $(CFLAGS) /Fe$@ pong3d.c $(LFLAGS) $(WINDOWS)
|
43
|
+
|
44
|
+
# Rule for mtbench
|
45
|
+
mtbench.exe: mtbench.c
|
46
|
+
$(CC) $(CFLAGS) /Fe$@ mtbench.c $(LFLAGS) $(CONSOLE)
|
47
|
+
|
48
|
+
# Rule for particles
|
49
|
+
particles.exe: particles.c
|
50
|
+
$(CC) $(CFLAGS) /Fe$@ particles.c $(LFLAGS) $(CONSOLE)
|
51
|
+
|
52
|
+
# Rule for splitview
|
53
|
+
splitview.exe: splitview.c
|
54
|
+
$(CC) $(CFLAGS) /Fe$@ splitview.c $(LFLAGS) $(WINDOWS)
|
55
|
+
|
56
|
+
# Rule for mipmaps
|
57
|
+
mipmaps.exe: mipmaps.c
|
58
|
+
$(CC) $(CFLAGS) /Fe$@ mipmaps.c $(LFLAGS) $(WINDOWS)
|
59
|
+
|
60
|
+
# Rule for keytest
|
61
|
+
keytest.exe: keytest.c
|
62
|
+
$(CC) $(CFLAGS) /Fe$@ keytest.c $(LFLAGS) $(CONSOLE)
|
63
|
+
|
64
|
+
# Rule for gears
|
65
|
+
gears.exe: gears.c
|
66
|
+
$(CC) $(CFLAGS) /Fe$@ gears.c $(LFLAGS) $(CONSOLE)
|
67
|
+
|
68
|
+
# Rule for boing
|
69
|
+
boing.exe: boing.c
|
70
|
+
$(CC) $(CFLAGS) /Fe$@ boing.c $(LFLAGS) $(WINDOWS)
|
71
|
+
|
72
|
+
# Rule for wave
|
73
|
+
wave.exe: wave.c
|
74
|
+
$(CC) $(CFLAGS) /Fe$@ wave.c $(LFLAGS) $(WINDOWS)
|
@@ -0,0 +1,74 @@
|
|
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 keytest.exe gears.exe \
|
25
|
+
boing.exe wave.exe
|
26
|
+
|
27
|
+
|
28
|
+
# Rule for triangle
|
29
|
+
triangle.exe: triangle.c
|
30
|
+
$(CC) $(CFLAGS) /Fe$@ triangle.c $(LFLAGS) $(WINDOWS)
|
31
|
+
|
32
|
+
# Rule for listmodes
|
33
|
+
listmodes.exe: listmodes.c
|
34
|
+
$(CC) $(CFLAGS) /Fe$@ listmodes.c $(LFLAGS) $(CONSOLE)
|
35
|
+
|
36
|
+
# Rule for mthello
|
37
|
+
mthello.exe: mthello.c
|
38
|
+
$(CC) $(CFLAGS) /Fe$@ mthello.c $(LFLAGS) $(CONSOLE)
|
39
|
+
|
40
|
+
# Rule for pong3d
|
41
|
+
pong3d.exe: pong3d.c
|
42
|
+
$(CC) $(CFLAGS) /Fe$@ pong3d.c $(LFLAGS) $(WINDOWS)
|
43
|
+
|
44
|
+
# Rule for mtbench
|
45
|
+
mtbench.exe: mtbench.c
|
46
|
+
$(CC) $(CFLAGS) /Fe$@ mtbench.c $(LFLAGS) $(CONSOLE)
|
47
|
+
|
48
|
+
# Rule for particles
|
49
|
+
particles.exe: particles.c
|
50
|
+
$(CC) $(CFLAGS) /Fe$@ particles.c $(LFLAGS) $(CONSOLE)
|
51
|
+
|
52
|
+
# Rule for splitview
|
53
|
+
splitview.exe: splitview.c
|
54
|
+
$(CC) $(CFLAGS) /Fe$@ splitview.c $(LFLAGS) $(WINDOWS)
|
55
|
+
|
56
|
+
# Rule for mipmaps
|
57
|
+
mipmaps.exe: mipmaps.c
|
58
|
+
$(CC) $(CFLAGS) /Fe$@ mipmaps.c $(LFLAGS) $(WINDOWS)
|
59
|
+
|
60
|
+
# Rule for keytest
|
61
|
+
keytest.exe: keytest.c
|
62
|
+
$(CC) $(CFLAGS) /Fe$@ keytest.c $(LFLAGS) $(CONSOLE)
|
63
|
+
|
64
|
+
# Rule for gears
|
65
|
+
gears.exe: gears.c
|
66
|
+
$(CC) $(CFLAGS) /Fe$@ gears.c $(LFLAGS) $(CONSOLE)
|
67
|
+
|
68
|
+
# Rule for boing
|
69
|
+
boing.exe: boing.c
|
70
|
+
$(CC) $(CFLAGS) /Fe$@ boing.c $(LFLAGS) $(WINDOWS)
|
71
|
+
|
72
|
+
# Rule for wave
|
73
|
+
wave.exe: wave.c
|
74
|
+
$(CC) $(CFLAGS) /Fe$@ wave.c $(LFLAGS) $(WINDOWS)
|