Compare commits
345 Commits
rotating_g
...
jump_and_c
Author | SHA1 | Date | |
---|---|---|---|
|
5dd4030e76 | ||
|
6d419feec7 | ||
|
88e155e353 | ||
|
d4697b0997 | ||
|
4a3c6095fc | ||
|
0ab7fb56f5 | ||
|
c2803587b6 | ||
|
ba09c19ed6 | ||
|
886280763c | ||
|
fc4cabbfa8 | ||
|
e61c8a5c63 | ||
|
9c1773e505 | ||
|
15f108335a | ||
|
0cd936c01f | ||
|
b55117042f | ||
|
29d021cd31 | ||
|
3aa69b39bf | ||
|
5ff53cb448 | ||
|
9ff3c49ef2 | ||
|
941d6b008f | ||
|
3bde211549 | ||
|
98a9ad9241 | ||
|
371f576731 | ||
|
58f4d67703 | ||
|
c84cde7b0b | ||
|
fbb478c946 | ||
|
16c3c74018 | ||
|
8d27148bbd | ||
|
54584df8cc | ||
|
20b8d9c1b9 | ||
|
fdb0527ddc | ||
|
1fca563232 | ||
|
b365d28627 | ||
|
e451a95ecc | ||
|
f856b3f10f | ||
|
6398a97aff | ||
|
82e22f50f1 | ||
|
d773598224 | ||
|
5aa6dc329b | ||
|
5b0dd89370 | ||
|
a205137423 | ||
|
7104ce0a0e | ||
|
914746b400 | ||
|
0cbc25480f | ||
|
8f029f175e | ||
|
7c58a00a50 | ||
|
d01292bc54 | ||
|
b07390c8fd | ||
|
38e6e09cb8 | ||
|
e4d41524a2 | ||
|
f106493d8b | ||
|
01ec76dbd5 | ||
|
85f0fa3761 | ||
|
cb59bd44db | ||
|
00772ac42f | ||
|
ad15f1bdea | ||
|
5ff2b94630 | ||
|
0246b2a5c0 | ||
|
7f958e9e11 | ||
|
f9f2db5132 | ||
|
d7d54423a8 | ||
|
5c6b391900 | ||
|
428a5e82fc | ||
|
c74ffb8266 | ||
|
72e3664996 | ||
|
0b5a5a9efb | ||
|
4ced594aa8 | ||
|
cb77dcf0b9 | ||
|
150ed2e43d | ||
|
999534216d | ||
|
e82d5f2be9 | ||
|
8736c228cb | ||
|
3b50f00433 | ||
|
36a35c5614 | ||
|
8fca9bdc35 | ||
|
f4cafc8d13 | ||
|
4ac53aed6c | ||
|
1060211918 | ||
|
308fbb7b64 | ||
|
8346c5ee1d | ||
|
b39665950e | ||
|
e51b0b1d30 | ||
|
fa15f6c840 | ||
|
677d1d07c4 | ||
|
14dee36fa7 | ||
|
edb9a165c1 | ||
|
ddfa61ee19 | ||
|
cb3bc2c49a | ||
|
ea2943efd9 | ||
|
36da0459e4 | ||
|
10378919d7 | ||
|
31fb7648fc | ||
|
4f6d9aaa9a | ||
|
42fee73aad | ||
|
140f99f81c | ||
|
7948bc02ed | ||
|
4ef0e046ec | ||
|
2aa34ea984 | ||
|
bdb5725bab | ||
|
6931087958 | ||
|
520e56f232 | ||
|
c98323bd89 | ||
|
9ebce91a66 | ||
|
59c2e16e75 | ||
|
c47d19a1a2 | ||
|
41db4e1be5 | ||
|
95be63771a | ||
|
4cfd97e3a8 | ||
|
c57a312978 | ||
|
fa32c92ea5 | ||
|
a885c7a6e0 | ||
|
619f006bba | ||
|
955190fbad | ||
|
092af29ea1 | ||
|
af72b4dd8e | ||
|
7443c2caa6 | ||
|
db99b8b29d | ||
|
ea28a5b5b3 | ||
|
730fabd67a | ||
|
7d079fd780 | ||
|
cc9ab78158 | ||
|
434f622ede | ||
|
0a7ea2b0c3 | ||
|
389e292a1b | ||
|
ff39c65dee | ||
|
714c36c120 | ||
|
d98c47300a | ||
|
6a432a7c50 | ||
|
a6ddd2494a | ||
|
0a360cfab5 | ||
|
848ff85157 | ||
|
fc3028d2c7 | ||
|
6c58ddae17 | ||
|
b4199a1f71 | ||
|
5255044c00 | ||
|
169a723d2b | ||
|
c07ec046b7 | ||
|
14aea4a485 | ||
|
781d512a0b | ||
|
82d1421736 | ||
|
ad360a81bd | ||
|
ca710a0a7f | ||
|
76de160b64 | ||
|
b5f49e6f91 | ||
|
c478a09a5b | ||
|
dbb3ec35a7 | ||
|
ffe7496ac3 | ||
|
afa05e68b8 | ||
|
4ccee80190 | ||
|
faf96a157d | ||
|
42cfcce8d4 | ||
|
38595eda39 | ||
|
96d375c682 | ||
|
404273ad09 | ||
|
0c68589673 | ||
|
aa7a27b38e | ||
|
7da875d55f | ||
|
f4bff83c32 | ||
|
52f5ff525b | ||
|
517ac1bf25 | ||
|
2821b05a0f | ||
|
d2001bd88f | ||
|
f11d6d4cb4 | ||
|
288114b9db | ||
|
a7ab2b2e0b | ||
|
b1d322a1e7 | ||
|
c06f8cb9e5 | ||
|
a0371b0b3c | ||
|
d9af44f358 | ||
|
edd21a6f72 | ||
|
db19ae89f2 | ||
|
436f4bbd62 | ||
|
7f3e2dac7a | ||
|
302a414b34 | ||
|
01d38cdf0c | ||
|
6324f73b93 | ||
|
8b7cc45f3d | ||
|
b05e75bf69 | ||
|
3d52858c78 | ||
|
0e85388ba8 | ||
|
9b3752c8ab | ||
|
8f8534f691 | ||
|
df14522540 | ||
|
5bd6a5f2df | ||
|
db93e6165e | ||
|
d4330fc322 | ||
|
d456ef48e5 | ||
|
3ff4eca05c | ||
|
cce4d5cb70 | ||
|
88440d2d75 | ||
|
8e5281fbe1 | ||
|
0aca086f7a | ||
|
8e46534b3b | ||
|
118b82145a | ||
|
f9b89910d1 | ||
|
7ea2084513 | ||
|
4676a6ab7b | ||
|
2937d403db | ||
|
708e25142b | ||
|
5ba7d85fea | ||
|
09ac1d1125 | ||
|
26dcb88fb9 | ||
|
a9531eb2c5 | ||
|
d7b837ad4a | ||
|
2a34e66d6a | ||
|
a9e34c68ac | ||
|
591b72b6a9 | ||
|
ff04e50e2e | ||
|
d24e49f301 | ||
|
5b28844dba | ||
|
3bd6e3d532 | ||
|
5b5e6cc120 | ||
|
aac4d8857a | ||
|
8e039bf40a | ||
|
f29aaf80a4 | ||
|
cdb6541634 | ||
|
43343913b9 | ||
|
b13eaf2698 | ||
|
51365b2d0d | ||
|
0275d921ac | ||
|
94dd520210 | ||
|
5358682aa7 | ||
|
0cb0a36d8c | ||
|
d5432ac584 | ||
|
864137984a | ||
|
086ca3dffb | ||
|
dd4837502c | ||
|
14e98b7d7c | ||
|
ff53a4ee13 | ||
|
86f1439f82 | ||
|
9db66a3f9f | ||
|
eaf2b170ff | ||
|
574f3c7daf | ||
|
a887a44b2d | ||
|
8c231d2e28 | ||
|
6867117b58 | ||
|
5f61c6f21f | ||
|
8ad31013b2 | ||
|
e9acd0ca5f | ||
|
527af7571e | ||
|
612bf1fa2e | ||
|
7a663b315e | ||
|
a00c591511 | ||
|
a4a31c5d76 | ||
|
2d84ed83c4 | ||
|
92eddb0fd4 | ||
|
516f9bc6e3 | ||
|
575d24a5ff | ||
|
0fe7f406be | ||
|
b58091a336 | ||
|
429efa9f00 | ||
|
1b058a06c2 | ||
|
c1065ee977 | ||
|
0261042beb | ||
|
b45ce5c607 | ||
|
e4499ed276 | ||
|
675b92515a | ||
|
1074eae704 | ||
|
ccaa15a081 | ||
|
f1481aa2d7 | ||
|
f0e4f5e556 | ||
|
ae73b3d5ed | ||
|
fa1362241b | ||
|
5fff0c135d | ||
|
5911d87315 | ||
|
e0be62e2c5 | ||
|
85243b8120 | ||
|
b3d772bd9a | ||
|
5cd24d4dc2 | ||
|
8764441b58 | ||
|
000dd4afe2 | ||
|
1837dda4d8 | ||
|
a11659adaf | ||
|
0f34f3efb8 | ||
|
a285acbbef | ||
|
70d2f152f8 | ||
|
5f1f229f8d | ||
|
3385d7cec3 | ||
|
ba5ceda7e0 | ||
|
7e3379b1a0 | ||
|
71fc6a3fc9 | ||
|
1f98ee9022 | ||
|
8bb717d2d5 | ||
|
a61ee65910 | ||
|
a2db56b34b | ||
|
9f149bf206 | ||
|
d401faf877 | ||
|
4c1d373ce1 | ||
|
dd1ef7c0d7 | ||
|
5135d37813 | ||
|
ed1fc20199 | ||
|
9b7367154b | ||
|
994d5cc5f4 | ||
|
7047cb08eb | ||
|
50122c9d2d | ||
|
e09c843c13 | ||
|
91538b4432 | ||
|
dbc125eede | ||
|
7b51aa54be | ||
|
3e4d4aca77 | ||
|
1e21673ea1 | ||
|
ee2761f2f3 | ||
|
699fc6baf9 | ||
|
609e54820c | ||
|
99fc261c47 | ||
|
dd9666bc1d | ||
|
30f6486276 | ||
|
830e046972 | ||
|
e3fe80a60f | ||
|
9a8a9fb01f | ||
|
d5b1605449 | ||
|
380ba2daec | ||
|
e99f390ff6 | ||
|
065f725672 | ||
|
6b185aaedf | ||
|
55ee1daaf9 | ||
|
638faa92fc | ||
|
85edffd5ff | ||
|
932dee87e3 | ||
|
bdbdab837e | ||
|
6650264802 | ||
|
31c25f2edc | ||
|
e024cae14b | ||
|
b6ab7a1bf1 | ||
|
f72e4424d9 | ||
|
e3748eb19b | ||
|
87889aeab4 | ||
|
3276c192b7 | ||
|
dd1a817c50 | ||
|
a5039af357 | ||
|
8e73b14228 | ||
|
81ca616e7e | ||
|
6563c16e38 | ||
|
25faa2d56e | ||
|
63473a8e76 | ||
|
2fc9351ee7 | ||
|
63fd67e561 | ||
|
f50a1964d1 | ||
|
d6be8dd651 | ||
|
9a04b25c60 | ||
|
3c80f5c56b | ||
|
7a231da442 | ||
|
1067ce0cea | ||
|
467d64a177 | ||
|
404d925b58 |
28
Makefile
28
Makefile
@@ -33,7 +33,11 @@ realclean:
|
||||
|
||||
install:
|
||||
@echo "Installing"
|
||||
$(TOP)/bin/installmesa
|
||||
$(TOP)/bin/installmesa
|
||||
|
||||
# DirectFBGL module installation
|
||||
linux-directfb-install:
|
||||
cd src/mesa/drivers/directfb && $(MAKE) install
|
||||
|
||||
# If there's no current configuration file
|
||||
$(TOP)/configs/current:
|
||||
@@ -78,6 +82,7 @@ linux \
|
||||
linux-alpha \
|
||||
linux-alpha-static \
|
||||
linux-debug \
|
||||
linux-directfb \
|
||||
linux-dri \
|
||||
linux-dri-x86 \
|
||||
linux-dri-x86-64 \
|
||||
@@ -122,9 +127,9 @@ ultrix-gcc:
|
||||
|
||||
# Rules for making release tarballs
|
||||
|
||||
DIRECTORY = Mesa-6.2
|
||||
LIB_NAME = MesaLib-6.2
|
||||
DEMO_NAME = MesaDemos-6.2
|
||||
DIRECTORY = Mesa-6.3
|
||||
LIB_NAME = MesaLib-6.3
|
||||
DEMO_NAME = MesaDemos-6.3
|
||||
|
||||
LIB_FILES = \
|
||||
$(DIRECTORY)/Makefile* \
|
||||
@@ -201,6 +206,8 @@ LIB_FILES = \
|
||||
$(DIRECTORY)/src/mesa/drivers/beos/Makefile \
|
||||
$(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
|
||||
$(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
|
||||
$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
|
||||
$(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
|
||||
$(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
|
||||
$(DIRECTORY)/src/mesa/drivers/dri/common/*.[ch] \
|
||||
$(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
|
||||
@@ -270,7 +277,7 @@ LIB_FILES = \
|
||||
$(DIRECTORY)/vms/xlib_share.opt
|
||||
|
||||
|
||||
DEMO_FILES = \
|
||||
GLUT_FILES = \
|
||||
$(DIRECTORY)/include/GL/glut.h \
|
||||
$(DIRECTORY)/include/GL/glutf90.h \
|
||||
$(DIRECTORY)/src/glut/glx/Makefile* \
|
||||
@@ -287,7 +294,10 @@ DEMO_FILES = \
|
||||
$(DIRECTORY)/src/glut/dos/Makefile.DJ \
|
||||
$(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
|
||||
$(DIRECTORY)/src/glut/ggi/*.[ch] \
|
||||
$(DIRECTORY)/src/glut/ggi/Makefile \
|
||||
$(DIRECTORY)/src/glut/ggi/Makefile
|
||||
|
||||
|
||||
DEMO_FILES = \
|
||||
$(DIRECTORY)/progs/beos/*.cpp \
|
||||
$(DIRECTORY)/progs/beos/Makefile \
|
||||
$(DIRECTORY)/progs/images/*.rgb \
|
||||
@@ -344,7 +354,7 @@ lib_gz:
|
||||
|
||||
demo_gz:
|
||||
cd .. ; \
|
||||
tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
|
||||
tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) $(GLUT_FILES) ; \
|
||||
gzip $(DEMO_NAME).tar ; \
|
||||
mv $(DEMO_NAME).tar.gz $(DIRECTORY)
|
||||
|
||||
@@ -357,7 +367,7 @@ lib_bz2:
|
||||
|
||||
demo_bz2:
|
||||
cd .. ; \
|
||||
tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
|
||||
tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) $(GLUT_FILES) ; \
|
||||
bzip2 $(DEMO_NAME).tar ; \
|
||||
mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
|
||||
|
||||
@@ -371,7 +381,7 @@ lib_zip:
|
||||
demo_zip:
|
||||
-rm $(DEMO_NAME).zip ; \
|
||||
cd .. ; \
|
||||
zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
|
||||
zip -r $(DEMO_NAME).zip $(DEMO_FILES) $(GLUT_FILES) ; \
|
||||
mv $(DEMO_NAME).zip $(DIRECTORY)
|
||||
|
||||
md5:
|
||||
|
29
configs/linux-directfb
Normal file
29
configs/linux-directfb
Normal file
@@ -0,0 +1,29 @@
|
||||
# Configuration for DirectFB
|
||||
|
||||
include $(TOP)/configs/default
|
||||
|
||||
CONFIG_NAME = linux-directfb
|
||||
|
||||
# Compiler and flags
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
|
||||
CFLAGS = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D_SVID_SOURCE \
|
||||
-D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DPTHREADS
|
||||
|
||||
CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||
|
||||
HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
||||
ifeq ($(HAVE_X86), yes)
|
||||
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||
CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||
ASM_SOURCES = $(X86_SOURCES) $(X86_API)
|
||||
endif
|
||||
|
||||
# Directories
|
||||
SRC_DIRS = mesa glu
|
||||
DRIVER_DIRS = directfb
|
||||
PROGRAM_DIRS = # disabled
|
||||
|
||||
# Library/program dependencies
|
||||
GL_LIB_DEPS = -lm -lpthread
|
@@ -8,7 +8,7 @@ CONFIG_NAME = linux-solo
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
|
||||
DEFINES = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE
|
||||
DEFINES = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1
|
||||
|
||||
CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99 -Wundef -fPIC -ffast-math
|
||||
|
||||
|
@@ -8,7 +8,7 @@ CONFIG_NAME = linux-solo-x86
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
|
||||
DEFINES = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS
|
||||
DEFINES = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1
|
||||
|
||||
CFLAGS = $(DEFINES) -Wmissing-prototypes -O3 -g -std=c99 -Wundef -fPIC -ffast-math
|
||||
|
||||
|
@@ -13,7 +13,9 @@ all :
|
||||
if f$search("lib.dir") .eqs. "" then create/directory [.lib]
|
||||
set default [.src]
|
||||
$(MMS)$(MMSQUALIFIERS)
|
||||
set default [-.progs.demos]
|
||||
set default [-.progs.util]
|
||||
$(MMS)$(MMSQUALIFIERS)
|
||||
set default [-.demos]
|
||||
$(MMS)$(MMSQUALIFIERS)
|
||||
set default [-.xdemos]
|
||||
$(MMS)$(MMSQUALIFIERS)
|
||||
|
@@ -266,6 +266,7 @@ v1.7 (???-2005)
|
||||
+ enabled OpenGL 2.0 support
|
||||
+ added support for sw texture compression
|
||||
* minor rework
|
||||
* `glutTimerFunc' now works with heavy callbacks
|
||||
|
||||
|
||||
|
||||
|
28
docs/README.directfb
Normal file
28
docs/README.directfb
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
Mesa DirectFB Information
|
||||
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
To build Mesa with DirectFB (DirectFBGL) support you need:
|
||||
- DirectFB at least 0.9.21 (http://directfb.org)
|
||||
- pkg-config at least 0.9 (http://pkgconfig.sf.net)
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
Run
|
||||
|
||||
make linux-directfb
|
||||
|
||||
to build Mesa and DirectFBGL module,
|
||||
|
||||
make install
|
||||
|
||||
to install OpenGL libraries and
|
||||
|
||||
make linux-directfb-install
|
||||
|
||||
to install DirectFBGL module in the proper location.
|
||||
|
@@ -25,6 +25,41 @@ GL_ARB_draw_buffers - allows a fragment program to write to a number of
|
||||
GL_OES_read_format - allows one to query the fastest glReadPixels format
|
||||
and datatype.
|
||||
|
||||
GL_ARB_pixel_buffer_object - buffer objects for pixel read/write functions.
|
||||
|
||||
DirectFB driver, contributed by Claudio Ciccani. See docs/README.directfb
|
||||
for details.
|
||||
|
||||
|
||||
|
||||
Vertex/Fragment Program PRINT Instruction
|
||||
-----------------------------------------
|
||||
|
||||
The GL_NV_vertex_program and GL_NV_fragment_program languages have been
|
||||
extended with a PRINT instruction.
|
||||
|
||||
|
||||
|
||||
glDeleteTextures(), glDeletePrograms() and glDeleteBuffers() Changed
|
||||
--------------------------------------------------------------------
|
||||
|
||||
To match the behaviour of other OpenGL implementations, glDeleteTextures,
|
||||
glDeletePrograms and glDeleteBuffers have been modified so that:
|
||||
|
||||
* The named texture/program/buffer ID is immediately freed for re-use.
|
||||
|
||||
* The actual texture object, program or buffers isn't really deleted until
|
||||
it is no longer bound in any rendering context (the reference count
|
||||
is zero).
|
||||
|
||||
Previously, the texture/program/buffer ID wasn't freed until the object
|
||||
was really deleted.
|
||||
|
||||
Note that textures, programs and buffers can be shared by several rendering
|
||||
contexts so they can't be deleted until they're unbound in _all_ contexts.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
To Do before release
|
||||
@@ -36,6 +71,12 @@ To Do before release
|
||||
|
||||
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
The main/get.c file is now generated with a Python script.
|
||||
|
||||
|
||||
|
||||
Driver Status
|
||||
---------------------- ---------------------
|
||||
@@ -53,4 +94,4 @@ D3D needs updating
|
||||
|
||||
|
||||
----------------------------------------------------------------------
|
||||
$Id: RELNOTES-6.3,v 3.6 2004/12/09 23:21:36 brianp Exp $
|
||||
$Id: RELNOTES-6.3,v 3.8 2005/01/20 04:03:37 brianp Exp $
|
||||
|
@@ -1317,11 +1317,15 @@ Mesa Version History
|
||||
6.3 Month day, 2004
|
||||
New:
|
||||
- GL_ARB_draw_buffers extension
|
||||
- GL_ARB_pixel_buffer_object extension
|
||||
- GL_OES_read_format extension (Ian Romanick)
|
||||
- full support for GL_EXT_pixel_buffer_object (convolution filters,
|
||||
polygon stipple, colormaps, etc)
|
||||
- DirectFB driver (Claudio Ciccani)
|
||||
Changes:
|
||||
- added -stereo option for glxgears demo (Jacek Rosik)
|
||||
- updated the PBuffer demo code in xdemos/ directory
|
||||
- glDeleteTextures/Programs/Buffers() now makes the object ID
|
||||
available for immediate re-use
|
||||
Bug fixes:
|
||||
fixes from 6.2.1, plus:
|
||||
-
|
||||
- some functions didn't support PBO functionality
|
||||
- glGetTexImage didn't convert color index images to RGBA as required
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Bug Reporting</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Bug Database</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Conformance</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Conformance</H1>
|
||||
|
||||
|
@@ -2,7 +2,26 @@
|
||||
|
||||
<title>Contents</title>
|
||||
|
||||
<body text="#ffffff" bgcolor="#119955" link="#ffffff" vlink="#dddddd" alink="#ffffff">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<body bgcolor="#119955">
|
||||
|
||||
<!--Override a few values from the style sheet: -->
|
||||
<style>
|
||||
<!--
|
||||
body {
|
||||
background-color: #119955;
|
||||
color: white;
|
||||
}
|
||||
a:link {
|
||||
color: #fff;
|
||||
}
|
||||
a:visited {
|
||||
color: #ccc;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
|
||||
|
||||
<b>Documentation</b>
|
||||
<ul>
|
||||
@@ -53,7 +72,6 @@
|
||||
<li><a href="utilities.html" target="MainFrame">Utilities</a>
|
||||
<li><a href="helpwanted.html" target="MainFrame">Help Wanted</a>
|
||||
<li><a href="devinfo.html" target="MainFrame">Development Notes</a>
|
||||
<li><a href="drivers.html" target="MainFrame">Writing Device Drivers</a>
|
||||
<li><a href="sourcedocs.html" target="MainFrame">Source Documentation</a>
|
||||
<li><a href="subset.html" target="MainFrame">Subset Information</a>
|
||||
<li><a href="fbdev-dri.html" target="MainFrame">fbdev/DRI Environment</a>
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Custom Development</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Custom Development</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>CVS Access</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<h1>CVS Access</h1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>CVS Branches</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>CVS Branch Information</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Debugging Tips</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Debugging Tips</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Demos</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Demos</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Development Notes</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Development Notes</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Getting Mesa</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Downloading / Unpacking</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Environment Variables</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Environment Variables</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Extensions</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Mesa Extensions</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<head><title>Mesa FAQ</title></head>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
|
||||
<center>
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa fbdev/DRI Environment</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<center><H1>Mesa fbdev/DRI Drivers</H1></center>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Games</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Games</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa glFBDev Driver</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<center><H1>Mesa glFBDev Driver</H1></center>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>SGI GLU</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>SGI SI GLU</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Help Wanted</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Help Wanted</H1>
|
||||
|
||||
|
@@ -13,10 +13,7 @@
|
||||
|
||||
<noframes>
|
||||
|
||||
<BODY>
|
||||
|
||||
<P>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
|
||||
</noframes>
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Compilation and Installation</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
|
||||
<H1>Compilation and Installation</H1>
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Introduction</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Introduction</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Libraries and Toolkits</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Libraries and Toolkits</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>License / Cppyright Information</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>License / Copyright Information</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Mailing Lists</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Mailing Lists</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Function Name Mangling</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Function Name Mangling</H1>
|
||||
|
||||
|
35
docs/mesa.css
Normal file
35
docs/mesa.css
Normal file
@@ -0,0 +1,35 @@
|
||||
/* Mesa CSS */
|
||||
body {
|
||||
background-color: #55bbff;
|
||||
font: 14px 'Lucida Grande', Geneva, Arial, Verdana, sans-serif;
|
||||
color: black;
|
||||
link: #111188;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background-color: #55bbff;
|
||||
font: 24px 'Lucida Grande', Geneva, Arial, Verdana, sans-serif;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
|
||||
h2 {
|
||||
background-color: #55bbff;
|
||||
font: 18px 'Lucida Grande', Geneva, Arial, Verdana, sans-serif, bold;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace;
|
||||
font-size: 10pt;
|
||||
color: black;
|
||||
}
|
||||
|
||||
|
||||
pre {
|
||||
/*font-family: monospace;*/
|
||||
font-size: 10pt;
|
||||
/*color: black;*/
|
||||
}
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Modelers, Renderers and Viewers</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Modelers, Renderers and Viewers</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa News</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>News</H1>
|
||||
|
||||
@@ -958,6 +960,6 @@ source code</a>.</p>
|
||||
|
||||
|
||||
<hr>
|
||||
$Id: news.html,v 3.16 2004/12/09 23:21:36 brianp Exp $
|
||||
$Id: news.html,v 3.17 2005/01/20 03:55:10 brianp Exp $
|
||||
</body>
|
||||
</html>
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Off-screen Rendering</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Off-screen Rendering</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>PBuffer Rendering</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>PBuffer Rendering</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Performance Tips</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Performance Tips</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Precompiled libraries</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Precompiled Libraries</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Release Notes</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Release Notes</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Science and Technical</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Science and Technical</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Source Code Documentation</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Source Code Documentation</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Subset</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Mesa Subset</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Supported Systems and Drivers</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Supported Systems and Drivers</H1>
|
||||
|
||||
|
@@ -4,7 +4,9 @@
|
||||
<TITLE>Acknowledgements</TITLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Acknowledgments</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Development Utilities</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Development Utilities</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Utilities</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff" link="#111188">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Utilities</H1>
|
||||
|
||||
|
@@ -2,7 +2,9 @@
|
||||
|
||||
<TITLE>Mesa Introduction</TITLE>
|
||||
|
||||
<BODY text="#000000" bgcolor="#55bbff">
|
||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Webmaster</font></H1>
|
||||
|
||||
|
89
include/GL/directfbgl.h
Normal file
89
include/GL/directfbgl.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
(c) Copyright 2001 convergence integrated media GmbH.
|
||||
All rights reserved.
|
||||
|
||||
Written by Denis Oliver Kropp <dok@convergence.de> and
|
||||
Andreas Hundt <andi@convergence.de>.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __DIRECTFBGL_H__
|
||||
#define __DIRECTFBGL_H__
|
||||
|
||||
#include <directfb.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct {
|
||||
int buffer_size;
|
||||
int depth_size;
|
||||
int stencil_size;
|
||||
int aux_buffers;
|
||||
|
||||
int red_size;
|
||||
int green_size;
|
||||
int blue_size;
|
||||
int alpha_size;
|
||||
|
||||
int accum_red_size;
|
||||
int accum_green_size;
|
||||
int accum_blue_size;
|
||||
int accum_alpha_size;
|
||||
|
||||
DFBBoolean double_buffer;
|
||||
DFBBoolean stereo;
|
||||
} DFBGLAttributes;
|
||||
|
||||
|
||||
DEFINE_INTERFACE( IDirectFBGL,
|
||||
|
||||
/** Context handling **/
|
||||
|
||||
/*
|
||||
* Acquire the hardware lock.
|
||||
*/
|
||||
DFBResult (*Lock) (
|
||||
IDirectFBGL *thiz
|
||||
);
|
||||
|
||||
/*
|
||||
* Release the lock.
|
||||
*/
|
||||
DFBResult (*Unlock) (
|
||||
IDirectFBGL *thiz
|
||||
);
|
||||
|
||||
/*
|
||||
* Query the OpenGL attributes.
|
||||
*/
|
||||
DFBResult (*GetAttributes) (
|
||||
IDirectFBGL *thiz,
|
||||
DFBGLAttributes *attributes
|
||||
);
|
||||
)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -2232,17 +2232,6 @@ typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLen
|
||||
#endif /* GL_ATI_blend_equation_separate */
|
||||
|
||||
|
||||
/* As soon as the official glext.h is updated to include this, it will be
|
||||
* removed from here.
|
||||
*/
|
||||
#ifndef GL_OES_read_format
|
||||
#define GL_OES_read_format 1
|
||||
|
||||
#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
|
||||
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
|
||||
|
||||
#endif /* GL_OES_read_format */
|
||||
|
||||
/**
|
||||
** NOTE!!!!! If you add new functions to this file, or update
|
||||
** glext.h be sure to regenerate the gl_mangle.h file. See comments
|
||||
@@ -2250,6 +2239,7 @@ typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLen
|
||||
**/
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Begin system-specific stuff
|
||||
*/
|
||||
|
@@ -50,6 +50,7 @@
|
||||
#define glArrayObjectATI MANGLE(ArrayObjectATI)
|
||||
#define glAsyncMarkerSGIX MANGLE(AsyncMarkerSGIX)
|
||||
#define glAttachObjectARB MANGLE(AttachObjectARB)
|
||||
#define glAttachShader MANGLE(AttachShader)
|
||||
#define glBeginFragmentShaderATI MANGLE(BeginFragmentShaderATI)
|
||||
#define glBegin MANGLE(Begin)
|
||||
#define glBeginOcclusionQueryNV MANGLE(BeginOcclusionQueryNV)
|
||||
@@ -57,6 +58,7 @@
|
||||
#define glBeginQuery MANGLE(BeginQuery)
|
||||
#define glBeginVertexShaderEXT MANGLE(BeginVertexShaderEXT)
|
||||
#define glBindAttribLocationARB MANGLE(BindAttribLocationARB)
|
||||
#define glBindAttribLocation MANGLE(BindAttribLocation)
|
||||
#define glBindBufferARB MANGLE(BindBufferARB)
|
||||
#define glBindBuffer MANGLE(BindBuffer)
|
||||
#define glBindFragmentShaderATI MANGLE(BindFragmentShaderATI)
|
||||
@@ -89,6 +91,7 @@
|
||||
#define glBlendEquation MANGLE(BlendEquation)
|
||||
#define glBlendEquationSeparateATI MANGLE(BlendEquationSeparateATI)
|
||||
#define glBlendEquationSeparateEXT MANGLE(BlendEquationSeparateEXT)
|
||||
#define glBlendEquationSeparate MANGLE(BlendEquationSeparate)
|
||||
#define glBlendFunc MANGLE(BlendFunc)
|
||||
#define glBlendFuncSeparateEXT MANGLE(BlendFuncSeparateEXT)
|
||||
#define glBlendFuncSeparateINGR MANGLE(BlendFuncSeparateINGR)
|
||||
@@ -99,6 +102,7 @@
|
||||
#define glBufferSubData MANGLE(BufferSubData)
|
||||
#define glCallList MANGLE(CallList)
|
||||
#define glCallLists MANGLE(CallLists)
|
||||
#define glClampColorARB MANGLE(ClampColorARB)
|
||||
#define glClearAccum MANGLE(ClearAccum)
|
||||
#define glClearColor MANGLE(ClearColor)
|
||||
#define glClearDepth MANGLE(ClearDepth)
|
||||
@@ -179,6 +183,7 @@
|
||||
#define glCombinerParameterivNV MANGLE(CombinerParameterivNV)
|
||||
#define glCombinerStageParameterfvNV MANGLE(CombinerStageParameterfvNV)
|
||||
#define glCompileShaderARB MANGLE(CompileShaderARB)
|
||||
#define glCompileShader MANGLE(CompileShader)
|
||||
#define glCompressedTexImage1DARB MANGLE(CompressedTexImage1DARB)
|
||||
#define glCompressedTexImage1D MANGLE(CompressedTexImage1D)
|
||||
#define glCompressedTexImage2DARB MANGLE(CompressedTexImage2DARB)
|
||||
@@ -222,7 +227,9 @@
|
||||
#define glCopyTexSubImage2D MANGLE(CopyTexSubImage2D)
|
||||
#define glCopyTexSubImage3DEXT MANGLE(CopyTexSubImage3DEXT)
|
||||
#define glCopyTexSubImage3D MANGLE(CopyTexSubImage3D)
|
||||
#define glCreateProgram MANGLE(CreateProgram)
|
||||
#define glCreateProgramObjectARB MANGLE(CreateProgramObjectARB)
|
||||
#define glCreateShader MANGLE(CreateShader)
|
||||
#define glCreateShaderObjectARB MANGLE(CreateShaderObjectARB)
|
||||
#define glCullFace MANGLE(CullFace)
|
||||
#define glCullParameterdvEXT MANGLE(CullParameterdvEXT)
|
||||
@@ -240,10 +247,12 @@
|
||||
#define glDeleteLists MANGLE(DeleteLists)
|
||||
#define glDeleteObjectARB MANGLE(DeleteObjectARB)
|
||||
#define glDeleteOcclusionQueriesNV MANGLE(DeleteOcclusionQueriesNV)
|
||||
#define glDeleteProgram MANGLE(DeleteProgram)
|
||||
#define glDeleteProgramsARB MANGLE(DeleteProgramsARB)
|
||||
#define glDeleteProgramsNV MANGLE(DeleteProgramsNV)
|
||||
#define glDeleteQueriesARB MANGLE(DeleteQueriesARB)
|
||||
#define glDeleteQueries MANGLE(DeleteQueries)
|
||||
#define glDeleteShader MANGLE(DeleteShader)
|
||||
#define glDeleteTexturesEXT MANGLE(DeleteTexturesEXT)
|
||||
#define glDeleteTextures MANGLE(DeleteTextures)
|
||||
#define glDeleteVertexArraysAPPLE MANGLE(DeleteVertexArraysAPPLE)
|
||||
@@ -253,16 +262,20 @@
|
||||
#define glDepthMask MANGLE(DepthMask)
|
||||
#define glDepthRange MANGLE(DepthRange)
|
||||
#define glDetachObjectARB MANGLE(DetachObjectARB)
|
||||
#define glDetachShader MANGLE(DetachShader)
|
||||
#define glDetailTexFuncSGIS MANGLE(DetailTexFuncSGIS)
|
||||
#define glDisableClientState MANGLE(DisableClientState)
|
||||
#define glDisable MANGLE(Disable)
|
||||
#define glDisableTraceMESA MANGLE(DisableTraceMESA)
|
||||
#define glDisableVariantClientStateEXT MANGLE(DisableVariantClientStateEXT)
|
||||
#define glDisableVertexAttribArrayARB MANGLE(DisableVertexAttribArrayARB)
|
||||
#define glDisableVertexAttribArray MANGLE(DisableVertexAttribArray)
|
||||
#define glDrawArraysEXT MANGLE(DrawArraysEXT)
|
||||
#define glDrawArrays MANGLE(DrawArrays)
|
||||
#define glDrawBuffer MANGLE(DrawBuffer)
|
||||
#define glDrawBuffersARB MANGLE(DrawBuffersARB)
|
||||
#define glDrawBuffersATI MANGLE(DrawBuffersATI)
|
||||
#define glDrawBuffers MANGLE(DrawBuffers)
|
||||
#define glDrawElementArrayAPPLE MANGLE(DrawElementArrayAPPLE)
|
||||
#define glDrawElementArrayATI MANGLE(DrawElementArrayATI)
|
||||
#define glDrawElements MANGLE(DrawElements)
|
||||
@@ -284,6 +297,7 @@
|
||||
#define glEnableTraceMESA MANGLE(EnableTraceMESA)
|
||||
#define glEnableVariantClientStateEXT MANGLE(EnableVariantClientStateEXT)
|
||||
#define glEnableVertexAttribArrayARB MANGLE(EnableVertexAttribArrayARB)
|
||||
#define glEnableVertexAttribArray MANGLE(EnableVertexAttribArray)
|
||||
#define glEndFragmentShaderATI MANGLE(EndFragmentShaderATI)
|
||||
#define glEndList MANGLE(EndList)
|
||||
#define glEnd MANGLE(End)
|
||||
@@ -373,11 +387,15 @@
|
||||
#define glGenVertexArraysAPPLE MANGLE(GenVertexArraysAPPLE)
|
||||
#define glGenVertexShadersEXT MANGLE(GenVertexShadersEXT)
|
||||
#define glGetActiveAttribARB MANGLE(GetActiveAttribARB)
|
||||
#define glGetActiveAttrib MANGLE(GetActiveAttrib)
|
||||
#define glGetActiveUniformARB MANGLE(GetActiveUniformARB)
|
||||
#define glGetActiveUniform MANGLE(GetActiveUniform)
|
||||
#define glGetArrayObjectfvATI MANGLE(GetArrayObjectfvATI)
|
||||
#define glGetArrayObjectivATI MANGLE(GetArrayObjectivATI)
|
||||
#define glGetAttachedObjectsARB MANGLE(GetAttachedObjectsARB)
|
||||
#define glGetAttachedShaders MANGLE(GetAttachedShaders)
|
||||
#define glGetAttribLocationARB MANGLE(GetAttribLocationARB)
|
||||
#define glGetAttribLocation MANGLE(GetAttribLocation)
|
||||
#define glGetBooleanv MANGLE(GetBooleanv)
|
||||
#define glGetBufferParameterivARB MANGLE(GetBufferParameterivARB)
|
||||
#define glGetBufferParameteriv MANGLE(GetBufferParameteriv)
|
||||
@@ -474,7 +492,9 @@
|
||||
#define glGetPolygonStipple MANGLE(GetPolygonStipple)
|
||||
#define glGetProgramEnvParameterdvARB MANGLE(GetProgramEnvParameterdvARB)
|
||||
#define glGetProgramEnvParameterfvARB MANGLE(GetProgramEnvParameterfvARB)
|
||||
#define glGetProgramInfoLog MANGLE(GetProgramInfoLog)
|
||||
#define glGetProgramivARB MANGLE(GetProgramivARB)
|
||||
#define glGetProgramiv MANGLE(GetProgramiv)
|
||||
#define glGetProgramivNV MANGLE(GetProgramivNV)
|
||||
#define glGetProgramLocalParameterdvARB MANGLE(GetProgramLocalParameterdvARB)
|
||||
#define glGetProgramLocalParameterfvARB MANGLE(GetProgramLocalParameterfvARB)
|
||||
@@ -492,7 +512,10 @@
|
||||
#define glGetQueryObjectuiv MANGLE(GetQueryObjectuiv)
|
||||
#define glGetSeparableFilterEXT MANGLE(GetSeparableFilterEXT)
|
||||
#define glGetSeparableFilter MANGLE(GetSeparableFilter)
|
||||
#define glGetShaderInfoLog MANGLE(GetShaderInfoLog)
|
||||
#define glGetShaderiv MANGLE(GetShaderiv)
|
||||
#define glGetShaderSourceARB MANGLE(GetShaderSourceARB)
|
||||
#define glGetShaderSource MANGLE(GetShaderSource)
|
||||
#define glGetSharpenTexFuncSGIS MANGLE(GetSharpenTexFuncSGIS)
|
||||
#define glGetString MANGLE(GetString)
|
||||
#define glGetTexBumpParameterfvATI MANGLE(GetTexBumpParameterfvATI)
|
||||
@@ -510,8 +533,11 @@
|
||||
#define glGetTexParameteriv MANGLE(GetTexParameteriv)
|
||||
#define glGetTrackMatrixivNV MANGLE(GetTrackMatrixivNV)
|
||||
#define glGetUniformfvARB MANGLE(GetUniformfvARB)
|
||||
#define glGetUniformfv MANGLE(GetUniformfv)
|
||||
#define glGetUniformivARB MANGLE(GetUniformivARB)
|
||||
#define glGetUniformiv MANGLE(GetUniformiv)
|
||||
#define glGetUniformLocationARB MANGLE(GetUniformLocationARB)
|
||||
#define glGetUniformLocation MANGLE(GetUniformLocation)
|
||||
#define glGetVariantArrayObjectfvATI MANGLE(GetVariantArrayObjectfvATI)
|
||||
#define glGetVariantArrayObjectivATI MANGLE(GetVariantArrayObjectivATI)
|
||||
#define glGetVariantBooleanvEXT MANGLE(GetVariantBooleanvEXT)
|
||||
@@ -521,12 +547,16 @@
|
||||
#define glGetVertexAttribArrayObjectfvATI MANGLE(GetVertexAttribArrayObjectfvATI)
|
||||
#define glGetVertexAttribArrayObjectivATI MANGLE(GetVertexAttribArrayObjectivATI)
|
||||
#define glGetVertexAttribdvARB MANGLE(GetVertexAttribdvARB)
|
||||
#define glGetVertexAttribdv MANGLE(GetVertexAttribdv)
|
||||
#define glGetVertexAttribdvNV MANGLE(GetVertexAttribdvNV)
|
||||
#define glGetVertexAttribfvARB MANGLE(GetVertexAttribfvARB)
|
||||
#define glGetVertexAttribfv MANGLE(GetVertexAttribfv)
|
||||
#define glGetVertexAttribfvNV MANGLE(GetVertexAttribfvNV)
|
||||
#define glGetVertexAttribivARB MANGLE(GetVertexAttribivARB)
|
||||
#define glGetVertexAttribiv MANGLE(GetVertexAttribiv)
|
||||
#define glGetVertexAttribivNV MANGLE(GetVertexAttribivNV)
|
||||
#define glGetVertexAttribPointervARB MANGLE(GetVertexAttribPointervARB)
|
||||
#define glGetVertexAttribPointerv MANGLE(GetVertexAttribPointerv)
|
||||
#define glGetVertexAttribPointervNV MANGLE(GetVertexAttribPointervNV)
|
||||
#define glGlobalAlphaFactorbSUN MANGLE(GlobalAlphaFactorbSUN)
|
||||
#define glGlobalAlphaFactordSUN MANGLE(GlobalAlphaFactordSUN)
|
||||
@@ -575,9 +605,11 @@
|
||||
#define glIsObjectBufferATI MANGLE(IsObjectBufferATI)
|
||||
#define glIsOcclusionQueryNV MANGLE(IsOcclusionQueryNV)
|
||||
#define glIsProgramARB MANGLE(IsProgramARB)
|
||||
#define glIsProgram MANGLE(IsProgram)
|
||||
#define glIsProgramNV MANGLE(IsProgramNV)
|
||||
#define glIsQueryARB MANGLE(IsQueryARB)
|
||||
#define glIsQuery MANGLE(IsQuery)
|
||||
#define glIsShader MANGLE(IsShader)
|
||||
#define glIsTextureEXT MANGLE(IsTextureEXT)
|
||||
#define glIsTexture MANGLE(IsTexture)
|
||||
#define glIsVariantEnabledEXT MANGLE(IsVariantEnabledEXT)
|
||||
@@ -594,6 +626,7 @@
|
||||
#define glLineStipple MANGLE(LineStipple)
|
||||
#define glLineWidth MANGLE(LineWidth)
|
||||
#define glLinkProgramARB MANGLE(LinkProgramARB)
|
||||
#define glLinkProgram MANGLE(LinkProgram)
|
||||
#define glListBase MANGLE(ListBase)
|
||||
#define glListParameterfSGIX MANGLE(ListParameterfSGIX)
|
||||
#define glListParameterfvSGIX MANGLE(ListParameterfvSGIX)
|
||||
@@ -954,6 +987,7 @@
|
||||
#define glShaderOp2EXT MANGLE(ShaderOp2EXT)
|
||||
#define glShaderOp3EXT MANGLE(ShaderOp3EXT)
|
||||
#define glShaderSourceARB MANGLE(ShaderSourceARB)
|
||||
#define glShaderSource MANGLE(ShaderSource)
|
||||
#define glSharpenTexFuncSGIS MANGLE(SharpenTexFuncSGIS)
|
||||
#define glSpriteParameterfSGIX MANGLE(SpriteParameterfSGIX)
|
||||
#define glSpriteParameterfvSGIX MANGLE(SpriteParameterfvSGIX)
|
||||
@@ -962,9 +996,12 @@
|
||||
#define glStartInstrumentsSGIX MANGLE(StartInstrumentsSGIX)
|
||||
#define glStencilFunc MANGLE(StencilFunc)
|
||||
#define glStencilFuncSeparateATI MANGLE(StencilFuncSeparateATI)
|
||||
#define glStencilFuncSeparate MANGLE(StencilFuncSeparate)
|
||||
#define glStencilMask MANGLE(StencilMask)
|
||||
#define glStencilMaskSeparate MANGLE(StencilMaskSeparate)
|
||||
#define glStencilOp MANGLE(StencilOp)
|
||||
#define glStencilOpSeparateATI MANGLE(StencilOpSeparateATI)
|
||||
#define glStencilOpSeparate MANGLE(StencilOpSeparate)
|
||||
#define glStopInstrumentsSGIX MANGLE(StopInstrumentsSGIX)
|
||||
#define glSwizzleEXT MANGLE(SwizzleEXT)
|
||||
#define glTagSampleBufferSGIX MANGLE(TagSampleBufferSGIX)
|
||||
@@ -1084,31 +1121,52 @@
|
||||
#define glTranslated MANGLE(Translated)
|
||||
#define glTranslatef MANGLE(Translatef)
|
||||
#define glUniform1fARB MANGLE(Uniform1fARB)
|
||||
#define glUniform1f MANGLE(Uniform1f)
|
||||
#define glUniform1fvARB MANGLE(Uniform1fvARB)
|
||||
#define glUniform1fv MANGLE(Uniform1fv)
|
||||
#define glUniform1iARB MANGLE(Uniform1iARB)
|
||||
#define glUniform1i MANGLE(Uniform1i)
|
||||
#define glUniform1ivARB MANGLE(Uniform1ivARB)
|
||||
#define glUniform1iv MANGLE(Uniform1iv)
|
||||
#define glUniform2fARB MANGLE(Uniform2fARB)
|
||||
#define glUniform2f MANGLE(Uniform2f)
|
||||
#define glUniform2fvARB MANGLE(Uniform2fvARB)
|
||||
#define glUniform2fv MANGLE(Uniform2fv)
|
||||
#define glUniform2iARB MANGLE(Uniform2iARB)
|
||||
#define glUniform2i MANGLE(Uniform2i)
|
||||
#define glUniform2ivARB MANGLE(Uniform2ivARB)
|
||||
#define glUniform2iv MANGLE(Uniform2iv)
|
||||
#define glUniform3fARB MANGLE(Uniform3fARB)
|
||||
#define glUniform3f MANGLE(Uniform3f)
|
||||
#define glUniform3fvARB MANGLE(Uniform3fvARB)
|
||||
#define glUniform3fv MANGLE(Uniform3fv)
|
||||
#define glUniform3iARB MANGLE(Uniform3iARB)
|
||||
#define glUniform3i MANGLE(Uniform3i)
|
||||
#define glUniform3ivARB MANGLE(Uniform3ivARB)
|
||||
#define glUniform3iv MANGLE(Uniform3iv)
|
||||
#define glUniform4fARB MANGLE(Uniform4fARB)
|
||||
#define glUniform4f MANGLE(Uniform4f)
|
||||
#define glUniform4fvARB MANGLE(Uniform4fvARB)
|
||||
#define glUniform4fv MANGLE(Uniform4fv)
|
||||
#define glUniform4iARB MANGLE(Uniform4iARB)
|
||||
#define glUniform4i MANGLE(Uniform4i)
|
||||
#define glUniform4ivARB MANGLE(Uniform4ivARB)
|
||||
#define glUniform4iv MANGLE(Uniform4iv)
|
||||
#define glUniformMatrix2fvARB MANGLE(UniformMatrix2fvARB)
|
||||
#define glUniformMatrix2fv MANGLE(UniformMatrix2fv)
|
||||
#define glUniformMatrix3fvARB MANGLE(UniformMatrix3fvARB)
|
||||
#define glUniformMatrix3fv MANGLE(UniformMatrix3fv)
|
||||
#define glUniformMatrix4fvARB MANGLE(UniformMatrix4fvARB)
|
||||
#define glUniformMatrix4fv MANGLE(UniformMatrix4fv)
|
||||
#define glUnlockArraysEXT MANGLE(UnlockArraysEXT)
|
||||
#define glUnmapBufferARB MANGLE(UnmapBufferARB)
|
||||
#define glUnmapBuffer MANGLE(UnmapBuffer)
|
||||
#define glUnmapObjectBufferATI MANGLE(UnmapObjectBufferATI)
|
||||
#define glUpdateObjectBufferATI MANGLE(UpdateObjectBufferATI)
|
||||
#define glUseProgram MANGLE(UseProgram)
|
||||
#define glUseProgramObjectARB MANGLE(UseProgramObjectARB)
|
||||
#define glValidateProgramARB MANGLE(ValidateProgramARB)
|
||||
#define glValidateProgram MANGLE(ValidateProgram)
|
||||
#define glVariantArrayObjectATI MANGLE(VariantArrayObjectATI)
|
||||
#define glVariantbvEXT MANGLE(VariantbvEXT)
|
||||
#define glVariantdvEXT MANGLE(VariantdvEXT)
|
||||
@@ -1153,77 +1211,114 @@
|
||||
#define glVertexArrayRangeAPPLE MANGLE(VertexArrayRangeAPPLE)
|
||||
#define glVertexArrayRangeNV MANGLE(VertexArrayRangeNV)
|
||||
#define glVertexAttrib1dARB MANGLE(VertexAttrib1dARB)
|
||||
#define glVertexAttrib1d MANGLE(VertexAttrib1d)
|
||||
#define glVertexAttrib1dNV MANGLE(VertexAttrib1dNV)
|
||||
#define glVertexAttrib1dvARB MANGLE(VertexAttrib1dvARB)
|
||||
#define glVertexAttrib1dv MANGLE(VertexAttrib1dv)
|
||||
#define glVertexAttrib1dvNV MANGLE(VertexAttrib1dvNV)
|
||||
#define glVertexAttrib1fARB MANGLE(VertexAttrib1fARB)
|
||||
#define glVertexAttrib1f MANGLE(VertexAttrib1f)
|
||||
#define glVertexAttrib1fNV MANGLE(VertexAttrib1fNV)
|
||||
#define glVertexAttrib1fvARB MANGLE(VertexAttrib1fvARB)
|
||||
#define glVertexAttrib1fv MANGLE(VertexAttrib1fv)
|
||||
#define glVertexAttrib1fvNV MANGLE(VertexAttrib1fvNV)
|
||||
#define glVertexAttrib1hNV MANGLE(VertexAttrib1hNV)
|
||||
#define glVertexAttrib1hvNV MANGLE(VertexAttrib1hvNV)
|
||||
#define glVertexAttrib1sARB MANGLE(VertexAttrib1sARB)
|
||||
#define glVertexAttrib1s MANGLE(VertexAttrib1s)
|
||||
#define glVertexAttrib1sNV MANGLE(VertexAttrib1sNV)
|
||||
#define glVertexAttrib1svARB MANGLE(VertexAttrib1svARB)
|
||||
#define glVertexAttrib1sv MANGLE(VertexAttrib1sv)
|
||||
#define glVertexAttrib1svNV MANGLE(VertexAttrib1svNV)
|
||||
#define glVertexAttrib2dARB MANGLE(VertexAttrib2dARB)
|
||||
#define glVertexAttrib2d MANGLE(VertexAttrib2d)
|
||||
#define glVertexAttrib2dNV MANGLE(VertexAttrib2dNV)
|
||||
#define glVertexAttrib2dvARB MANGLE(VertexAttrib2dvARB)
|
||||
#define glVertexAttrib2dv MANGLE(VertexAttrib2dv)
|
||||
#define glVertexAttrib2dvNV MANGLE(VertexAttrib2dvNV)
|
||||
#define glVertexAttrib2fARB MANGLE(VertexAttrib2fARB)
|
||||
#define glVertexAttrib2f MANGLE(VertexAttrib2f)
|
||||
#define glVertexAttrib2fNV MANGLE(VertexAttrib2fNV)
|
||||
#define glVertexAttrib2fvARB MANGLE(VertexAttrib2fvARB)
|
||||
#define glVertexAttrib2fv MANGLE(VertexAttrib2fv)
|
||||
#define glVertexAttrib2fvNV MANGLE(VertexAttrib2fvNV)
|
||||
#define glVertexAttrib2hNV MANGLE(VertexAttrib2hNV)
|
||||
#define glVertexAttrib2hvNV MANGLE(VertexAttrib2hvNV)
|
||||
#define glVertexAttrib2sARB MANGLE(VertexAttrib2sARB)
|
||||
#define glVertexAttrib2s MANGLE(VertexAttrib2s)
|
||||
#define glVertexAttrib2sNV MANGLE(VertexAttrib2sNV)
|
||||
#define glVertexAttrib2svARB MANGLE(VertexAttrib2svARB)
|
||||
#define glVertexAttrib2sv MANGLE(VertexAttrib2sv)
|
||||
#define glVertexAttrib2svNV MANGLE(VertexAttrib2svNV)
|
||||
#define glVertexAttrib3dARB MANGLE(VertexAttrib3dARB)
|
||||
#define glVertexAttrib3d MANGLE(VertexAttrib3d)
|
||||
#define glVertexAttrib3dNV MANGLE(VertexAttrib3dNV)
|
||||
#define glVertexAttrib3dvARB MANGLE(VertexAttrib3dvARB)
|
||||
#define glVertexAttrib3dv MANGLE(VertexAttrib3dv)
|
||||
#define glVertexAttrib3dvNV MANGLE(VertexAttrib3dvNV)
|
||||
#define glVertexAttrib3fARB MANGLE(VertexAttrib3fARB)
|
||||
#define glVertexAttrib3f MANGLE(VertexAttrib3f)
|
||||
#define glVertexAttrib3fNV MANGLE(VertexAttrib3fNV)
|
||||
#define glVertexAttrib3fvARB MANGLE(VertexAttrib3fvARB)
|
||||
#define glVertexAttrib3fv MANGLE(VertexAttrib3fv)
|
||||
#define glVertexAttrib3fvNV MANGLE(VertexAttrib3fvNV)
|
||||
#define glVertexAttrib3hNV MANGLE(VertexAttrib3hNV)
|
||||
#define glVertexAttrib3hvNV MANGLE(VertexAttrib3hvNV)
|
||||
#define glVertexAttrib3sARB MANGLE(VertexAttrib3sARB)
|
||||
#define glVertexAttrib3s MANGLE(VertexAttrib3s)
|
||||
#define glVertexAttrib3sNV MANGLE(VertexAttrib3sNV)
|
||||
#define glVertexAttrib3svARB MANGLE(VertexAttrib3svARB)
|
||||
#define glVertexAttrib3sv MANGLE(VertexAttrib3sv)
|
||||
#define glVertexAttrib3svNV MANGLE(VertexAttrib3svNV)
|
||||
#define glVertexAttrib4bvARB MANGLE(VertexAttrib4bvARB)
|
||||
#define glVertexAttrib4bv MANGLE(VertexAttrib4bv)
|
||||
#define glVertexAttrib4dARB MANGLE(VertexAttrib4dARB)
|
||||
#define glVertexAttrib4d MANGLE(VertexAttrib4d)
|
||||
#define glVertexAttrib4dNV MANGLE(VertexAttrib4dNV)
|
||||
#define glVertexAttrib4dvARB MANGLE(VertexAttrib4dvARB)
|
||||
#define glVertexAttrib4dv MANGLE(VertexAttrib4dv)
|
||||
#define glVertexAttrib4dvNV MANGLE(VertexAttrib4dvNV)
|
||||
#define glVertexAttrib4fARB MANGLE(VertexAttrib4fARB)
|
||||
#define glVertexAttrib4f MANGLE(VertexAttrib4f)
|
||||
#define glVertexAttrib4fNV MANGLE(VertexAttrib4fNV)
|
||||
#define glVertexAttrib4fvARB MANGLE(VertexAttrib4fvARB)
|
||||
#define glVertexAttrib4fv MANGLE(VertexAttrib4fv)
|
||||
#define glVertexAttrib4fvNV MANGLE(VertexAttrib4fvNV)
|
||||
#define glVertexAttrib4hNV MANGLE(VertexAttrib4hNV)
|
||||
#define glVertexAttrib4hvNV MANGLE(VertexAttrib4hvNV)
|
||||
#define glVertexAttrib4ivARB MANGLE(VertexAttrib4ivARB)
|
||||
#define glVertexAttrib4iv MANGLE(VertexAttrib4iv)
|
||||
#define glVertexAttrib4NbvARB MANGLE(VertexAttrib4NbvARB)
|
||||
#define glVertexAttrib4Nbv MANGLE(VertexAttrib4Nbv)
|
||||
#define glVertexAttrib4NivARB MANGLE(VertexAttrib4NivARB)
|
||||
#define glVertexAttrib4Niv MANGLE(VertexAttrib4Niv)
|
||||
#define glVertexAttrib4NsvARB MANGLE(VertexAttrib4NsvARB)
|
||||
#define glVertexAttrib4Nsv MANGLE(VertexAttrib4Nsv)
|
||||
#define glVertexAttrib4NubARB MANGLE(VertexAttrib4NubARB)
|
||||
#define glVertexAttrib4Nub MANGLE(VertexAttrib4Nub)
|
||||
#define glVertexAttrib4NubvARB MANGLE(VertexAttrib4NubvARB)
|
||||
#define glVertexAttrib4Nubv MANGLE(VertexAttrib4Nubv)
|
||||
#define glVertexAttrib4NuivARB MANGLE(VertexAttrib4NuivARB)
|
||||
#define glVertexAttrib4Nuiv MANGLE(VertexAttrib4Nuiv)
|
||||
#define glVertexAttrib4NusvARB MANGLE(VertexAttrib4NusvARB)
|
||||
#define glVertexAttrib4Nusv MANGLE(VertexAttrib4Nusv)
|
||||
#define glVertexAttrib4sARB MANGLE(VertexAttrib4sARB)
|
||||
#define glVertexAttrib4s MANGLE(VertexAttrib4s)
|
||||
#define glVertexAttrib4sNV MANGLE(VertexAttrib4sNV)
|
||||
#define glVertexAttrib4svARB MANGLE(VertexAttrib4svARB)
|
||||
#define glVertexAttrib4sv MANGLE(VertexAttrib4sv)
|
||||
#define glVertexAttrib4svNV MANGLE(VertexAttrib4svNV)
|
||||
#define glVertexAttrib4ubNV MANGLE(VertexAttrib4ubNV)
|
||||
#define glVertexAttrib4ubvARB MANGLE(VertexAttrib4ubvARB)
|
||||
#define glVertexAttrib4ubv MANGLE(VertexAttrib4ubv)
|
||||
#define glVertexAttrib4ubvNV MANGLE(VertexAttrib4ubvNV)
|
||||
#define glVertexAttrib4uivARB MANGLE(VertexAttrib4uivARB)
|
||||
#define glVertexAttrib4uiv MANGLE(VertexAttrib4uiv)
|
||||
#define glVertexAttrib4usvARB MANGLE(VertexAttrib4usvARB)
|
||||
#define glVertexAttrib4usv MANGLE(VertexAttrib4usv)
|
||||
#define glVertexAttribArrayObjectATI MANGLE(VertexAttribArrayObjectATI)
|
||||
#define glVertexAttribPointerARB MANGLE(VertexAttribPointerARB)
|
||||
#define glVertexAttribPointer MANGLE(VertexAttribPointer)
|
||||
#define glVertexAttribPointerNV MANGLE(VertexAttribPointerNV)
|
||||
#define glVertexAttribs1dvNV MANGLE(VertexAttribs1dvNV)
|
||||
#define glVertexAttribs1fvNV MANGLE(VertexAttribs1fvNV)
|
||||
|
@@ -52,9 +52,9 @@ extern "C" {
|
||||
/*************************************************************/
|
||||
|
||||
/* Header file version number, required by OpenGL ABI for Linux */
|
||||
/* glext.h last updated 2004/7/26 */
|
||||
/* glext.h last updated 2005/01/20 */
|
||||
/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
|
||||
#define GL_GLEXT_VERSION 24
|
||||
#define GL_GLEXT_VERSION 26
|
||||
|
||||
#ifndef GL_VERSION_1_2
|
||||
#define GL_UNSIGNED_BYTE_3_3_2 0x8032
|
||||
@@ -372,6 +372,93 @@ extern "C" {
|
||||
#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA
|
||||
#endif
|
||||
|
||||
#ifndef GL_VERSION_2_0
|
||||
#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
|
||||
#define GL_CURRENT_VERTEX_ATTRIB 0x8626
|
||||
#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
|
||||
#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
|
||||
#define GL_STENCIL_BACK_FUNC 0x8800
|
||||
#define GL_STENCIL_BACK_FAIL 0x8801
|
||||
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
|
||||
#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
|
||||
#define GL_MAX_DRAW_BUFFERS 0x8824
|
||||
#define GL_DRAW_BUFFER0 0x8825
|
||||
#define GL_DRAW_BUFFER1 0x8826
|
||||
#define GL_DRAW_BUFFER2 0x8827
|
||||
#define GL_DRAW_BUFFER3 0x8828
|
||||
#define GL_DRAW_BUFFER4 0x8829
|
||||
#define GL_DRAW_BUFFER5 0x882A
|
||||
#define GL_DRAW_BUFFER6 0x882B
|
||||
#define GL_DRAW_BUFFER7 0x882C
|
||||
#define GL_DRAW_BUFFER8 0x882D
|
||||
#define GL_DRAW_BUFFER9 0x882E
|
||||
#define GL_DRAW_BUFFER10 0x882F
|
||||
#define GL_DRAW_BUFFER11 0x8830
|
||||
#define GL_DRAW_BUFFER12 0x8831
|
||||
#define GL_DRAW_BUFFER13 0x8832
|
||||
#define GL_DRAW_BUFFER14 0x8833
|
||||
#define GL_DRAW_BUFFER15 0x8834
|
||||
#define GL_BLEND_EQUATION_ALPHA 0x883D
|
||||
#define GL_POINT_SPRITE 0x8861
|
||||
#define GL_COORD_REPLACE 0x8862
|
||||
#define GL_MAX_VERTEX_ATTRIBS 0x8869
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
|
||||
#define GL_MAX_TEXTURE_COORDS 0x8871
|
||||
#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
|
||||
#define GL_FRAGMENT_SHADER 0x8B30
|
||||
#define GL_VERTEX_SHADER 0x8B31
|
||||
#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
|
||||
#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
|
||||
#define GL_MAX_VARYING_FLOATS 0x8B4B
|
||||
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
|
||||
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
||||
#define GL_SHADER_TYPE 0x8B4F
|
||||
#define GL_FLOAT_VEC2 0x8B50
|
||||
#define GL_FLOAT_VEC3 0x8B51
|
||||
#define GL_FLOAT_VEC4 0x8B52
|
||||
#define GL_INT_VEC2 0x8B53
|
||||
#define GL_INT_VEC3 0x8B54
|
||||
#define GL_INT_VEC4 0x8B55
|
||||
#define GL_BOOL 0x8B56
|
||||
#define GL_BOOL_VEC2 0x8B57
|
||||
#define GL_BOOL_VEC3 0x8B58
|
||||
#define GL_BOOL_VEC4 0x8B59
|
||||
#define GL_FLOAT_MAT2 0x8B5A
|
||||
#define GL_FLOAT_MAT3 0x8B5B
|
||||
#define GL_FLOAT_MAT4 0x8B5C
|
||||
#define GL_SAMPLER_1D 0x8B5D
|
||||
#define GL_SAMPLER_2D 0x8B5E
|
||||
#define GL_SAMPLER_3D 0x8B5F
|
||||
#define GL_SAMPLER_CUBE 0x8B60
|
||||
#define GL_SAMPLER_1D_SHADOW 0x8B61
|
||||
#define GL_SAMPLER_2D_SHADOW 0x8B62
|
||||
#define GL_DELETE_STATUS 0x8B80
|
||||
#define GL_COMPILE_STATUS 0x8B81
|
||||
#define GL_LINK_STATUS 0x8B82
|
||||
#define GL_VALIDATE_STATUS 0x8B83
|
||||
#define GL_INFO_LOG_LENGTH 0x8B84
|
||||
#define GL_ATTACHED_SHADERS 0x8B85
|
||||
#define GL_ACTIVE_UNIFORMS 0x8B86
|
||||
#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
||||
#define GL_SHADER_SOURCE_LENGTH 0x8B88
|
||||
#define GL_ACTIVE_ATTRIBUTES 0x8B89
|
||||
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
|
||||
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
|
||||
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
||||
#define GL_CURRENT_PROGRAM 0x8B8D
|
||||
#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
|
||||
#define GL_LOWER_LEFT 0x8CA1
|
||||
#define GL_UPPER_LEFT 0x8CA2
|
||||
#define GL_STENCIL_BACK_REF 0x8CA3
|
||||
#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
|
||||
#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_multitexture
|
||||
#define GL_TEXTURE0_ARB 0x84C0
|
||||
#define GL_TEXTURE1_ARB 0x84C1
|
||||
@@ -825,6 +912,48 @@ extern "C" {
|
||||
#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_color_buffer_float
|
||||
#define GL_RGBA_FLOAT_MODE_ARB 0x8820
|
||||
#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
|
||||
#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
|
||||
#define GL_CLAMP_READ_COLOR_ARB 0x891C
|
||||
#define GL_FIXED_ONLY_ARB 0x891D
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_half_float_pixel
|
||||
#define GL_HALF_FLOAT_ARB 0x140B
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_texture_float
|
||||
#define GL_TEXTURE_RED_TYPE_ARB 0x8C10
|
||||
#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11
|
||||
#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12
|
||||
#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13
|
||||
#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
|
||||
#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15
|
||||
#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16
|
||||
#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17
|
||||
#define GL_RGBA32F_ARB 0x8814
|
||||
#define GL_RGB32F_ARB 0x8815
|
||||
#define GL_ALPHA32F_ARB 0x8816
|
||||
#define GL_INTENSITY32F_ARB 0x8817
|
||||
#define GL_LUMINANCE32F_ARB 0x8818
|
||||
#define GL_LUMINANCE_ALPHA32F_ARB 0x8819
|
||||
#define GL_RGBA16F_ARB 0x881A
|
||||
#define GL_RGB16F_ARB 0x881B
|
||||
#define GL_ALPHA16F_ARB 0x881C
|
||||
#define GL_INTENSITY16F_ARB 0x881D
|
||||
#define GL_LUMINANCE16F_ARB 0x881E
|
||||
#define GL_LUMINANCE_ALPHA16F_ARB 0x881F
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_pixel_buffer_object
|
||||
#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
|
||||
#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
|
||||
#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
|
||||
#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_abgr
|
||||
#define GL_ABGR_EXT 0x8000
|
||||
#endif
|
||||
@@ -2793,6 +2922,11 @@ extern "C" {
|
||||
#ifndef GL_ATI_vertex_attrib_array_object
|
||||
#endif
|
||||
|
||||
#ifndef GL_OES_read_format
|
||||
#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
|
||||
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_depth_bounds_test
|
||||
#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890
|
||||
#define GL_DEPTH_BOUNDS_EXT 0x8891
|
||||
@@ -2850,6 +2984,11 @@ extern "C" {
|
||||
/*************************************************************/
|
||||
|
||||
#include <stddef.h>
|
||||
#ifndef GL_VERSION_2_0
|
||||
/* GL type for program/shader text */
|
||||
typedef char GLchar; /* native character */
|
||||
#endif
|
||||
|
||||
#ifndef GL_VERSION_1_5
|
||||
/* GL types for handling large vertex buffer objects */
|
||||
typedef ptrdiff_t GLintptr;
|
||||
@@ -2863,13 +3002,17 @@ typedef ptrdiff_t GLsizeiptrARB;
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_shader_objects
|
||||
/* GL types for handling shader object handles and characters */
|
||||
/* GL types for handling shader object handles and program/shader text */
|
||||
typedef char GLcharARB; /* native character */
|
||||
typedef unsigned int GLhandleARB; /* shader object handle */
|
||||
#endif
|
||||
|
||||
/* GL types for "half" precision (s10e5) float data in host memory */
|
||||
#ifndef GL_ARB_half_float_pixel
|
||||
typedef unsigned short GLhalfARB;
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_half_float
|
||||
/* GL type for representing NVIDIA "half" floating point type in host memory */
|
||||
typedef unsigned short GLhalfNV;
|
||||
#endif
|
||||
|
||||
@@ -3193,6 +3336,198 @@ typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pn
|
||||
typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
|
||||
#endif
|
||||
|
||||
#ifndef GL_VERSION_2_0
|
||||
#define GL_VERSION_2_0 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum);
|
||||
GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *);
|
||||
GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
|
||||
GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
|
||||
GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint);
|
||||
GLAPI void APIENTRY glAttachShader (GLuint, GLuint);
|
||||
GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *);
|
||||
GLAPI void APIENTRY glCompileShader (GLuint);
|
||||
GLAPI GLuint APIENTRY glCreateProgram (void);
|
||||
GLAPI GLuint APIENTRY glCreateShader (GLenum);
|
||||
GLAPI void APIENTRY glDeleteProgram (GLuint);
|
||||
GLAPI void APIENTRY glDeleteShader (GLuint);
|
||||
GLAPI void APIENTRY glDetachShader (GLuint, GLuint);
|
||||
GLAPI void APIENTRY glDisableVertexAttribArray (GLuint);
|
||||
GLAPI void APIENTRY glEnableVertexAttribArray (GLuint);
|
||||
GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
|
||||
GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
|
||||
GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *);
|
||||
GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *);
|
||||
GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *);
|
||||
GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
|
||||
GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *);
|
||||
GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
|
||||
GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *);
|
||||
GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *);
|
||||
GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *);
|
||||
GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *);
|
||||
GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
|
||||
GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
|
||||
GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *);
|
||||
GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *);
|
||||
GLAPI GLboolean APIENTRY glIsProgram (GLuint);
|
||||
GLAPI GLboolean APIENTRY glIsShader (GLuint);
|
||||
GLAPI void APIENTRY glLinkProgram (GLuint);
|
||||
GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *);
|
||||
GLAPI void APIENTRY glUseProgram (GLuint);
|
||||
GLAPI void APIENTRY glUniform1f (GLint, GLfloat);
|
||||
GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glUniform1i (GLint, GLint);
|
||||
GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint);
|
||||
GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint);
|
||||
GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint);
|
||||
GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *);
|
||||
GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *);
|
||||
GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *);
|
||||
GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *);
|
||||
GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *);
|
||||
GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *);
|
||||
GLAPI void APIENTRY glValidateProgram (GLuint);
|
||||
GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble);
|
||||
GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *);
|
||||
GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat);
|
||||
GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *);
|
||||
GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort);
|
||||
GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *);
|
||||
GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble);
|
||||
GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *);
|
||||
GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *);
|
||||
GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort);
|
||||
GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *);
|
||||
GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble);
|
||||
GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *);
|
||||
GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *);
|
||||
GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
|
||||
GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *);
|
||||
GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *);
|
||||
GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *);
|
||||
GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
|
||||
GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *);
|
||||
GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
|
||||
GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *);
|
||||
GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *);
|
||||
GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort);
|
||||
GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *);
|
||||
GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *);
|
||||
GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *);
|
||||
GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *);
|
||||
GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
|
||||
typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
|
||||
typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||
typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
|
||||
typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
|
||||
typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
|
||||
typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
|
||||
typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
|
||||
typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
|
||||
typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
|
||||
typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||
typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||
typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||
typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
|
||||
typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||
typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||
typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
|
||||
typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||
typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
|
||||
typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
|
||||
typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
|
||||
typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
|
||||
typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
|
||||
typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||
typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_multitexture
|
||||
#define GL_ARB_multitexture 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
@@ -3752,6 +4087,26 @@ typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs)
|
||||
#define GL_ARB_texture_rectangle 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_color_buffer_float
|
||||
#define GL_ARB_color_buffer_float 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glClampColorARB (GLenum, GLenum);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_half_float_pixel
|
||||
#define GL_ARB_half_float_pixel 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_texture_float
|
||||
#define GL_ARB_texture_float 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_pixel_buffer_object
|
||||
#define GL_ARB_pixel_buffer_object 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_abgr
|
||||
#define GL_EXT_abgr 1
|
||||
#endif
|
||||
@@ -5974,6 +6329,10 @@ typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index,
|
||||
typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
|
||||
#endif
|
||||
|
||||
#ifndef GL_OES_read_format
|
||||
#define GL_OES_read_format 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_depth_bounds_test
|
||||
#define GL_EXT_depth_bounds_test 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.2
|
||||
* Version: 6.3
|
||||
*
|
||||
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -495,6 +495,17 @@ extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attr
|
||||
#endif /* GLX_ARB_render_texture */
|
||||
|
||||
|
||||
/*
|
||||
* Remove this when glxext.h is updated.
|
||||
*/
|
||||
#ifndef GLX_NV_float_buffer
|
||||
#define GLX_NV_float_buffer 1
|
||||
|
||||
#define GLX_FLOAT_COMPONENTS_NV 0x20B0
|
||||
|
||||
#endif /* GLX_NV_float_buffer */
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ INCDIR = $(TOP)/include
|
||||
|
||||
OSMESA_LIBS = -L$(LIB_DIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
|
||||
|
||||
OSMESA16_LIBS = -L$(LIB_DIR) -lglut -lOSMesa16 -lGLU -lGL $(APP_LIB_DEPS)
|
||||
|
||||
OSMESA32_LIBS = -L$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS)
|
||||
|
||||
LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(GLU_LIB_NAME) $(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||
@@ -66,32 +68,63 @@ PROGS = \
|
||||
|
||||
|
||||
# make executable from .c file:
|
||||
.c: $(LIB_DEP)
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
||||
.c: $(LIB_DEP) readtex.o
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@
|
||||
|
||||
|
||||
##### TARGETS #####
|
||||
|
||||
default: readtex.c readtex.h $(PROGS)
|
||||
default: readtex.o $(PROGS)
|
||||
|
||||
|
||||
readtex.c: $(TOP)/progs/util/readtex.c
|
||||
cp $< .
|
||||
|
||||
readtex.h: $(TOP)/progs/util/readtex.h
|
||||
cp $< .
|
||||
|
||||
readtex.o: readtex.c readtex.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) readtex.c
|
||||
|
||||
|
||||
showbuffer.c: $(TOP)/progs/util/showbuffer.c
|
||||
cp $< .
|
||||
|
||||
showbuffer.h: $(TOP)/progs/util/showbuffer.h
|
||||
cp $< .
|
||||
|
||||
showbuffer.o: showbuffer.c showbuffer.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) showbuffer.c
|
||||
|
||||
|
||||
reflect: reflect.o showbuffer.o readtex.o
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) reflect.o showbuffer.o readtex.o $(APP_LIB_DEPS) -o $@
|
||||
|
||||
reflect.o: reflect.c showbuffer.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
|
||||
|
||||
|
||||
shadowtex: shadowtex.o showbuffer.o
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) shadowtex.o showbuffer.o $(APP_LIB_DEPS) -o $@
|
||||
|
||||
shadowtex.o: shadowtex.c showbuffer.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
|
||||
|
||||
# special case: need the -lOSMesa library:
|
||||
osdemo: osdemo.c
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
|
||||
|
||||
# another special case: need the -lOSMesa16 library:
|
||||
osdemo16: osdemo16.c
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@
|
||||
|
||||
# another special case: need the -lOSMesa32 library:
|
||||
osdemo32: osdemo32.c
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
-rm -f $(PROGS)
|
||||
-rm -f *.o *~
|
||||
-rm -f readtex.[ch]
|
||||
|
||||
|
||||
readtex.c:
|
||||
cp $(TOP)/progs/util/readtex.c .
|
||||
|
||||
readtex.h:
|
||||
cp $(TOP)/progs/util/readtex.h .
|
||||
|
||||
# special case: need the -lOSMesa library:
|
||||
osdemo: osdemo.c
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
|
||||
|
||||
# another special case: need the -lOSMesa32 library:
|
||||
osdemo32: osdemo32.c
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@
|
||||
|
||||
|
@@ -51,16 +51,20 @@ static void Redisplay( void )
|
||||
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
|
||||
|
||||
if (PixelLight) {
|
||||
#if defined(GL_ARB_fragment_program)
|
||||
glProgramLocalParameter4fvARB_func(GL_FRAGMENT_PROGRAM_ARB,
|
||||
LIGHTPOS, LightPos);
|
||||
glEnable(GL_FRAGMENT_PROGRAM_ARB);
|
||||
glEnable(GL_VERTEX_PROGRAM_ARB);
|
||||
#endif
|
||||
glDisable(GL_LIGHTING);
|
||||
}
|
||||
else {
|
||||
glLightfv(GL_LIGHT0, GL_POSITION, LightPos);
|
||||
#if defined(GL_ARB_fragment_program)
|
||||
glDisable(GL_FRAGMENT_PROGRAM_ARB);
|
||||
glDisable(GL_VERTEX_PROGRAM_ARB);
|
||||
#endif
|
||||
glEnable(GL_LIGHTING);
|
||||
}
|
||||
|
||||
@@ -298,6 +302,7 @@ static void Init( void )
|
||||
glDeleteProgramsARB_func = (PFNGLDELETEPROGRAMSARBPROC) glutGetProcAddress("glDeleteProgramsARB");
|
||||
assert(glDeleteProgramsARB_func);
|
||||
|
||||
#if defined(GL_ARB_fragment_program)
|
||||
/*
|
||||
* Fragment program
|
||||
*/
|
||||
@@ -349,6 +354,7 @@ static void Init( void )
|
||||
exit(0);
|
||||
}
|
||||
assert(glIsProgramARB_func(VertProg));
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Misc init
|
||||
|
@@ -115,6 +115,7 @@ static void Display( void )
|
||||
glScalef(0.3, 0.3, 1.0);
|
||||
glRotatef(-90.0 * Xpos, 0, 0, 1);
|
||||
|
||||
#if defined(GL_ARB_occlusion_query)
|
||||
#if TEST_DISPLAY_LISTS
|
||||
glNewList(10, GL_COMPILE);
|
||||
glBeginQueryARB(GL_SAMPLES_PASSED_ARB, OccQuery);
|
||||
@@ -152,6 +153,7 @@ static void Display( void )
|
||||
/* turn off occlusion testing */
|
||||
glColorMask(1, 1, 1, 1);
|
||||
glDepthMask(GL_TRUE);
|
||||
#endif /* GL_ARB_occlusion_query */
|
||||
|
||||
/* draw the orange rect, so we can see what's going on */
|
||||
glColor3f(0.8, 0.5, 0);
|
||||
@@ -173,6 +175,7 @@ static void Display( void )
|
||||
glLoadIdentity();
|
||||
|
||||
glColor3f(1, 1, 1);
|
||||
#if defined(GL_ARB_occlusion_query)
|
||||
sprintf(s, " %4d Fragments Visible", passed);
|
||||
glRasterPos3f(-0.50, -0.7, 0);
|
||||
PrintString(s);
|
||||
@@ -180,6 +183,10 @@ static void Display( void )
|
||||
glRasterPos3f(-0.25, -0.8, 0);
|
||||
PrintString("Fully Occluded");
|
||||
}
|
||||
#else
|
||||
glRasterPos3f(-0.25, -0.8, 0);
|
||||
PrintString("GL_ARB_occlusion_query not available at compile time");
|
||||
#endif /* GL_ARB_occlusion_query */
|
||||
|
||||
glutSwapBuffers();
|
||||
}
|
||||
@@ -238,17 +245,21 @@ static void Init( void )
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
#if defined(GL_ARB_occlusion_query)
|
||||
glGetQueryivARB(GL_SAMPLES_PASSED_ARB, GL_QUERY_COUNTER_BITS_ARB, &bits);
|
||||
if (!bits) {
|
||||
printf("Hmmm, GL_QUERY_COUNTER_BITS_ARB is zero!\n");
|
||||
exit(-1);
|
||||
}
|
||||
#endif /* GL_ARB_occlusion_query */
|
||||
|
||||
glGetIntegerv(GL_DEPTH_BITS, &bits);
|
||||
printf("Depthbits: %d\n", bits);
|
||||
|
||||
#if defined(GL_ARB_occlusion_query)
|
||||
glGenQueriesARB(1, &OccQuery);
|
||||
assert(OccQuery > 0);
|
||||
#endif /* GL_ARB_occlusion_query */
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#define COS(X) cos( (X) * 3.14159/180.0 )
|
||||
#define SIN(X) sin( (X) * 3.14159/180.0 )
|
||||
@@ -25,12 +27,12 @@
|
||||
GLboolean IndexMode = GL_FALSE;
|
||||
GLuint Ball;
|
||||
GLenum Mode;
|
||||
GLfloat Zrot = 0.0, Zstep = 6.0;
|
||||
GLfloat Zrot = 0.0, Zstep = 180.0;
|
||||
GLfloat Xpos = 0.0, Ypos = 1.0;
|
||||
GLfloat Xvel = 0.2, Yvel = 0.0;
|
||||
GLfloat Xvel = 2.0, Yvel = 0.0;
|
||||
GLfloat Xmin = -4.0, Xmax = 4.0;
|
||||
GLfloat Ymin = -3.8, Ymax = 4.0;
|
||||
GLfloat G = -0.1;
|
||||
GLfloat G = -9.8;
|
||||
|
||||
static GLuint
|
||||
make_ball(void)
|
||||
@@ -149,10 +151,17 @@ static void
|
||||
idle(void)
|
||||
{
|
||||
static float vel0 = -100.0;
|
||||
static double t0 = -1.;
|
||||
double t, dt;
|
||||
t = glutGet(GLUT_ELAPSED_TIME) / 1000.;
|
||||
if (t0 < 0.)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
Zrot += Zstep;
|
||||
Zrot += Zstep*dt;
|
||||
|
||||
Xpos += Xvel;
|
||||
Xpos += Xvel*dt;
|
||||
if (Xpos >= Xmax) {
|
||||
Xpos = Xmax;
|
||||
Xvel = -Xvel;
|
||||
@@ -163,8 +172,8 @@ idle(void)
|
||||
Xvel = -Xvel;
|
||||
Zstep = -Zstep;
|
||||
}
|
||||
Ypos += Yvel;
|
||||
Yvel += G;
|
||||
Ypos += Yvel*dt;
|
||||
Yvel += G*dt;
|
||||
if (Ypos < Ymin) {
|
||||
Ypos = Ymin;
|
||||
if (vel0 == -100.0)
|
||||
|
@@ -40,7 +40,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "GL/glut.h"
|
||||
#include "../util/readtex.c" /* a hack */
|
||||
#include "readtex.h"
|
||||
|
||||
|
||||
static GLfloat Xrot = 0, Yrot = 0;
|
||||
|
@@ -44,24 +44,30 @@ realclean :
|
||||
|
||||
bounce.exe; : bounce.obj $(LIB_DEP)
|
||||
clearspd.exe; : clearspd.obj $(LIB_DEP)
|
||||
drawpix.exe; : drawpix.obj $(LIB_DEP)
|
||||
drawpix.exe; : drawpix.obj $(LIB_DEP) [-.util]readtex.obj
|
||||
cxxlink $(MMS$TARGET_NAME),[-.util]readtex.obj,$(GL_LIBS)
|
||||
gamma.exe; : gamma.obj $(LIB_DEP)
|
||||
gears.exe; : gears.obj $(LIB_DEP)
|
||||
glinfo.exe; : glinfo.obj $(LIB_DEP)
|
||||
glutfx.exe; : glutfx.obj $(LIB_DEP)
|
||||
isosurf.exe; : isosurf.obj $(LIB_DEP)
|
||||
isosurf.exe; : isosurf.obj $(LIB_DEP) [-.util]readtex.obj
|
||||
cxxlink $(MMS$TARGET_NAME),[-.util]readtex.obj,$(GL_LIBS)
|
||||
morph3d.exe; : morph3d.obj $(LIB_DEP)
|
||||
osdemo.exe; : osdemo.obj $(LIB_DEP)
|
||||
paltex.exe; : paltex.obj $(LIB_DEP)
|
||||
pointblast.exe; : pointblast.obj $(LIB_DEP)
|
||||
reflect.exe; : reflect.obj $(LIB_DEP)
|
||||
reflect.exe; : reflect.obj [-.util]readtex.obj [-.util]showbuffer.obj\
|
||||
$(LIB_DEP)
|
||||
cxxlink $(MMS$TARGET_NAME),[-.util]readtex,showbuffer,$(GL_LIBS)
|
||||
spectex.exe; : spectex.obj $(LIB_DEP)
|
||||
stex3d.exe; : stex3d.obj $(LIB_DEP)
|
||||
tessdemo.exe; : tessdemo.obj $(LIB_DEP)
|
||||
texcyl.exe; : texcyl.obj $(LIB_DEP)
|
||||
texcyl.exe; : texcyl.obj [-.util]readtex.obj $(LIB_DEP)
|
||||
cxxlink $(MMS$TARGET_NAME),[-.util]readtex.obj,$(GL_LIBS)
|
||||
texobj.exe; : texobj.obj $(LIB_DEP)
|
||||
trispd.exe; : trispd.obj $(LIB_DEP)
|
||||
winpos.exe; : winpos.obj $(LIB_DEP)
|
||||
winpos.exe; : winpos.obj [-.util]readtex.obj $(LIB_DEP)
|
||||
cxxlink $(MMS$TARGET_NAME),[-.util]readtex.obj,$(GL_LIBS)
|
||||
|
||||
|
||||
bounce.obj : bounce.c
|
||||
|
@@ -8,9 +8,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
|
||||
#define IMAGE_FILE "../images/girl.rgb"
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
@@ -17,7 +18,7 @@
|
||||
#endif
|
||||
|
||||
#include <GL/glut.h>
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
|
||||
#ifdef XMESA
|
||||
#include "GL/xmesa.h"
|
||||
@@ -98,8 +99,8 @@ part;
|
||||
static float treepos[NUMTREE][3];
|
||||
|
||||
static float black[3] = { 0.0, 0.0, 0.0 };
|
||||
static float blu[3] = { 0.0, 0.2, 1.0 };
|
||||
static float blu2[3] = { 0.0, 1.0, 1.0 };
|
||||
static float blu[3] = { 1.0, 0.2, 0.0 };
|
||||
static float blu2[3] = { 1.0, 1.0, 0.0 };
|
||||
|
||||
static float fogcolor[4] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
|
||||
@@ -136,7 +137,7 @@ static GLuint treeid;
|
||||
static float obs[3] = { 2.0, 1.0, 0.0 };
|
||||
static float dir[3];
|
||||
static float v = 0.0;
|
||||
static float alpha = -90.0;
|
||||
static float alpha = -84.0;
|
||||
static float beta = 90.0;
|
||||
|
||||
static float
|
||||
@@ -384,6 +385,12 @@ drawfire(void)
|
||||
{
|
||||
static char frbuf[80] = "";
|
||||
int j;
|
||||
static double t0 = -1.;
|
||||
double t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = (t - t0) * 1.0;
|
||||
t0 = t;
|
||||
|
||||
dojoy();
|
||||
|
||||
@@ -563,10 +570,10 @@ key(unsigned char key, int x, int y)
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
v += 0.01;
|
||||
v += 0.0005;
|
||||
break;
|
||||
case 'z':
|
||||
v -= 0.01;
|
||||
v -= 0.0005;
|
||||
break;
|
||||
|
||||
case 'j':
|
||||
@@ -709,12 +716,12 @@ main(int ac, char **av)
|
||||
/* Default settings */
|
||||
|
||||
np = 800;
|
||||
eject_r = 0.1;
|
||||
eject_r = -0.65;
|
||||
dt = 0.015;
|
||||
eject_vy = 4;
|
||||
eject_vl = 1;
|
||||
shadows = 1;
|
||||
ridtri = 0.1;
|
||||
ridtri = 0.25;
|
||||
|
||||
maxage = 1.0 / dt;
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include <math.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c" /* the compulsory hack */
|
||||
#include "readtex.h"
|
||||
|
||||
#define TEXTURE_FILE "../images/bw.rgb"
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
|
||||
#define DEPTH 15.0f
|
||||
|
||||
#if !defined(GLAPIENTRYP)
|
||||
# define GLAPIENTRYP *
|
||||
#endif
|
||||
|
||||
typedef void (GLAPIENTRYP GLFOGCOORDFEXTPROC) (GLfloat f);
|
||||
typedef void (GLAPIENTRYP GLFOGCOORDPOINTEREXTPROC) (GLenum, GLsizei, const GLvoid *);
|
||||
|
||||
|
@@ -37,15 +37,19 @@ static void Display( void )
|
||||
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
|
||||
|
||||
if (PixelLight) {
|
||||
#if defined(GL_NV_fragment_program)
|
||||
NAMED_PARAMETER4FV(FragProg, "LightPos", LightPos);
|
||||
glEnable(GL_FRAGMENT_PROGRAM_NV);
|
||||
glEnable(GL_VERTEX_PROGRAM_NV);
|
||||
#endif
|
||||
glDisable(GL_LIGHTING);
|
||||
}
|
||||
else {
|
||||
glLightfv(GL_LIGHT0, GL_POSITION, LightPos);
|
||||
#if defined(GL_NV_fragment_program)
|
||||
glDisable(GL_FRAGMENT_PROGRAM_NV);
|
||||
glDisable(GL_VERTEX_PROGRAM_NV);
|
||||
#endif
|
||||
glEnable(GL_LIGHTING);
|
||||
}
|
||||
|
||||
@@ -216,6 +220,7 @@ static void Init( void )
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#if defined(GL_NV_fragment_program)
|
||||
glGenProgramsNV(1, &FragProg);
|
||||
assert(FragProg > 0);
|
||||
glGenProgramsNV(1, &VertProg);
|
||||
@@ -243,6 +248,7 @@ static void Init( void )
|
||||
glBindProgramNV(GL_VERTEX_PROGRAM_NV, VertProg);
|
||||
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, 0, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV);
|
||||
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, 4, GL_MODELVIEW, GL_INVERSE_TRANSPOSE_NV);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Misc init
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* 3-D gear wheels. This program is in the public domain.
|
||||
*
|
||||
@@ -28,6 +27,7 @@ static GLint T0 = 0;
|
||||
static GLint Frames = 0;
|
||||
static GLint autoexit = 0;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Draw a gear wheel. You'll probably want to call this function when
|
||||
@@ -215,7 +215,14 @@ draw(void)
|
||||
static void
|
||||
idle(void)
|
||||
{
|
||||
angle += 2.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
angle += 70.0 * dt; /* 90 degrees per second */
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -912,14 +912,18 @@ draw (void)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
idle (void)
|
||||
{
|
||||
int i;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
for (i = 0; i < number_of_gears; i++)
|
||||
g[i].angle += g[i].angular_velocity;
|
||||
g[i].angle += g[i].angular_velocity * dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,7 @@ APOSITION = -7.000 0.000 0.000
|
||||
ACOLOR = 0.800 0.500 0.200
|
||||
ALENGTH = 6.000
|
||||
AMOTORED = 1
|
||||
AANGULARVELOCITY = 2.000
|
||||
AANGULARVELOCITY = 90.000
|
||||
ADIRECTION = 1
|
||||
|
||||
ANAME = AXLE2
|
||||
|
@@ -21,9 +21,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c" /* I know, this is a hack. */
|
||||
#include "readtex.h"
|
||||
|
||||
#define SPECULAR_TEXTURE_FILE "../images/reflect.rgb"
|
||||
#define BASE_TEXTURE_FILE "../images/tile.rgb"
|
||||
@@ -43,7 +44,7 @@ static GLuint Object = 0;
|
||||
static GLboolean Animate = GL_TRUE;
|
||||
|
||||
static GLfloat Xrot = 0.0, Yrot = 0.0, Zrot = 0.0;
|
||||
static GLfloat DXrot = 1.0, DYrot = 2.5;
|
||||
static GLfloat DXrot = 20.0, DYrot = 50.;
|
||||
|
||||
static GLfloat Black[4] = { 0, 0, 0, 0 };
|
||||
static GLfloat White[4] = { 1, 1, 1, 1 };
|
||||
@@ -58,13 +59,18 @@ static GLint T0 = 0;
|
||||
static GLint Frames = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
static void Idle( void )
|
||||
{
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
if (Animate) {
|
||||
Xrot += DXrot;
|
||||
Yrot += DYrot;
|
||||
Xrot += DXrot*dt;
|
||||
Yrot += DYrot*dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined (WIN32)|| defined(_WIN32)
|
||||
#include <windows.h>
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
|
||||
#ifdef XMESA
|
||||
#include "GL/xmesa.h"
|
||||
@@ -543,6 +543,12 @@ draw(void)
|
||||
static GLfloat alpha = 0.0f;
|
||||
static GLfloat beta = 0.0f;
|
||||
static float fr = 0.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
dojoy();
|
||||
|
||||
@@ -586,8 +592,8 @@ draw(void)
|
||||
drawipers(0, FROM_NONE);
|
||||
glPopMatrix();
|
||||
|
||||
alpha += 0.5f;
|
||||
beta += 0.3f;
|
||||
alpha += 4.f * dt;
|
||||
beta += 2.4f * dt;
|
||||
|
||||
glDisable(GL_LIGHTING);
|
||||
glDisable(GL_LIGHT0);
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "GL/glut.h"
|
||||
|
||||
#include "readtex.c" /* I know, this is a hack. KW: me too. */
|
||||
#include "readtex.h"
|
||||
#define TEXTURE_FILE "../images/reflect.rgb"
|
||||
|
||||
#define LIT 0x00000001
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#include <GL/glut.h>
|
||||
#include <GL/glext.h>
|
||||
|
||||
#include "readtex.c" /* I know, this is a hack. */
|
||||
#include "readtex.h"
|
||||
|
||||
#define TEXTURE_FILE "../images/girl.rgb"
|
||||
|
||||
|
@@ -660,6 +660,13 @@ static void draw_ico( void )
|
||||
}
|
||||
|
||||
static void draw ( void ) {
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
|
||||
|
||||
glPushMatrix();
|
||||
@@ -681,7 +688,7 @@ static void draw ( void ) {
|
||||
|
||||
glutSwapBuffers();
|
||||
|
||||
step+=0.05;
|
||||
step += dt;
|
||||
}
|
||||
|
||||
static void idle_( void )
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c" /* I know, this is a hack. */
|
||||
#include "readtex.h"
|
||||
|
||||
#define TEXTURE_1_FILE "../images/girl.rgb"
|
||||
#define TEXTURE_2_FILE "../images/reflect.rgb"
|
||||
@@ -36,7 +36,6 @@ static GLfloat drift_increment = 0.005;
|
||||
static GLfloat Xrot = 20.0, Yrot = 30.0, Zrot = 0.0;
|
||||
|
||||
|
||||
|
||||
static void Idle( void )
|
||||
{
|
||||
if (Animate) {
|
||||
|
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Compile with something like this:
|
||||
*
|
||||
* gcc osdemo16.c -I../include -L../lib -lOSMesa16 -lm -o osdemo16
|
||||
* gcc osdemo16.c -I../../include -L../../lib -lglut -lGLU -lOSMesa16 -lm -o osdemo16
|
||||
*/
|
||||
|
||||
|
||||
@@ -128,6 +128,11 @@ static void render_image( void )
|
||||
|
||||
glPopMatrix();
|
||||
|
||||
/* This is very important!!!
|
||||
* Make sure buffered commands are finished!!!
|
||||
*/
|
||||
glFinish();
|
||||
|
||||
gluDeleteQuadric(qobj);
|
||||
|
||||
{
|
||||
@@ -173,6 +178,7 @@ write_targa(const char *filename, const GLushort *buffer, int width, int height)
|
||||
for (y=height-1; y>=0; y--) {
|
||||
for (x=0; x<width; x++) {
|
||||
i = (y*width + x) * 4;
|
||||
/* just write 8 high bits */
|
||||
fputc(ptr[i+2] >> 8, f); /* write blue */
|
||||
fputc(ptr[i+1] >> 8, f); /* write green */
|
||||
fputc(ptr[i] >> 8, f); /* write red */
|
||||
@@ -183,13 +189,13 @@ write_targa(const char *filename, const GLushort *buffer, int width, int height)
|
||||
|
||||
|
||||
static void
|
||||
write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
write_ppm(const char *filename, const GLushort *buffer, int width, int height)
|
||||
{
|
||||
const int binary = 0;
|
||||
FILE *f = fopen( filename, "w" );
|
||||
if (f) {
|
||||
int i, x, y;
|
||||
const GLubyte *ptr = buffer;
|
||||
const GLushort *ptr = buffer;
|
||||
if (binary) {
|
||||
fprintf(f,"P6\n");
|
||||
fprintf(f,"# ppm-file created by osdemo.c\n");
|
||||
@@ -200,9 +206,10 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
for (y=height-1; y>=0; y--) {
|
||||
for (x=0; x<width; x++) {
|
||||
i = (y*width + x) * 4;
|
||||
fputc(ptr[i], f); /* write red */
|
||||
fputc(ptr[i+1], f); /* write green */
|
||||
fputc(ptr[i+2], f); /* write blue */
|
||||
/* just write 8 high bits */
|
||||
fputc(ptr[i] >> 8, f); /* write red */
|
||||
fputc(ptr[i+1] >> 8, f); /* write green */
|
||||
fputc(ptr[i+2] >> 8, f); /* write blue */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -216,7 +223,8 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
for (y=height-1; y>=0; y--) {
|
||||
for (x=0; x<width; x++) {
|
||||
i = (y*width + x) * 4;
|
||||
fprintf(f, " %3d %3d %3d", ptr[i], ptr[i+1], ptr[i+2]);
|
||||
/* just write 8 high bits */
|
||||
fprintf(f, " %3d %3d %3d", ptr[i] >> 8, ptr[i+1] >> 8, ptr[i+2] >> 8);
|
||||
counter++;
|
||||
if (counter % 5 == 0)
|
||||
fprintf(f, "\n");
|
||||
@@ -231,7 +239,7 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
void *buffer;
|
||||
GLushort *buffer;
|
||||
|
||||
/* Create an RGBA-mode context */
|
||||
#if OSMESA_MAJOR_VERSION * 100 + OSMESA_MINOR_VERSION >= 305
|
||||
@@ -246,7 +254,7 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
/* Allocate the image buffer */
|
||||
buffer = malloc( WIDTH * HEIGHT * 4 * sizeof(GLushort));
|
||||
buffer = (GLushort *) malloc( WIDTH * HEIGHT * 4 * sizeof(GLushort));
|
||||
if (!buffer) {
|
||||
printf("Alloc image buffer failed!\n");
|
||||
return 0;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Compile with something like this:
|
||||
*
|
||||
* gcc osdemo32.c -I../include -L../lib -lOSMesa32 -lm -o osdemo32
|
||||
* gcc osdemo32.c -I../../include -L../../lib -lglut -lGLU -lOSMesa32 -lm -o osdemo32
|
||||
*/
|
||||
|
||||
|
||||
@@ -127,6 +127,11 @@ static void render_image( void )
|
||||
|
||||
glPopMatrix();
|
||||
|
||||
/* This is very important!!!
|
||||
* Make sure buffered commands are finished!!!
|
||||
*/
|
||||
glFinish();
|
||||
|
||||
gluDeleteQuadric(qobj);
|
||||
|
||||
{
|
||||
@@ -189,13 +194,13 @@ write_targa(const char *filename, const GLfloat *buffer, int width, int height)
|
||||
|
||||
|
||||
static void
|
||||
write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
write_ppm(const char *filename, const GLfloat *buffer, int width, int height)
|
||||
{
|
||||
const int binary = 0;
|
||||
FILE *f = fopen( filename, "w" );
|
||||
if (f) {
|
||||
int i, x, y;
|
||||
const GLubyte *ptr = buffer;
|
||||
const GLfloat *ptr = buffer;
|
||||
if (binary) {
|
||||
fprintf(f,"P6\n");
|
||||
fprintf(f,"# ppm-file created by osdemo.c\n");
|
||||
@@ -205,10 +210,17 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
f = fopen( filename, "ab" ); /* reopen in binary append mode */
|
||||
for (y=height-1; y>=0; y--) {
|
||||
for (x=0; x<width; x++) {
|
||||
int r, g, b;
|
||||
i = (y*width + x) * 4;
|
||||
fputc(ptr[i], f); /* write red */
|
||||
fputc(ptr[i+1], f); /* write green */
|
||||
fputc(ptr[i+2], f); /* write blue */
|
||||
r = (int) (ptr[i+0] * 255.0);
|
||||
g = (int) (ptr[i+1] * 255.0);
|
||||
b = (int) (ptr[i+2] * 255.0);
|
||||
if (r > 255) r = 255;
|
||||
if (g > 255) g = 255;
|
||||
if (b > 255) b = 255;
|
||||
fputc(r, f); /* write red */
|
||||
fputc(g, f); /* write green */
|
||||
fputc(b, f); /* write blue */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -221,8 +233,15 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
fprintf(f,"255\n");
|
||||
for (y=height-1; y>=0; y--) {
|
||||
for (x=0; x<width; x++) {
|
||||
int r, g, b;
|
||||
i = (y*width + x) * 4;
|
||||
fprintf(f, " %3d %3d %3d", ptr[i], ptr[i+1], ptr[i+2]);
|
||||
r = (int) (ptr[i+0] * 255.0);
|
||||
g = (int) (ptr[i+1] * 255.0);
|
||||
b = (int) (ptr[i+2] * 255.0);
|
||||
if (r > 255) r = 255;
|
||||
if (g > 255) g = 255;
|
||||
if (b > 255) b = 255;
|
||||
fprintf(f, " %3d %3d %3d", r, g, b);
|
||||
counter++;
|
||||
if (counter % 5 == 0)
|
||||
fprintf(f, "\n");
|
||||
@@ -237,7 +256,7 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
void *buffer;
|
||||
GLfloat *buffer;
|
||||
|
||||
/* Create an RGBA-mode context */
|
||||
#if OSMESA_MAJOR_VERSION * 100 + OSMESA_MINOR_VERSION >= 305
|
||||
@@ -252,7 +271,7 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
/* Allocate the image buffer */
|
||||
buffer = malloc( WIDTH * HEIGHT * 4 * sizeof(GLfloat));
|
||||
buffer = (GLfloat *) malloc( WIDTH * HEIGHT * 4 * sizeof(GLfloat));
|
||||
if (!buffer) {
|
||||
printf("Alloc image buffer failed!\n");
|
||||
return 0;
|
||||
|
@@ -56,7 +56,7 @@
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
#include <GL/glext.h>
|
||||
#include "readtex.c" /* I know, this is a hack. */
|
||||
#include "readtex.h"
|
||||
|
||||
#define TEXTURE_FILE "../images/girl.rgb"
|
||||
|
||||
|
@@ -79,7 +79,6 @@ static float float_rand(void) { return rand() / (float) RAND_MAX; }
|
||||
|
||||
#define MEAN_VELOCITY 3.0
|
||||
#define GRAVITY 2.0
|
||||
#define TIME_DELTA 0.025 /* The speed of time. */
|
||||
|
||||
/* Modeling units of ground extent in each X and Z direction. */
|
||||
#define EDGE 12
|
||||
@@ -114,6 +113,13 @@ updatePointList(void)
|
||||
float distance;
|
||||
int i;
|
||||
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
motion = 0;
|
||||
for (i=0; i<numPoints; i++) {
|
||||
distance = pointVelocity[i][0] * theTime;
|
||||
@@ -139,9 +145,9 @@ updatePointList(void)
|
||||
pointTime[i] = 0.0; /* Reset the particles sense of up time. */
|
||||
}
|
||||
motion = 1;
|
||||
pointTime[i] += TIME_DELTA;
|
||||
pointTime[i] += dt;
|
||||
}
|
||||
theTime += TIME_DELTA;
|
||||
theTime += dt;
|
||||
if (!motion && !spin) {
|
||||
if (repeat) {
|
||||
makePointList();
|
||||
@@ -264,7 +270,7 @@ menu(int option)
|
||||
case 0:
|
||||
makePointList();
|
||||
break;
|
||||
#if GL_ARB_point_parameters
|
||||
#ifdef GL_ARB_point_parameters
|
||||
case 1:
|
||||
glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, constant);
|
||||
break;
|
||||
@@ -281,7 +287,7 @@ menu(int option)
|
||||
case 5:
|
||||
blend = 0;
|
||||
break;
|
||||
#if GL_ARB_point_parameters
|
||||
#ifdef GL_ARB_point_parameters
|
||||
case 6:
|
||||
glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 1.0);
|
||||
break;
|
||||
|
@@ -9,9 +9,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "../util/readtex.c" /* a hack, I know */
|
||||
#include "readtex.h"
|
||||
|
||||
#define IMAGE_FILE "../images/girl.rgb"
|
||||
|
||||
|
@@ -31,8 +31,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "GL/glut.h"
|
||||
#include "../util/showbuffer.c"
|
||||
#include "../util/readtex.c"
|
||||
#include "showbuffer.h"
|
||||
#include "readtex.h"
|
||||
|
||||
|
||||
#define DEG2RAD (3.14159/180.0)
|
||||
@@ -318,8 +318,14 @@ static void draw_scene( void )
|
||||
|
||||
static void idle( void )
|
||||
{
|
||||
spin += 2.0;
|
||||
yrot += 3.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
spin += 60.0 * dt;
|
||||
yrot += 90.0 * dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -13,9 +13,15 @@
|
||||
static GLfloat Phi = 0.0;
|
||||
|
||||
|
||||
static void Idle(void)
|
||||
static void Idle( void )
|
||||
{
|
||||
Phi += 0.1;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
Phi += 3.0 * dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <GL/glut.h>
|
||||
#include "../util/showbuffer.c"
|
||||
#include "showbuffer.h"
|
||||
|
||||
#if 0 /* change to 1 if you want to use the old SGIX extensions */
|
||||
#undef GL_ARB_depth_texture
|
||||
@@ -386,7 +386,13 @@ Reshape(int width, int height)
|
||||
static void
|
||||
Idle(void)
|
||||
{
|
||||
Yrot += 5.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
Yrot += 75.0 * dt;
|
||||
/*LightLongitude -= 5.0;*/
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
@@ -25,8 +25,8 @@
|
||||
static GLUquadricObj *Quadric;
|
||||
static GLuint Sphere;
|
||||
static GLfloat LightPos[4] = {10.0, 10.0, 10.0, 1.0};
|
||||
static GLfloat Delta = 1.0;
|
||||
static GLint Mode = 0;
|
||||
static GLfloat Delta = 20.0;
|
||||
static GLint Mode = 4;
|
||||
|
||||
/*static GLfloat Blue[4] = {0.0, 0.0, 1.0, 1.0};*/
|
||||
/*static GLfloat Gray[4] = {0.5, 0.5, 0.5, 1.0};*/
|
||||
@@ -34,14 +34,18 @@ static GLfloat Black[4] = {0.0, 0.0, 0.0, 1.0};
|
||||
static GLfloat White[4] = {1.0, 1.0, 1.0, 1.0};
|
||||
|
||||
|
||||
|
||||
static void Idle( void )
|
||||
static void
|
||||
Idle(void)
|
||||
{
|
||||
LightPos[0] += Delta;
|
||||
if (LightPos[0]>15.0)
|
||||
Delta = -1.0;
|
||||
else if (LightPos[0]<-15.0)
|
||||
Delta = 1.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
LightPos[0] += Delta * dt;
|
||||
if (LightPos[0]>15.0 || LightPos[0]<-15.0)
|
||||
Delta = -Delta;
|
||||
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
@@ -104,7 +104,6 @@ static float float_rand(void) { return rand() / (float) RAND_MAX; }
|
||||
|
||||
#define MEAN_VELOCITY 3.0
|
||||
#define GRAVITY 2.0
|
||||
#define TIME_DELTA 0.025 /* The speed of time. */
|
||||
|
||||
/* Modeling units of ground extent in each X and Z direction. */
|
||||
#define EDGE 12
|
||||
@@ -139,6 +138,13 @@ updatePointList(void)
|
||||
float distance;
|
||||
int i;
|
||||
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
motion = 0;
|
||||
for (i=0; i<numPoints; i++) {
|
||||
distance = pointVelocity[i][0] * theTime;
|
||||
@@ -164,9 +170,9 @@ updatePointList(void)
|
||||
pointTime[i] = 0.0; /* Reset the particles sense of up time. */
|
||||
}
|
||||
motion = 1;
|
||||
pointTime[i] += TIME_DELTA;
|
||||
pointTime[i] += dt;
|
||||
}
|
||||
theTime += TIME_DELTA;
|
||||
theTime += dt;
|
||||
if (!motion && !spin) {
|
||||
if (repeat) {
|
||||
makePointList();
|
||||
|
@@ -10,13 +10,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <GL/glut.h>
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
|
||||
#ifdef XMESA
|
||||
#include "GL/xmesa.h"
|
||||
|
@@ -69,7 +69,7 @@ static int scrheight = HEIGHT;
|
||||
|
||||
static float obs[3] = { OBSSTARTX, heightMnt * 1.3, OBSSTARTY };
|
||||
static float dir[3], v1[2], v2[2];
|
||||
static float v = 15.0;
|
||||
static float v = 900.0;
|
||||
static float alpha = 75.0;
|
||||
static float beta = 90.0;
|
||||
|
||||
@@ -77,6 +77,12 @@ static void
|
||||
calcposobs(void)
|
||||
{
|
||||
float alpha1, alpha2;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
dir[0] = sin(alpha * M_PI / 180.0);
|
||||
dir[2] = cos(alpha * M_PI / 180.0) * sin(beta * M_PI / 180.0);
|
||||
@@ -97,9 +103,9 @@ calcposobs(void)
|
||||
v2[0] = sin(alpha2 * M_PI / 180.0);
|
||||
v2[1] = cos(alpha2 * M_PI / 180.0);
|
||||
|
||||
obs[0] += v * dir[0];
|
||||
obs[1] += v * dir[1];
|
||||
obs[2] += v * dir[2];
|
||||
obs[0] += v * dir[0] * dt;
|
||||
obs[1] += v * dir[1] * dt;
|
||||
obs[2] += v * dir[2] * dt;
|
||||
|
||||
if (obs[1] < 0.0)
|
||||
obs[1] = 0.0;
|
||||
@@ -432,10 +438,10 @@ key(unsigned char k, int x, int y)
|
||||
exit(0);
|
||||
break;
|
||||
case 'a':
|
||||
v += 0.5;
|
||||
v += 50.;
|
||||
break;
|
||||
case 'z':
|
||||
v -= 0.5;
|
||||
v -= 50.;
|
||||
break;
|
||||
case 'p':
|
||||
if (poutline) {
|
||||
|
@@ -12,9 +12,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#include "readtex.c" /* I know, this is a hack. */
|
||||
#include "readtex.h"
|
||||
|
||||
#define TEXTURE_FILE "../images/reflect.rgb"
|
||||
|
||||
@@ -30,7 +31,7 @@ static GLuint CylinderObj = 0;
|
||||
static GLboolean Animate = GL_TRUE;
|
||||
|
||||
static GLfloat Xrot = 0.0, Yrot = 0.0, Zrot = 0.0;
|
||||
static GLfloat DXrot = 1.0, DYrot = 2.5;
|
||||
static GLfloat DXrot = 50.0, DYrot = 125.0;
|
||||
|
||||
/* performance info */
|
||||
static GLint T0 = 0;
|
||||
@@ -39,9 +40,16 @@ static GLint Frames = 0;
|
||||
|
||||
static void Idle( void )
|
||||
{
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
if (Animate) {
|
||||
Xrot += DXrot;
|
||||
Yrot += DYrot;
|
||||
Xrot += DXrot * dt;
|
||||
Yrot += DYrot * dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
}
|
||||
|
@@ -85,7 +85,13 @@ static void draw( void )
|
||||
|
||||
static void idle( void )
|
||||
{
|
||||
Angle += 2.0;
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
Angle += 120.0*dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -9,14 +9,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <GL/glut.h>
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
#include "tunneldat.h"
|
||||
|
||||
#ifdef XMESA
|
||||
@@ -55,7 +55,7 @@ static int win = 0;
|
||||
|
||||
static float obs[3] = { 1000.0, 0.0, 2.0 };
|
||||
static float dir[3];
|
||||
static float v = 0.5;
|
||||
static float v = 30.;
|
||||
static float alpha = 90.0;
|
||||
static float beta = 90.0;
|
||||
|
||||
@@ -84,7 +84,7 @@ inittextures(void)
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
||||
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
|
||||
GL_LINEAR_MIPMAP_LINEAR);
|
||||
GL_LINEAR_MIPMAP_NEAREST);
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
||||
glGenTextures(1, &t2id);
|
||||
@@ -160,6 +160,13 @@ drawobjs(const int *l, const float *f)
|
||||
static void
|
||||
calcposobs(void)
|
||||
{
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
dir[0] = sin(alpha * M_PI / 180.0);
|
||||
dir[1] = cos(alpha * M_PI / 180.0) * sin(beta * M_PI / 180.0);
|
||||
dir[2] = cos(beta * M_PI / 180.0);
|
||||
@@ -171,9 +178,9 @@ calcposobs(void)
|
||||
if (dir[2] < 1.0e-5 && dir[2] > -1.0e-5)
|
||||
dir[2] = 0;
|
||||
|
||||
obs[0] += v * dir[0];
|
||||
obs[1] += v * dir[1];
|
||||
obs[2] += v * dir[2];
|
||||
obs[0] += v * dir[0] * dt;
|
||||
obs[1] += v * dir[1] * dt;
|
||||
obs[2] += v * dir[2] * dt;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -204,10 +211,10 @@ key(unsigned char k, int x, int y)
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
v += 0.01;
|
||||
v += 5.;
|
||||
break;
|
||||
case 'z':
|
||||
v -= 0.01;
|
||||
v -= 5.;
|
||||
break;
|
||||
|
||||
#ifdef XMESA
|
||||
|
@@ -12,14 +12,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <GL/glut.h>
|
||||
#include "readtex.c"
|
||||
#include "readtex.h"
|
||||
#include "tunneldat.h"
|
||||
|
||||
#ifdef FX
|
||||
@@ -51,11 +51,11 @@ static GLint Frames = 0;
|
||||
|
||||
static float obs[3] = { 1000.0, 0.0, 2.0 };
|
||||
static float dir[3];
|
||||
static float v = 0.5;
|
||||
static float v = 30.;
|
||||
static float alpha = 90.0;
|
||||
static float beta = 90.0;
|
||||
|
||||
static int fog = 0;
|
||||
static int fog = 1;
|
||||
static int bfcull = 1;
|
||||
static int usetex = 1;
|
||||
static int cstrip = 0;
|
||||
@@ -97,7 +97,7 @@ inittextures(void)
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
||||
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
|
||||
GL_LINEAR_MIPMAP_NEAREST);
|
||||
GL_LINEAR_MIPMAP_LINEAR);
|
||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
@@ -158,6 +158,13 @@ drawobjs(const int *l, const float *f)
|
||||
static void
|
||||
calcposobs(void)
|
||||
{
|
||||
static double t0 = -1.;
|
||||
double dt, t = glutGet(GLUT_ELAPSED_TIME) / 1000.0;
|
||||
if (t0 < 0.0)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
dir[0] = sin(alpha * M_PI / 180.0);
|
||||
dir[1] = cos(alpha * M_PI / 180.0) * sin(beta * M_PI / 180.0);
|
||||
dir[2] = cos(beta * M_PI / 180.0);
|
||||
@@ -169,9 +176,9 @@ calcposobs(void)
|
||||
if (dir[2] < 1.0e-5 && dir[2] > -1.0e-5)
|
||||
dir[2] = 0;
|
||||
|
||||
obs[0] += v * dir[0];
|
||||
obs[1] += v * dir[1];
|
||||
obs[2] += v * dir[2];
|
||||
obs[0] += v * dir[0] * dt;
|
||||
obs[1] += v * dir[1] * dt;
|
||||
obs[2] += v * dir[2] * dt;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -202,10 +209,10 @@ key(unsigned char k, int x, int y)
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
v += 0.01;
|
||||
v += 5.;
|
||||
break;
|
||||
case 'z':
|
||||
v -= 0.01;
|
||||
v -= 5.;
|
||||
break;
|
||||
|
||||
#ifdef XMESA
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include "GL/glut.h"
|
||||
|
||||
#include "readtex.c" /* a hack, I know */
|
||||
#include "readtex.h"
|
||||
|
||||
#define IMAGE_FILE "../images/girl.rgb"
|
||||
|
||||
|
@@ -49,7 +49,7 @@
|
||||
|
||||
#define MAXZ 8.0
|
||||
#define MINZ -8.0
|
||||
#define ZINC 0.4
|
||||
#define ZINC 4.
|
||||
|
||||
static float solidZ = MAXZ;
|
||||
static float transparentZ = MINZ;
|
||||
@@ -130,11 +130,21 @@ void reshape(int w, int h)
|
||||
|
||||
void animate(void)
|
||||
{
|
||||
static double t0 = -1.;
|
||||
if (solidZ <= MINZ || transparentZ >= MAXZ)
|
||||
{
|
||||
glutIdleFunc(NULL);
|
||||
t0 = -1.;
|
||||
}
|
||||
else {
|
||||
solidZ -= ZINC;
|
||||
transparentZ += ZINC;
|
||||
double t, dt;
|
||||
t = glutGet(GLUT_ELAPSED_TIME) / 1000.;
|
||||
if (t0 < 0.)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
solidZ -= ZINC*dt;
|
||||
transparentZ += ZINC*dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
}
|
||||
@@ -163,7 +173,7 @@ void keyboard(unsigned char key, int x, int y)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
|
||||
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
|
||||
glutInitWindowSize(500, 500);
|
||||
glutCreateWindow(argv[0]);
|
||||
init();
|
||||
|
@@ -45,6 +45,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
static GLfloat spin = 0.0;
|
||||
static GLdouble t0 = 0.;
|
||||
|
||||
void display(void)
|
||||
{
|
||||
@@ -58,9 +59,18 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
GLdouble gettime(void)
|
||||
{
|
||||
return (GLdouble)(glutGet(GLUT_ELAPSED_TIME)) / 1000.;
|
||||
}
|
||||
|
||||
void spinDisplay(void)
|
||||
{
|
||||
spin = spin + 2.0;
|
||||
GLdouble t, dt;
|
||||
t = gettime();
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
spin = spin + 120.0*dt;
|
||||
if (spin > 360.0)
|
||||
spin = spin - 360.0;
|
||||
glutPostRedisplay();
|
||||
@@ -88,7 +98,10 @@ void mouse(int button, int state, int x, int y)
|
||||
switch (button) {
|
||||
case GLUT_LEFT_BUTTON:
|
||||
if (state == GLUT_DOWN)
|
||||
{
|
||||
t0 = gettime();
|
||||
glutIdleFunc(spinDisplay);
|
||||
}
|
||||
break;
|
||||
case GLUT_MIDDLE_BUTTON:
|
||||
if (state == GLUT_DOWN)
|
||||
|
@@ -62,7 +62,7 @@ selectFog(int mode)
|
||||
/* falls through */
|
||||
case GL_EXP2:
|
||||
case GL_EXP:
|
||||
glFogiv(GL_FOG_MODE, (int *) &mode);
|
||||
glFogi(GL_FOG_MODE, mode);
|
||||
glutPostRedisplay();
|
||||
break;
|
||||
case 0:
|
||||
@@ -190,7 +190,7 @@ main(int argc, char **argv)
|
||||
glutDisplayFunc(display);
|
||||
glutCreateMenu(selectFog);
|
||||
glutAddMenuEntry("Fog EXP", GL_EXP);
|
||||
glutAddMenuEntry("Fog EXP2", /*GL_EXP2*/ 0xffff);
|
||||
glutAddMenuEntry("Fog EXP2", GL_EXP2);
|
||||
glutAddMenuEntry("Fog LINEAR", GL_LINEAR);
|
||||
glutAddMenuEntry("Quit", 0);
|
||||
glutAttachMenu(GLUT_RIGHT_BUTTON);
|
||||
|
@@ -114,7 +114,7 @@ key(unsigned char k, int x, int y)
|
||||
exit(0);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
@@ -21,12 +21,27 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
||||
|
||||
|
||||
|
||||
##### TARGETS #####
|
||||
|
||||
default: $(PROGS)
|
||||
|
||||
|
||||
sphere: sphere.o readtex.o
|
||||
$(CC) -I$(INCDIR) $(CFLAGS) sphere.o readtex.o $(APP_LIB_DEPS) -o $@
|
||||
|
||||
sphere.o: sphere.c readtex.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
|
||||
|
||||
readtex.c: $(TOP)/progs/util/readtex.c
|
||||
cp $< .
|
||||
|
||||
readtex.h: $(TOP)/progs/util/readtex.h
|
||||
cp $< .
|
||||
|
||||
readtex.o: readtex.c readtex.h
|
||||
$(CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
|
||||
|
||||
|
||||
clean:
|
||||
-rm -f $(PROGS)
|
||||
-rm -f *.o *~
|
||||
|
@@ -49,8 +49,9 @@
|
||||
|
||||
|
||||
|
||||
.PHONY : all
|
||||
.SUFFIXES : .c .o .exe
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: ../util/readtex.o ../util/showbuffer.o
|
||||
|
||||
TOP = ../..
|
||||
CPU ?= pentium
|
||||
@@ -80,8 +81,8 @@ endif
|
||||
|
||||
.c.o:
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
.o.exe:
|
||||
$(LD) -o $@ $(LDFLAGS) $< $(LDLIBS)
|
||||
%.exe: ../util/readtex.o ../util/showbuffer.o %.o
|
||||
$(LD) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
@@ -40,8 +40,9 @@
|
||||
|
||||
|
||||
|
||||
.PHONY : all
|
||||
.SUFFIXES : .c .o .exe
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: ../util/readtex.o ../util/showbuffer.o
|
||||
|
||||
TOP = ../..
|
||||
CPU ?= pentium
|
||||
@@ -63,8 +64,8 @@ LDLIBS = -lglut32 -lglu32 -lopengl32
|
||||
|
||||
.c.o:
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
.o.exe:
|
||||
$(LD) -o $@ $(LDFLAGS) $< $(LDLIBS)
|
||||
%.exe: ../util/readtex.o ../util/showbuffer.o %.o
|
||||
$(LD) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
@@ -108,7 +108,6 @@ void FillTorus(float rc, int numc, float rt, int numt)
|
||||
|
||||
float Clamp(int iters_left, float t)
|
||||
{
|
||||
|
||||
if (iters_left < 3) {
|
||||
return 0.0;
|
||||
}
|
||||
@@ -119,6 +118,17 @@ void DrawScene(void)
|
||||
{
|
||||
int i, j;
|
||||
GLboolean goIdle;
|
||||
static double t0 = -1.;
|
||||
double t, dt;
|
||||
t = glutGet(GLUT_ELAPSED_TIME) / 1000.;
|
||||
if (t0 < 0.)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
|
||||
if (dt < 1./30.)
|
||||
return;
|
||||
|
||||
t0 = t;
|
||||
|
||||
goIdle = GL_TRUE;
|
||||
for (i = 0; i < RINGS; i++) {
|
||||
@@ -167,6 +177,10 @@ float MyRand(void)
|
||||
return 10.0 * ( (float) rand() / (float) RAND_MAX - 0.5 );
|
||||
}
|
||||
|
||||
#if !defined(GLUTCALLBACK)
|
||||
#define GLUTCALLBACK
|
||||
#endif
|
||||
|
||||
void GLUTCALLBACK glut_post_redisplay_p(void)
|
||||
{
|
||||
glutPostRedisplay();
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <GL/glut.h>
|
||||
#include "../util/readtex.c"
|
||||
#include "readtex.h"
|
||||
|
||||
|
||||
#ifndef PI
|
||||
@@ -820,8 +820,16 @@ void Reshape(int width, int height)
|
||||
|
||||
void Idle(void)
|
||||
{
|
||||
xRotation += .75;
|
||||
yRotation += .375;
|
||||
static double t0 = -1.;
|
||||
double t, dt;
|
||||
t = glutGet(GLUT_ELAPSED_TIME) / 1000.;
|
||||
if (t0 < 0.)
|
||||
t0 = t;
|
||||
dt = t - t0;
|
||||
t0 = t;
|
||||
|
||||
xRotation += .75*60.*dt;
|
||||
yRotation += .375*60.*dt;
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user