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,80 @@
|
|
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
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on AmigaOS using GCC.
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# To compile the test files using this makefile, run:
|
5
|
+
# make -f Makefile.amigaos.gcc
|
6
|
+
##########################################################################
|
7
|
+
|
8
|
+
# Default: Build all tests
|
9
|
+
default: triangle listmodes mthello pong3d mtbench \
|
10
|
+
particles splitview mipmaps keytest gears \
|
11
|
+
boing wave
|
12
|
+
|
13
|
+
|
14
|
+
# Compiler settings
|
15
|
+
CC = gcc
|
16
|
+
CFLAGS = -noixemul -I../include -Wall -O3 -ffast-math -m68020 -m68881
|
17
|
+
|
18
|
+
# Linker settings
|
19
|
+
LFLAGS = -L../lib/amigaos -lm -lglfw -lgl -lamiga -s
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
# Rule for triangle
|
25
|
+
triangle: triangle.c
|
26
|
+
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@
|
27
|
+
|
28
|
+
# Rule for listmodes
|
29
|
+
listmodes: listmodes.c
|
30
|
+
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@
|
31
|
+
|
32
|
+
# Rule for mthello
|
33
|
+
mthello: mthello.c
|
34
|
+
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@
|
35
|
+
|
36
|
+
# Rule for pong3d
|
37
|
+
pong3d: pong3d.c
|
38
|
+
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@
|
39
|
+
|
40
|
+
# Rule for mtbench
|
41
|
+
mtbench: mtbench.c
|
42
|
+
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@
|
43
|
+
|
44
|
+
# Rule for particles
|
45
|
+
particles: particles.c
|
46
|
+
$(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@
|
47
|
+
|
48
|
+
# Rule for splitview
|
49
|
+
splitview: splitview.c
|
50
|
+
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@
|
51
|
+
|
52
|
+
# Rule for mipmaps
|
53
|
+
mipmaps: mipmaps.c
|
54
|
+
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@
|
55
|
+
|
56
|
+
# Rule for keytest
|
57
|
+
keytest: keytest.c
|
58
|
+
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -o $@
|
59
|
+
|
60
|
+
# Rule for gears
|
61
|
+
gears: gears.c
|
62
|
+
$(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@
|
63
|
+
|
64
|
+
# Rule for boing
|
65
|
+
boing: boing.c
|
66
|
+
$(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@
|
67
|
+
|
68
|
+
# Rule for wave
|
69
|
+
wave: wave.c
|
70
|
+
$(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@
|
@@ -0,0 +1,70 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on AmigaOS using VBCC.
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# To compile the test files using this makefile, run:
|
5
|
+
# make -f Makefile.amigaos.vbcc
|
6
|
+
##########################################################################
|
7
|
+
|
8
|
+
# Default: Build all tests
|
9
|
+
default: triangle listmodes mthello pong3d mtbench \
|
10
|
+
particles splitview mipmaps keytest gears \
|
11
|
+
boing wave
|
12
|
+
|
13
|
+
|
14
|
+
# Compiler settings
|
15
|
+
CC = vc
|
16
|
+
CFLAGS = -I/include -O1 -c99 -cpu=68020 -fpu=68881
|
17
|
+
|
18
|
+
# Linker settings
|
19
|
+
LFLAGS = -L/lib/amigaos -lglfw -lgl -lamiga -lm881
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
# Rule for triangle
|
25
|
+
triangle: triangle.c
|
26
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ triangle.c
|
27
|
+
|
28
|
+
# Rule for listmodes
|
29
|
+
listmodes: listmodes.c
|
30
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ listmodes.c
|
31
|
+
|
32
|
+
# Rule for mthello
|
33
|
+
mthello: mthello.c
|
34
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ mthello.c
|
35
|
+
|
36
|
+
# Rule for pong3d
|
37
|
+
pong3d: pong3d.c
|
38
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ pong3d.c
|
39
|
+
|
40
|
+
# Rule for mtbench
|
41
|
+
mtbench: mtbench.c
|
42
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ mtbench.c
|
43
|
+
|
44
|
+
# Rule for particles
|
45
|
+
particles: particles.c
|
46
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ particles.c
|
47
|
+
|
48
|
+
# Rule for splitview
|
49
|
+
splitview: splitview.c
|
50
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ splitview.c
|
51
|
+
|
52
|
+
# Rule for mipmaps
|
53
|
+
mipmaps: mipmaps.c
|
54
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ mipmaps.c
|
55
|
+
|
56
|
+
# Rule for keytest
|
57
|
+
keytest: keytest.c
|
58
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ keytest.c
|
59
|
+
|
60
|
+
# Rule for gears
|
61
|
+
gears: gears.c
|
62
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ gears.c
|
63
|
+
|
64
|
+
# Rule for boing
|
65
|
+
boing: boing.c
|
66
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ boing.c
|
67
|
+
|
68
|
+
# Rule for wave
|
69
|
+
wave: wave.c
|
70
|
+
$(CC) $(CFLAGS) $(LFLAGS) -o $@ wave.c
|
@@ -0,0 +1,71 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs under DOS using DJGPP.
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# To compile the test files using this makefile, run:
|
5
|
+
# make -f Makefile.dos.djgpp
|
6
|
+
# NOTE: You need long filename support (e.g. compile under Windows9x or
|
7
|
+
# use a LFN driver such as DOSLFN)
|
8
|
+
##########################################################################
|
9
|
+
|
10
|
+
# Compiler settings
|
11
|
+
CC = gcc
|
12
|
+
CFLAGS = -I../include -Wall -O3 -ffast-math
|
13
|
+
|
14
|
+
# Linker settings
|
15
|
+
LFLAGS = -L../lib/dos -lglfw -lglu -lgl -s
|
16
|
+
|
17
|
+
|
18
|
+
# Default: Build all tests
|
19
|
+
all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \
|
20
|
+
particles.exe splitview.exe mipmaps.exe keytest.exe gears.exe \
|
21
|
+
boing.exe wave.exe
|
22
|
+
|
23
|
+
|
24
|
+
# Rule for triangle
|
25
|
+
triangle.exe: triangle.c
|
26
|
+
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@
|
27
|
+
|
28
|
+
# Rule for listmodes
|
29
|
+
listmodes.exe: listmodes.c
|
30
|
+
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@
|
31
|
+
|
32
|
+
# Rule for mthello
|
33
|
+
mthello.exe: mthello.c
|
34
|
+
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@
|
35
|
+
|
36
|
+
# Rule for pong3d
|
37
|
+
pong3d.exe: pong3d.c
|
38
|
+
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -lm -o $@
|
39
|
+
|
40
|
+
# Rule for mtbench
|
41
|
+
mtbench.exe: mtbench.c
|
42
|
+
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@
|
43
|
+
|
44
|
+
# Rule for particles
|
45
|
+
particles.exe: particles.c
|
46
|
+
$(CC) $(CFLAGS) particles.c $(LFLAGS) -lm -o $@
|
47
|
+
|
48
|
+
# Rule for splitview
|
49
|
+
splitview.exe: splitview.c
|
50
|
+
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -lm -o $@
|
51
|
+
|
52
|
+
# Rule for mipmaps
|
53
|
+
mipmaps.exe: mipmaps.c
|
54
|
+
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -lm -o $@
|
55
|
+
|
56
|
+
# Rule for keytest
|
57
|
+
keytest.exe: keytest.c
|
58
|
+
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -lm -o $@
|
59
|
+
|
60
|
+
# Rule for gears
|
61
|
+
gears.exe: gears.c
|
62
|
+
$(CC) $(CFLAGS) gears.c $(LFLAGS) -lm -o $@
|
63
|
+
|
64
|
+
# Rule for boing
|
65
|
+
boing.exe: boing.c
|
66
|
+
$(CC) $(CFLAGS) boing.c $(LFLAGS) -lm -o $@
|
67
|
+
|
68
|
+
# Rule for wave
|
69
|
+
wave.exe: wave.c
|
70
|
+
$(CC) $(CFLAGS) wave.c $(LFLAGS) -lm -o $@
|
71
|
+
|
@@ -0,0 +1,96 @@
|
|
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.macosx.gcc
|
6
|
+
##########################################################################
|
7
|
+
|
8
|
+
# Compiler settings
|
9
|
+
CC = gcc
|
10
|
+
CFLAGS = -I../include
|
11
|
+
|
12
|
+
# Linker settings
|
13
|
+
LFLAGS = ../lib/macosx/libglfw.a -framework AGL -framework OpenGL -framework Carbon
|
14
|
+
|
15
|
+
# Default: Build all tests
|
16
|
+
all: Triangle.app/Contents/MacOS/GLFWApplication \
|
17
|
+
ListModes.app/Contents/MacOS/GLFWApplication \
|
18
|
+
MTHello.app/Contents/MacOS/GLFWApplication \
|
19
|
+
Pong3D.app/Contents/MacOS/GLFWApplication \
|
20
|
+
MTBench.app/Contents/MacOS/GLFWApplication \
|
21
|
+
Particles.app/Contents/MacOS/GLFWApplication \
|
22
|
+
SplitView.app/Contents/MacOS/GLFWApplication \
|
23
|
+
Mipmaps.app/Contents/MacOS/GLFWApplication \
|
24
|
+
KeyTest.app/Contents/MacOS/GLFWApplication \
|
25
|
+
Gears.app/Contents/MacOS/GLFWApplication \
|
26
|
+
Boing.app/Contents/MacOS/GLFWApplication \
|
27
|
+
Wave.app/Contents/MacOS/GLFWApplication
|
28
|
+
|
29
|
+
# Rule for triangle
|
30
|
+
Triangle.app/Contents/MacOS/GLFWApplication: triangle.c
|
31
|
+
/bin/sh bundle.sh Triangle
|
32
|
+
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o Triangle.app/Contents/MacOS/Triangle
|
33
|
+
|
34
|
+
# Rule for listmodes
|
35
|
+
ListModes.app/Contents/MacOS/GLFWApplication: listmodes.c
|
36
|
+
/bin/sh bundle.sh ListModes
|
37
|
+
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o ListModes.app/Contents/MacOS/ListModes
|
38
|
+
|
39
|
+
# Rule for mthello
|
40
|
+
MTHello.app/Contents/MacOS/GLFWApplication: mthello.c
|
41
|
+
/bin/sh bundle.sh MTHello
|
42
|
+
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o MTHello.app/Contents/MacOS/MTHello
|
43
|
+
|
44
|
+
# Rule for pong3d
|
45
|
+
Pong3D.app/Contents/MacOS/GLFWApplication: pong3d.c
|
46
|
+
/bin/sh bundle.sh Pong3D
|
47
|
+
cp pong3d_*.tga Pong3D.app/Contents/Resources/
|
48
|
+
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o Pong3D.app/Contents/MacOS/Pong3D
|
49
|
+
|
50
|
+
# Rule for mtbench
|
51
|
+
MTBench.app/Contents/MacOS/GLFWApplication: mtbench.c
|
52
|
+
/bin/sh bundle.sh MTBench
|
53
|
+
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o MTBench.app/Contents/MacOS/MTBench
|
54
|
+
|
55
|
+
# Rule for particles
|
56
|
+
Particles.app/Contents/MacOS/GLFWApplication: particles.c
|
57
|
+
/bin/sh bundle.sh Particles
|
58
|
+
$(CC) $(CFLAGS) particles.c $(LFLAGS) -o Particles.app/Contents/MacOS/Particles
|
59
|
+
|
60
|
+
# Rule for splitview
|
61
|
+
SplitView.app/Contents/MacOS/GLFWApplication: splitview.c
|
62
|
+
/bin/sh bundle.sh SplitView
|
63
|
+
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -o SplitView.app/Contents/MacOS/SplitView
|
64
|
+
|
65
|
+
# Rule for mipmaps
|
66
|
+
Mipmaps.app/Contents/MacOS/GLFWApplication: mipmaps.c
|
67
|
+
/bin/sh bundle.sh Mipmaps
|
68
|
+
cp mipmaps.tga Mipmaps.app/Contents/Resources/
|
69
|
+
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o Mipmaps.app/Contents/MacOS/Mipmaps
|
70
|
+
|
71
|
+
# Rule for keytest
|
72
|
+
KeyTest.app/Contents/MacOS/GLFWApplication: keytest.c
|
73
|
+
/bin/sh bundle.sh KeyTest
|
74
|
+
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -o KeyTest.app/Contents/MacOS/KeyTest
|
75
|
+
|
76
|
+
# Rule for gears
|
77
|
+
Gears.app/Contents/MacOS/GLFWApplication: gears.c
|
78
|
+
/bin/sh bundle.sh Gears
|
79
|
+
$(CC) $(CFLAGS) gears.c $(LFLAGS) -o Gears.app/Contents/MacOS/Gears
|
80
|
+
|
81
|
+
# Rule for boing
|
82
|
+
Boing.app/Contents/MacOS/GLFWApplication: boing.c
|
83
|
+
/bin/sh bundle.sh Boing
|
84
|
+
$(CC) $(CFLAGS) boing.c $(LFLAGS) -o Boing.app/Contents/MacOS/Boing
|
85
|
+
|
86
|
+
# Rule for wave
|
87
|
+
Wave.app/Contents/MacOS/GLFWApplication: wave.c
|
88
|
+
/bin/sh bundle.sh Wave
|
89
|
+
$(CC) $(CFLAGS) wave.c $(LFLAGS) -o Wave.app/Contents/MacOS/Wave
|
90
|
+
|
91
|
+
|
92
|
+
# Clean
|
93
|
+
clean:
|
94
|
+
rm -rf Triangle.app ListModes.app MTHello.app Pong3D.app MTBench.app \
|
95
|
+
Particles.app SplitView.app Mipmaps.app KeyTest.app Gears.app Boing.app Wave.app
|
96
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
##########################################################################
|
2
|
+
# Makefile for GLFW test programs on Windows using Borland C++ Builder
|
3
|
+
# Compiler 5.x.
|
4
|
+
#-------------------------------------------------------------------------
|
5
|
+
# To compile the test files using this makefile, run:
|
6
|
+
# make -f Makefile.win32.bcc
|
7
|
+
##########################################################################
|
8
|
+
|
9
|
+
# Compiler settings
|
10
|
+
CC = bcc32
|
11
|
+
CFLAGS = -O2 -OS -Ov -q -w-par -I..\\include
|
12
|
+
#CFLAGS = -O2 -OS -Ov -q -w-par -I..\\include -DGLFW_DLL
|
13
|
+
|
14
|
+
# Linker settings
|
15
|
+
LFLAGS = ..\\lib\\win32\\glfw.lib opengl32.lib glu32.lib
|
16
|
+
#LFLAGS = ..\\lib\\win32\\glfwdll.lib opengl32.lib glu32.lib
|
17
|
+
|
18
|
+
# Subsystem settings
|
19
|
+
WINDOWS = -tW -Dmain="__stdcall WinMain"
|
20
|
+
CONSOLE = -tWC
|
21
|
+
|
22
|
+
|
23
|
+
# Default: Build all tests
|
24
|
+
all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \
|
25
|
+
particles.exe splitview.exe mipmaps.exe keytest.exe gears.exe \
|
26
|
+
boing.exe wave.exe
|
27
|
+
|
28
|
+
|
29
|
+
# Rule for triangle
|
30
|
+
triangle.exe: triangle.c
|
31
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) triangle.c $(LFLAGS)
|
32
|
+
|
33
|
+
# Rule for listmodes
|
34
|
+
listmodes.exe: listmodes.c
|
35
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) listmodes.c $(LFLAGS)
|
36
|
+
|
37
|
+
# Rule for mthello
|
38
|
+
mthello.exe: mthello.c
|
39
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) mthello.c $(LFLAGS)
|
40
|
+
|
41
|
+
# Rule for pong3d
|
42
|
+
pong3d.exe: pong3d.c
|
43
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) pong3d.c $(LFLAGS)
|
44
|
+
|
45
|
+
# Rule for mtbench
|
46
|
+
mtbench.exe: mtbench.c
|
47
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) mtbench.c $(LFLAGS)
|
48
|
+
|
49
|
+
# Rule for particles
|
50
|
+
particles.exe: particles.c
|
51
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) particles.c $(LFLAGS)
|
52
|
+
|
53
|
+
# Rule for splitview
|
54
|
+
splitview.exe: splitview.c
|
55
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) splitview.c $(LFLAGS)
|
56
|
+
|
57
|
+
# Rule for mipmaps
|
58
|
+
mipmaps.exe: mipmaps.c
|
59
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) mipmaps.c $(LFLAGS)
|
60
|
+
|
61
|
+
# Rule for keytest
|
62
|
+
keytest.exe: keytest.c
|
63
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) keytest.c $(LFLAGS)
|
64
|
+
|
65
|
+
# Rule for gears
|
66
|
+
gears.exe: gears.c
|
67
|
+
$(CC) $(CFLAGS) -e$@ $(CONSOLE) gears.c $(LFLAGS)
|
68
|
+
|
69
|
+
# Rule for boing
|
70
|
+
boing.exe: boing.c
|
71
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) boing.c $(LFLAGS)
|
72
|
+
|
73
|
+
# Rule for wave
|
74
|
+
wave.exe: wave.c
|
75
|
+
$(CC) $(CFLAGS) -e$@ $(WINDOWS) wave.c $(LFLAGS)
|