Compare commits
386 Commits
mesa-7.6-1
...
mesa_7_6_1
Author | SHA1 | Date | |
---|---|---|---|
|
b8f6444a07 | ||
|
09415ca234 | ||
|
de7021b71c | ||
|
2b7b2b90e3 | ||
|
e46ad402f1 | ||
|
9373287a1b | ||
|
9d2910ee0f | ||
|
43d8727301 | ||
|
1703628011 | ||
|
07b54fe35b | ||
|
753f0a1dea | ||
|
ace937f165 | ||
|
b96a5df514 | ||
|
f926eff263 | ||
|
0dd9513874 | ||
|
d87d71036c | ||
|
3340fd65fb | ||
|
695adf41e2 | ||
|
121ff55d81 | ||
|
41377942d3 | ||
|
0478b745fe | ||
|
20ee275974 | ||
|
aeea8a07b8 | ||
|
8a09e6e2ad | ||
|
35ff190a9c | ||
|
138d639ec9 | ||
|
a43fc39585 | ||
|
6f202b53b0 | ||
|
ddfc2e7439 | ||
|
dc0a1ebc73 | ||
|
a60457b03b | ||
|
7e3825abdb | ||
|
ca02109e91 | ||
|
7430c3ac35 | ||
|
f23d01e726 | ||
|
987e9188d2 | ||
|
22d2547ad1 | ||
|
0a8d508854 | ||
|
6e5fe39f50 | ||
|
b18fa9f448 | ||
|
6c9870b54c | ||
|
555dc25c4c | ||
|
aa44efb045 | ||
|
0aef54ba62 | ||
|
89d85e8170 | ||
|
20590b9733 | ||
|
cd1a09e3bb | ||
|
f8d4ac56f7 | ||
|
7ea452dd35 | ||
|
75e8dbb235 | ||
|
9dc018618d | ||
|
af4e4a73f7 | ||
|
588e9f69c4 | ||
|
de9132f274 | ||
|
1e444c9960 | ||
|
c1d361bd0b | ||
|
786899f153 | ||
|
7d529736b9 | ||
|
c2cee7741e | ||
|
15c6558a2e | ||
|
d5be33477e | ||
|
44d6ab6de5 | ||
|
9e2eee4ab2 | ||
|
81dcf8bdf2 | ||
|
7d41b4248b | ||
|
d8f8eca9ef | ||
|
5076a4f53a | ||
|
f7f1211b9b | ||
|
94fba49be9 | ||
|
e31df54754 | ||
|
cb1dcb55f9 | ||
|
d38ffed523 | ||
|
1cf60c9810 | ||
|
bc0509bba8 | ||
|
51f52edaf1 | ||
|
dcb4a37fc8 | ||
|
b827578805 | ||
|
444d1f3910 | ||
|
34528a34c4 | ||
|
348883076b | ||
|
6f2d51b81f | ||
|
637970aefd | ||
|
a082d965de | ||
|
3de8fff45d | ||
|
33a120e476 | ||
|
af16c822a5 | ||
|
d33bf38d63 | ||
|
3f7c2ac279 | ||
|
7f146b3824 | ||
|
a1d46fbea0 | ||
|
d88f3b9468 | ||
|
54b0ed8360 | ||
|
1de1deffce | ||
|
7e93e06781 | ||
|
7f8e22aa29 | ||
|
369669ff9a | ||
|
dc0777d3e3 | ||
|
add6dfbba6 | ||
|
3e8b2fda21 | ||
|
9dbd47fc6b | ||
|
7d84169865 | ||
|
7005f7cd1a | ||
|
c994f08eb1 | ||
|
f622b649fb | ||
|
76b3523d75 | ||
|
978b80c8e3 | ||
|
3cd745515e | ||
|
b2953ee1a6 | ||
|
d74cd04e61 | ||
|
ca8a2150c7 | ||
|
4071d065c2 | ||
|
1446f30875 | ||
|
412aeeed1c | ||
|
6212c8103a | ||
|
2cd2341ce8 | ||
|
d642edd2d1 | ||
|
8d2f3434c5 | ||
|
fe8e18bcd4 | ||
|
4fb5ae7233 | ||
|
5683d7d43f | ||
|
e5bc2a19bd | ||
|
225bc70b77 | ||
|
ca7cd3ade0 | ||
|
fb83fa26c4 | ||
|
8d8fd9776e | ||
|
c74afe0c46 | ||
|
8df551c46b | ||
|
ea487c6d0b | ||
|
7b5eba453e | ||
|
7ed749c062 | ||
|
80a3944a4d | ||
|
6c1fc2b2a5 | ||
|
fe38c16021 | ||
|
d23bb22f62 | ||
|
12a440abfb | ||
|
4bf96ebdae | ||
|
ba3fedf246 | ||
|
8350648401 | ||
|
7324c22024 | ||
|
68d206fafa | ||
|
69ed1147a8 | ||
|
efb582fde7 | ||
|
b210739aad | ||
|
b1a87a3e0b | ||
|
25fd168f03 | ||
|
b803abbaad | ||
|
5820dae4ec | ||
|
fc5f07de1a | ||
|
d245a951f3 | ||
|
905e12f3cc | ||
|
56de7e222e | ||
|
34a0b22a74 | ||
|
9e29242331 | ||
|
a0ac8fc7d8 | ||
|
0a6acecb35 | ||
|
305d4f147e | ||
|
772e004781 | ||
|
f1172c4030 | ||
|
84de1672d3 | ||
|
4ca8e1680e | ||
|
d6a993135f | ||
|
005242f166 | ||
|
d3208678c2 | ||
|
97cbf4943a | ||
|
a99bf51bc8 | ||
|
28474e1225 | ||
|
bb6e3af939 | ||
|
a38776419b | ||
|
791b754687 | ||
|
89e747920f | ||
|
5a25adb646 | ||
|
3910e88ebf | ||
|
2b5618fc5b | ||
|
c3b7f93e02 | ||
|
235c0c8134 | ||
|
0a107d36c2 | ||
|
b094683e7c | ||
|
592c8522a2 | ||
|
8f4d3613da | ||
|
9ed77d12b1 | ||
|
832593772d | ||
|
2a5cd95e24 | ||
|
ccea09cd3a | ||
|
67a0628ab2 | ||
|
908a3e56cc | ||
|
ba97b98842 | ||
|
b9f4a0bd2b | ||
|
d8da270a2b | ||
|
910aaed4da | ||
|
587a52e95b | ||
|
533b766007 | ||
|
718f31b830 | ||
|
d8d49716cf | ||
|
0528f40e3b | ||
|
e4c5fe52c9 | ||
|
b12ca6b87b | ||
|
da0883114b | ||
|
a11750218f | ||
|
601edbef17 | ||
|
3128d65fd7 | ||
|
7593bcb6ec | ||
|
8f24e863c3 | ||
|
4e6e2462ea | ||
|
5117725fd0 | ||
|
e16b59df42 | ||
|
2a1505b42e | ||
|
cba614bd88 | ||
|
3bcf2d49f3 | ||
|
fe5c46546e | ||
|
c5add6a468 | ||
|
13b5a624b1 | ||
|
027abddf4f | ||
|
d449c07b8b | ||
|
2b3ea2be90 | ||
|
514544f373 | ||
|
5f305b1db9 | ||
|
ab12e764ba | ||
|
1220aba99b | ||
|
e5ffb9f5ea | ||
|
23a4a6727e | ||
|
74ef3207d8 | ||
|
2cda507fa1 | ||
|
6d2ceda780 | ||
|
289db82b2d | ||
|
7452877cf6 | ||
|
26d2ce0a09 | ||
|
9348ac03ce | ||
|
d8e256f923 | ||
|
301a9b7e28 | ||
|
1c7337d46e | ||
|
63191bd244 | ||
|
7c623905bc | ||
|
1c3f7ab74c | ||
|
bc4ad7c2ae | ||
|
76aa0c0fd3 | ||
|
60c328db2d | ||
|
f1b91ccc08 | ||
|
51f7763c00 | ||
|
6eb71519f7 | ||
|
c5106339d3 | ||
|
804d367a47 | ||
|
077eb0d81c | ||
|
e713a95c96 | ||
|
a0cd2b7029 | ||
|
e60ebebb39 | ||
|
0197348641 | ||
|
e055665752 | ||
|
35506dec67 | ||
|
02b9fb9c80 | ||
|
635ea87374 | ||
|
96128fdf2f | ||
|
c0a61c8442 | ||
|
0219cd0961 | ||
|
5e3b2baae7 | ||
|
a7d0665c00 | ||
|
93dae6761b | ||
|
8df9587d68 | ||
|
0f255d1956 | ||
|
2643a7ba29 | ||
|
b7eea8c616 | ||
|
498fcfd315 | ||
|
22575abdec | ||
|
517ae7a3b6 | ||
|
70b17db918 | ||
|
43dc91f8bb | ||
|
f9e334cb32 | ||
|
42732611d3 | ||
|
0a47631849 | ||
|
48dad9c93f | ||
|
dc8b139aa2 | ||
|
0acb057ad1 | ||
|
2d17dbfb53 | ||
|
b01937a3c9 | ||
|
96d7d66dff | ||
|
5c0dc902e7 | ||
|
559da98c2b | ||
|
9df9696f6d | ||
|
ff3f09a7fe | ||
|
cd62b4f00a | ||
|
9528dc6ed8 | ||
|
5e4f5e41a4 | ||
|
dd24501665 | ||
|
55058652b8 | ||
|
5e6a6a2719 | ||
|
4837e01bcd | ||
|
61a96a2ac7 | ||
|
8810b8f671 | ||
|
c24466c34e | ||
|
ea659f8917 | ||
|
f9bbbe5803 | ||
|
2f7abf5c04 | ||
|
869e20bcb7 | ||
|
a88c9296cb | ||
|
b86302283b | ||
|
5283a3fb25 | ||
|
4b2cf92ad9 | ||
|
ca940a73a7 | ||
|
16e21191e2 | ||
|
8123180ea6 | ||
|
3594b53c01 | ||
|
946bc9aa42 | ||
|
89b31c9619 | ||
|
3f30b0709b | ||
|
16c6a3b71e | ||
|
a176b1c5d8 | ||
|
e5d6450c2c | ||
|
22a0029a68 | ||
|
a3fec14101 | ||
|
606becc7f3 | ||
|
74c31e5d05 | ||
|
95851d8cb2 | ||
|
bf68e54a4d | ||
|
5101215a64 | ||
|
f7285bdffc | ||
|
6f8b4d9e36 | ||
|
269f16cd96 | ||
|
31f7e8efb2 | ||
|
115edf24a9 | ||
|
9282edfaa0 | ||
|
f3be27c0cf | ||
|
a82da7fa26 | ||
|
768481ed40 | ||
|
194ede4bf9 | ||
|
2738681e84 | ||
|
6164f1fe79 | ||
|
ce64e063a8 | ||
|
f7fb30f03b | ||
|
ee3fbe7067 | ||
|
9f002e4aaa | ||
|
7dd2c0afd6 | ||
|
9fde81bb20 | ||
|
ae351599f1 | ||
|
cdcd9da480 | ||
|
c3eef6021a | ||
|
0526100a5c | ||
|
f36425b569 | ||
|
846a6b0695 | ||
|
edbaa717b4 | ||
|
14f21c7850 | ||
|
4b3cbecb3a | ||
|
e3fff3daf0 | ||
|
f9904edf53 | ||
|
79892e7976 | ||
|
3b7ec94c0d | ||
|
3b29dcbb5e | ||
|
a8768bbc9d | ||
|
a15d9ca9cc | ||
|
43750f1575 | ||
|
3856c3cc46 | ||
|
bbe384c86a | ||
|
c01a77d304 | ||
|
e1bddd159f | ||
|
85ee0ef9a7 | ||
|
584b0879ac | ||
|
abc12d0636 | ||
|
389021220d | ||
|
337480e1f8 | ||
|
167ffa9e03 | ||
|
0574954238 | ||
|
0f291f2efe | ||
|
63064cf7c3 | ||
|
7b568614a2 | ||
|
9b27a0d063 | ||
|
b3e41e0d5e | ||
|
b154497bef | ||
|
495628bc5c | ||
|
18883cdf23 | ||
|
521e4b9b7e | ||
|
49fbdd18ed | ||
|
b77469871a | ||
|
322bc403bc | ||
|
65765c9f2c | ||
|
3c794e45b0 | ||
|
5f1faf4a21 | ||
|
a6b84aef4a | ||
|
86ee448047 | ||
|
ef9cd84521 | ||
|
69a3043f41 | ||
|
2d400d43bf | ||
|
9b5541617f | ||
|
564df9dc5f | ||
|
fbddc75aa2 | ||
|
6829ef7460 | ||
|
d39fd9f641 | ||
|
18f3afbe88 | ||
|
b807d49f18 |
9
Makefile
9
Makefile
@@ -182,7 +182,7 @@ ultrix-gcc:
|
||||
|
||||
# Rules for making release tarballs
|
||||
|
||||
VERSION=7.6
|
||||
VERSION=7.6.1
|
||||
DIRECTORY = Mesa-$(VERSION)
|
||||
LIB_NAME = MesaLib-$(VERSION)
|
||||
DEMO_NAME = MesaDemos-$(VERSION)
|
||||
@@ -433,8 +433,7 @@ DEMO_FILES = \
|
||||
$(DIRECTORY)/progs/windml/Makefile.ugl \
|
||||
$(DIRECTORY)/progs/windml/*.c \
|
||||
$(DIRECTORY)/progs/windml/*.bmp \
|
||||
$(DIRECTORY)/progs/ggi/*.c \
|
||||
$(DIRECTORY)/windows/VC7/progs/progs.sln
|
||||
$(DIRECTORY)/progs/ggi/*.c
|
||||
|
||||
GLUT_FILES = \
|
||||
$(DIRECTORY)/include/GL/glut.h \
|
||||
@@ -457,9 +456,7 @@ GLUT_FILES = \
|
||||
$(DIRECTORY)/src/glut/mini/glut.pc.in \
|
||||
$(DIRECTORY)/src/glut/directfb/Makefile \
|
||||
$(DIRECTORY)/src/glut/directfb/NOTES \
|
||||
$(DIRECTORY)/src/glut/directfb/*[ch] \
|
||||
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
|
||||
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
|
||||
$(DIRECTORY)/src/glut/directfb/*[ch]
|
||||
|
||||
DEPEND_FILES = \
|
||||
$(TOP)/src/mesa/depend \
|
||||
|
20
bin/mklib
20
bin/mklib
@@ -724,22 +724,10 @@ case $ARCH in
|
||||
|
||||
# examine first object to determine ABI
|
||||
set ${OBJECTS}
|
||||
ABI_PPC=`file $1 | grep ' ppc'`
|
||||
ABI_I386=`file $1 | grep ' i386'`
|
||||
ABI_PPC64=`file $1 | grep ' ppc64'`
|
||||
ABI_X86_64=`file $1 | grep ' x86_64'`
|
||||
if [ "${ABI_PPC}" ] ; then
|
||||
OPTS="${OPTS} -arch ppc"
|
||||
fi
|
||||
if [ "${ABI_I386}" ] ; then
|
||||
OPTS="${OPTS} -arch i386"
|
||||
fi
|
||||
if [ "${ABI_PPC64}" ] ; then
|
||||
OPTS="${OPTS} -arch ppc64"
|
||||
fi
|
||||
if [ "${ABI_X86_64}" ] ; then
|
||||
OPTS="${OPTS} -arch x86_64"
|
||||
fi
|
||||
ABIS=`lipo -info $1 | sed s/.*://`
|
||||
for ABI in $ABIS; do
|
||||
OPTS="${OPTS} -arch ${ABI}"
|
||||
done
|
||||
|
||||
if [ "${ALTOPTS}" ] ; then
|
||||
OPTS=${ALTOPTS}
|
||||
|
@@ -59,7 +59,7 @@ def AddOptions(opts):
|
||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
||||
opts.Add(EnumOption('platform', 'target platform', default_platform,
|
||||
allowed_values=('linux', 'cell', 'windows', 'winddk', 'wince')))
|
||||
allowed_values=('linux', 'cell', 'windows', 'winddk', 'wince', 'darwin')))
|
||||
opts.Add(EnumOption('toolchain', 'compiler toolchain', 'default',
|
||||
allowed_values=('default', 'crossmingw', 'winsdk', 'winddk')))
|
||||
opts.Add(BoolOption('llvm', 'use LLVM', 'no'))
|
||||
|
@@ -124,7 +124,7 @@ INSTALL_INC_DIR = $(includedir)
|
||||
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
|
||||
|
||||
# Where libGL will look for DRI hardware drivers
|
||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
||||
DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
|
||||
|
||||
# Xorg driver install directory (for xorg state-tracker)
|
||||
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
|
||||
|
@@ -12,10 +12,10 @@ X11_DIR = $(INSTALL_DIR)
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
PIC_FLAGS = -fPIC
|
||||
DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \
|
||||
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS \
|
||||
DEFINES = -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \
|
||||
-DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING
|
||||
|
||||
# -D_GNU_SOURCE - for src/mesa/main ...
|
||||
# -DGLX_DIRECT_RENDERING - pulls in libdrm stuff in glx/x11
|
||||
# -DGLX_USE_APPLEGL - supposed to be used with GLX_DIRECT_RENDERING to use AGL rather than DRM, but doesn't compile
|
||||
# -DIN_DRI_DRIVER
|
||||
|
@@ -10,7 +10,7 @@ CONFIG_NAME = default
|
||||
# Version info
|
||||
MESA_MAJOR=7
|
||||
MESA_MINOR=6
|
||||
MESA_TINY=0
|
||||
MESA_TINY=1
|
||||
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
||||
|
||||
# external projects. This should be useless now that we use libdrm.
|
||||
|
17
configure.ac
17
configure.ac
@@ -19,6 +19,7 @@ AC_CANONICAL_HOST
|
||||
|
||||
dnl Versions for external dependencies
|
||||
LIBDRM_REQUIRED=2.4.3
|
||||
LIBDRM_RADEON_REQUIRED=2.4.17
|
||||
DRI2PROTO_REQUIRED=1.99.3
|
||||
|
||||
dnl Check for progs
|
||||
@@ -230,6 +231,8 @@ else
|
||||
LIB_EXTENSION='dylib' ;;
|
||||
cygwin* )
|
||||
LIB_EXTENSION='dll' ;;
|
||||
aix* )
|
||||
LIB_EXTENSION='a' ;;
|
||||
* )
|
||||
LIB_EXTENSION='so' ;;
|
||||
esac
|
||||
@@ -575,7 +578,7 @@ dri)
|
||||
GL_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED dri2proto >= $DRI2PROTO_REQUIRED"
|
||||
DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
|
||||
|
||||
PKG_CHECK_MODULES([LIBDRM_RADEON], [libdrm_radeon], HAVE_LIBDRM_RADEON=yes, HAVE_LIBDRM_RADEON=no)
|
||||
PKG_CHECK_MODULES([LIBDRM_RADEON], [libdrm_radeon libdrm >= $LIBDRM_RADEON_REQUIRED], HAVE_LIBDRM_RADEON=yes, HAVE_LIBDRM_RADEON=no)
|
||||
|
||||
if test "$HAVE_LIBDRM_RADEON" = yes; then
|
||||
RADEON_CFLAGS="-DHAVE_LIBDRM_RADEON=1 $LIBDRM_RADEON_CFLAGS"
|
||||
@@ -647,6 +650,13 @@ AC_ARG_WITH([dri-driverdir],
|
||||
[DRI_DRIVER_INSTALL_DIR="$withval"],
|
||||
[DRI_DRIVER_INSTALL_DIR='${libdir}/dri'])
|
||||
AC_SUBST([DRI_DRIVER_INSTALL_DIR])
|
||||
dnl Extra search path for DRI drivers
|
||||
AC_ARG_WITH([dri-searchpath],
|
||||
[AS_HELP_STRING([--with-dri-searchpath=DIRS...],
|
||||
[semicolon delimited DRI driver search directories @<:@${libdir}/dri@:>@])],
|
||||
[DRI_DRIVER_SEARCH_DIR="$withval"],
|
||||
[DRI_DRIVER_SEARCH_DIR='${DRI_DRIVER_INSTALL_DIR}'])
|
||||
AC_SUBST([DRI_DRIVER_SEARCH_DIR])
|
||||
dnl Direct rendering or just indirect rendering
|
||||
AC_ARG_ENABLE([driglx-direct],
|
||||
[AS_HELP_STRING([--disable-driglx-direct],
|
||||
@@ -1148,6 +1158,11 @@ yes)
|
||||
if test "$tracker" = egl && test "x$enable_egl" != xyes; then
|
||||
AC_MSG_ERROR([cannot build egl state tracker without EGL library])
|
||||
fi
|
||||
if test "$tracker" = xorg; then
|
||||
PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
|
||||
HAVE_XEXTPROTO_71="yes"; DEFINES="$DEFINES -DHAVE_XEXTPROTO_71",
|
||||
HAVE_XEXTPROTO_71="no")
|
||||
fi
|
||||
done
|
||||
GALLIUM_STATE_TRACKERS_DIRS="$state_trackers"
|
||||
;;
|
||||
|
@@ -27,12 +27,6 @@ using the SDK with Visual Studio Express can be found at
|
||||
|
||||
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
|
||||
|
||||
If you are stuck using VC6 or VC7, you may start with these project
|
||||
files, but you may need to modify them to reflect changes in the
|
||||
Mesa source code tree. If you sucessfully update the project files,
|
||||
please submit them to the author of this document so that they may
|
||||
be included in the next distribution.
|
||||
|
||||
The project files to build the core Mesa library, Windows Mesa
|
||||
drivers, OSMesa, and GLU are in the mesa directory. The project files
|
||||
to build GLUT and some demo programs are in the progs directory.
|
||||
@@ -106,23 +100,6 @@ should build all the demos.
|
||||
Build System Notes
|
||||
----- ------ -----
|
||||
|
||||
VC6 (not actively supported)
|
||||
---
|
||||
|
||||
Visual Studio 6 does not recognize files with the .cc extension as C++
|
||||
language files, without a lot of unnatural tweaking. So, the VC6
|
||||
build process uses custom build steps to compile these files in the
|
||||
GLU library.
|
||||
|
||||
Two additional configurations are provided, Debug x86 and Release x86
|
||||
that activate the shader code compilation by defining SLANG_86. It is
|
||||
unknown if and how this works.
|
||||
|
||||
VC7 (not actively supported)
|
||||
---
|
||||
|
||||
The above-mentioned .cc problem does not exist in this version.
|
||||
|
||||
VC8
|
||||
---
|
||||
|
||||
|
@@ -10,6 +10,24 @@
|
||||
|
||||
<H1>News</H1>
|
||||
|
||||
<h2>November XX, 2009</h2>
|
||||
<p>
|
||||
<a href="relnotes-7.6.1.html">Mesa 7.6.1</a> is released. This is a bug-fix
|
||||
release fixing issues found in the 7.6 release.
|
||||
</p>
|
||||
|
||||
|
||||
<h2>September 28, 2009</h2>
|
||||
<p>
|
||||
<a href="relnotes-7.6.html">Mesa 7.6</a> is released. This is a new feature
|
||||
release. Those especially concerned about stability may want to wait for the
|
||||
follow-on 7.6.1 bug-fix release.
|
||||
</p>
|
||||
<p>
|
||||
<a href="relnotes-7.5.2.html">Mesa 7.5.2</a> is also released.
|
||||
This is a stable release fixing bugs since the 7.5.1 release.
|
||||
</p>
|
||||
|
||||
|
||||
<h2>September 3, 2009</h2>
|
||||
<p>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
<body bgcolor="#eeeeee">
|
||||
|
||||
<H1>Mesa 7.5.2 Release Notes, (date tbd)</H1>
|
||||
<H1>Mesa 7.5.2 Release Notes, 28 September 2009</H1>
|
||||
|
||||
<p>
|
||||
Mesa 7.5.2 is a bug-fix release fixing issues found since the 7.5.1 release.
|
||||
@@ -31,7 +31,15 @@ for DRI hardware acceleration.
|
||||
|
||||
<h2>MD5 checksums</h2>
|
||||
<pre>
|
||||
tbd
|
||||
43a90191dd9f76cd65dcc1ac91f3be70 MesaLib-7.5.2.tar.gz
|
||||
94e47a499f1226803869c2e37a6a8e3a MesaLib-7.5.2.tar.bz2
|
||||
1ecb822b567ad67a0617361d45206b67 MesaLib-7.5.2.zip
|
||||
2718fdce7e075911d6147beb8f27104b MesaDemos-7.5.2.tar.gz
|
||||
4e0f5ccd58afe21eddcd94327d926e86 MesaDemos-7.5.2.tar.bz2
|
||||
f621f8c223b278d7c8e49a012d56ca25 MesaDemos-7.5.2.zip
|
||||
83c16c1d6bcfcc3f97aab5d2fe430b4c MesaGLUT-7.5.2.tar.gz
|
||||
e5d03bedae369ea3705783573bb33813 MesaGLUT-7.5.2.tar.bz2
|
||||
e82ba28e00d653e6f437d32be8ca8481 MesaGLUT-7.5.2.zip
|
||||
</pre>
|
||||
|
||||
|
||||
@@ -55,6 +63,5 @@ tbd
|
||||
when using Gallium.
|
||||
</ul>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
72
docs/relnotes-7.6.1.html
Normal file
72
docs/relnotes-7.6.1.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<HTML>
|
||||
|
||||
<TITLE>Mesa Release Notes</TITLE>
|
||||
|
||||
<head><link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||
|
||||
<BODY>
|
||||
|
||||
<body bgcolor="#eeeeee">
|
||||
|
||||
<H1>Mesa 7.6.1 Release Notes, (date tbd)</H1>
|
||||
|
||||
<p>
|
||||
Mesa 7.6.1 is a bug-fix release fixing issues since version 7.6.
|
||||
</p>
|
||||
<p>
|
||||
Mesa 7.6.1 implements the OpenGL 2.1 API, but the version reported by
|
||||
glGetString(GL_VERSION) depends on the particular driver being used.
|
||||
Some drivers don't support all the features required in OpenGL 2.1.
|
||||
</p>
|
||||
<p>
|
||||
See the <a href="install.html">Compiling/Installing page</a> for prerequisites
|
||||
for DRI hardware acceleration.
|
||||
</p>
|
||||
|
||||
|
||||
<h2>MD5 checksums</h2>
|
||||
<pre>
|
||||
tbd
|
||||
</pre>
|
||||
|
||||
|
||||
<h2>New features</h2>
|
||||
<ul>
|
||||
<li>Upgraded GL/glext.h to version 56, GL/glxext.h to version 25,
|
||||
GL/wglext.h to version 17
|
||||
<li>New 3D driver, r600, for Radeon R6xx, R7xx hardware
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Bug fixes</h2>
|
||||
<ul>
|
||||
<li>Fixed crash caused by glXCopyContext() and glXDestroyContext(), bug 24217
|
||||
<li>glXQueryContext(GLX_RENDER_TYPE) returned wrong values (bug 24211)
|
||||
<li>GLSL sqrt(0) returned unpredictable results
|
||||
<li>Fixed default texture binding bug when a bound texture was deleted.
|
||||
<li>r300: Work around an issue with very large fragment programs on R500.
|
||||
<li>Fake glXQueryDrawable() didn't return good values (bug 24320)
|
||||
<li>Fixed AUX buffer breakage (bug 24426).
|
||||
<li>Fixed locale-dependent float parsing bug in GLSL compiler (bug 24531)
|
||||
<li>Fixed Gallium Cell driver compilation failure.
|
||||
<li>Fixed glGetTexLevelParameter(GL_TEXTURE_INTERNAL_FORMAT) query so that
|
||||
it returns the actual compressed format chosen.
|
||||
<li>Fixed glBitmap bugs in Intel drivers.
|
||||
<li>Fixed a number of Microsoft Visual Studio compilation problems.
|
||||
<li>Fixed clipping / provoking vertex bugs in i965 driver.
|
||||
<li>Assorted build fixes for AIX.
|
||||
<li>Endianness fixes for the DRI swrast driver (bug 22767).</li>
|
||||
<li>Point sprite fixes for i915/945 driver.
|
||||
<li>Fixed assorted memory leaks (usually on error paths)
|
||||
<li>Fixed some GLSL compiler bugs (ex: 25579)
|
||||
<li>Assorted build fixes for BlueGene
|
||||
</ul>
|
||||
|
||||
<h2>Changes</h2>
|
||||
<ul>
|
||||
<li>Removed old VC6, VC7 project files for Windows
|
||||
</ul>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -13,6 +13,7 @@ The release notes summarize what's new or changed in each Mesa release.
|
||||
</p>
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="relnotes-7.6.1.html">7.6.1 release notes</A>
|
||||
<LI><A HREF="relnotes-7.6.html">7.6 release notes</A>
|
||||
<LI><A HREF="relnotes-7.5.2.html">7.5.2 release notes</A>
|
||||
<LI><A HREF="relnotes-7.5.1.html">7.5.1 release notes</A>
|
||||
|
@@ -108,12 +108,20 @@
|
||||
#define glBlendColorEXT MANGLE(BlendColorEXT)
|
||||
#define glBlendColor MANGLE(BlendColor)
|
||||
#define glBlendEquationEXT MANGLE(BlendEquationEXT)
|
||||
#define glBlendEquationi MANGLE(BlendEquationi)
|
||||
#define glBlendEquationIndexedAMD MANGLE(BlendEquationIndexedAMD)
|
||||
#define glBlendEquation MANGLE(BlendEquation)
|
||||
#define glBlendEquationSeparateATI MANGLE(BlendEquationSeparateATI)
|
||||
#define glBlendEquationSeparateEXT MANGLE(BlendEquationSeparateEXT)
|
||||
#define glBlendEquationSeparatei MANGLE(BlendEquationSeparatei)
|
||||
#define glBlendEquationSeparateIndexedAMD MANGLE(BlendEquationSeparateIndexedAMD)
|
||||
#define glBlendEquationSeparate MANGLE(BlendEquationSeparate)
|
||||
#define glBlendFunci MANGLE(BlendFunci)
|
||||
#define glBlendFuncIndexedAMD MANGLE(BlendFuncIndexedAMD)
|
||||
#define glBlendFunc MANGLE(BlendFunc)
|
||||
#define glBlendFuncSeparateEXT MANGLE(BlendFuncSeparateEXT)
|
||||
#define glBlendFuncSeparatei MANGLE(BlendFuncSeparatei)
|
||||
#define glBlendFuncSeparateIndexedAMD MANGLE(BlendFuncSeparateIndexedAMD)
|
||||
#define glBlendFuncSeparateINGR MANGLE(BlendFuncSeparateINGR)
|
||||
#define glBlendFuncSeparate MANGLE(BlendFuncSeparate)
|
||||
#define glBlitFramebufferEXT MANGLE(BlitFramebufferEXT)
|
||||
@@ -148,6 +156,7 @@
|
||||
#define glClientActiveTexture MANGLE(ClientActiveTexture)
|
||||
#define glClientActiveVertexStreamATI MANGLE(ClientActiveVertexStreamATI)
|
||||
#define glClientAttribDefaultEXT MANGLE(ClientAttribDefaultEXT)
|
||||
#define glClientWaitSync MANGLE(ClientWaitSync)
|
||||
#define glClipPlane MANGLE(ClipPlane)
|
||||
#define glColor3b MANGLE(Color3b)
|
||||
#define glColor3bv MANGLE(Color3bv)
|
||||
@@ -320,6 +329,7 @@
|
||||
#define glDeleteRenderbuffersEXT MANGLE(DeleteRenderbuffersEXT)
|
||||
#define glDeleteRenderbuffers MANGLE(DeleteRenderbuffers)
|
||||
#define glDeleteShader MANGLE(DeleteShader)
|
||||
#define glDeleteSync MANGLE(DeleteSync)
|
||||
#define glDeleteTexturesEXT MANGLE(DeleteTexturesEXT)
|
||||
#define glDeleteTextures MANGLE(DeleteTextures)
|
||||
#define glDeleteTransformFeedbacksNV MANGLE(DeleteTransformFeedbacksNV)
|
||||
@@ -341,6 +351,7 @@
|
||||
#define glDisableIndexedEXT MANGLE(DisableIndexedEXT)
|
||||
#define glDisable MANGLE(Disable)
|
||||
#define glDisableVariantClientStateEXT MANGLE(DisableVariantClientStateEXT)
|
||||
#define glDisableVertexAttribAPPLE MANGLE(DisableVertexAttribAPPLE)
|
||||
#define glDisableVertexAttribArrayARB MANGLE(DisableVertexAttribArrayARB)
|
||||
#define glDisableVertexAttribArray MANGLE(DisableVertexAttribArray)
|
||||
#define glDrawArraysEXT MANGLE(DrawArraysEXT)
|
||||
@@ -354,7 +365,9 @@
|
||||
#define glDrawBuffers MANGLE(DrawBuffers)
|
||||
#define glDrawElementArrayAPPLE MANGLE(DrawElementArrayAPPLE)
|
||||
#define glDrawElementArrayATI MANGLE(DrawElementArrayATI)
|
||||
#define glDrawElementsBaseVertex MANGLE(DrawElementsBaseVertex)
|
||||
#define glDrawElementsInstancedARB MANGLE(DrawElementsInstancedARB)
|
||||
#define glDrawElementsInstancedBaseVertex MANGLE(DrawElementsInstancedBaseVertex)
|
||||
#define glDrawElementsInstancedEXT MANGLE(DrawElementsInstancedEXT)
|
||||
#define glDrawElementsInstanced MANGLE(DrawElementsInstanced)
|
||||
#define glDrawElements MANGLE(DrawElements)
|
||||
@@ -362,6 +375,7 @@
|
||||
#define glDrawPixels MANGLE(DrawPixels)
|
||||
#define glDrawRangeElementArrayAPPLE MANGLE(DrawRangeElementArrayAPPLE)
|
||||
#define glDrawRangeElementArrayATI MANGLE(DrawRangeElementArrayATI)
|
||||
#define glDrawRangeElementsBaseVertex MANGLE(DrawRangeElementsBaseVertex)
|
||||
#define glDrawRangeElementsEXT MANGLE(DrawRangeElementsEXT)
|
||||
#define glDrawRangeElements MANGLE(DrawRangeElements)
|
||||
#define glDrawTransformFeedbackNV MANGLE(DrawTransformFeedbackNV)
|
||||
@@ -378,6 +392,7 @@
|
||||
#define glEnableIndexedEXT MANGLE(EnableIndexedEXT)
|
||||
#define glEnable MANGLE(Enable)
|
||||
#define glEnableVariantClientStateEXT MANGLE(EnableVariantClientStateEXT)
|
||||
#define glEnableVertexAttribAPPLE MANGLE(EnableVertexAttribAPPLE)
|
||||
#define glEnableVertexAttribArrayARB MANGLE(EnableVertexAttribArrayARB)
|
||||
#define glEnableVertexAttribArray MANGLE(EnableVertexAttribArray)
|
||||
#define glEndConditionalRender MANGLE(EndConditionalRender)
|
||||
@@ -409,6 +424,7 @@
|
||||
#define glExecuteProgramNV MANGLE(ExecuteProgramNV)
|
||||
#define glExtractComponentEXT MANGLE(ExtractComponentEXT)
|
||||
#define glFeedbackBuffer MANGLE(FeedbackBuffer)
|
||||
#define glFenceSync MANGLE(FenceSync)
|
||||
#define glFinalCombinerInputNV MANGLE(FinalCombinerInputNV)
|
||||
#define glFinishAsyncSGIX MANGLE(FinishAsyncSGIX)
|
||||
#define glFinishFenceAPPLE MANGLE(FinishFenceAPPLE)
|
||||
@@ -469,9 +485,11 @@
|
||||
#define glFramebufferTextureEXT MANGLE(FramebufferTextureEXT)
|
||||
#define glFramebufferTextureFaceARB MANGLE(FramebufferTextureFaceARB)
|
||||
#define glFramebufferTextureFaceEXT MANGLE(FramebufferTextureFaceEXT)
|
||||
#define glFramebufferTextureFace MANGLE(FramebufferTextureFace)
|
||||
#define glFramebufferTextureLayerARB MANGLE(FramebufferTextureLayerARB)
|
||||
#define glFramebufferTextureLayerEXT MANGLE(FramebufferTextureLayerEXT)
|
||||
#define glFramebufferTextureLayer MANGLE(FramebufferTextureLayer)
|
||||
#define glFramebufferTexture MANGLE(FramebufferTexture)
|
||||
#define glFrameTerminatorGREMEDY MANGLE(FrameTerminatorGREMEDY)
|
||||
#define glFrameZoomSGIX MANGLE(FrameZoomSGIX)
|
||||
#define glFreeObjectBufferATI MANGLE(FreeObjectBufferATI)
|
||||
@@ -523,6 +541,7 @@
|
||||
#define glGetBooleanIndexedvEXT MANGLE(GetBooleanIndexedvEXT)
|
||||
#define glGetBooleani_v MANGLE(GetBooleani_v)
|
||||
#define glGetBooleanv MANGLE(GetBooleanv)
|
||||
#define glGetBufferParameteri64v MANGLE(GetBufferParameteri64v)
|
||||
#define glGetBufferParameterivARB MANGLE(GetBufferParameterivARB)
|
||||
#define glGetBufferParameteriv MANGLE(GetBufferParameteriv)
|
||||
#define glGetBufferPointervARB MANGLE(GetBufferPointervARB)
|
||||
@@ -586,6 +605,8 @@
|
||||
#define glGetImageTransformParameterivHP MANGLE(GetImageTransformParameterivHP)
|
||||
#define glGetInfoLogARB MANGLE(GetInfoLogARB)
|
||||
#define glGetInstrumentsSGIX MANGLE(GetInstrumentsSGIX)
|
||||
#define glGetInteger64i_v MANGLE(GetInteger64i_v)
|
||||
#define glGetInteger64v MANGLE(GetInteger64v)
|
||||
#define glGetIntegerIndexedvEXT MANGLE(GetIntegerIndexedvEXT)
|
||||
#define glGetIntegeri_v MANGLE(GetIntegeri_v)
|
||||
#define glGetIntegerv MANGLE(GetIntegerv)
|
||||
@@ -615,6 +636,7 @@
|
||||
#define glGetMinmaxParameterfv MANGLE(GetMinmaxParameterfv)
|
||||
#define glGetMinmaxParameterivEXT MANGLE(GetMinmaxParameterivEXT)
|
||||
#define glGetMinmaxParameteriv MANGLE(GetMinmaxParameteriv)
|
||||
#define glGetMultisamplefv MANGLE(GetMultisamplefv)
|
||||
#define glGetMultisamplefvNV MANGLE(GetMultisamplefvNV)
|
||||
#define glGetMultiTexEnvfvEXT MANGLE(GetMultiTexEnvfvEXT)
|
||||
#define glGetMultiTexEnvivEXT MANGLE(GetMultiTexEnvivEXT)
|
||||
@@ -642,6 +664,7 @@
|
||||
#define glGetObjectBufferfvATI MANGLE(GetObjectBufferfvATI)
|
||||
#define glGetObjectBufferivATI MANGLE(GetObjectBufferivATI)
|
||||
#define glGetObjectParameterfvARB MANGLE(GetObjectParameterfvARB)
|
||||
#define glGetObjectParameterivAPPLE MANGLE(GetObjectParameterivAPPLE)
|
||||
#define glGetObjectParameterivARB MANGLE(GetObjectParameterivARB)
|
||||
#define glGetOcclusionQueryivNV MANGLE(GetOcclusionQueryivNV)
|
||||
#define glGetOcclusionQueryuivNV MANGLE(GetOcclusionQueryuivNV)
|
||||
@@ -698,6 +721,7 @@
|
||||
#define glGetSharpenTexFuncSGIS MANGLE(GetSharpenTexFuncSGIS)
|
||||
#define glGetStringi MANGLE(GetStringi)
|
||||
#define glGetString MANGLE(GetString)
|
||||
#define glGetSynciv MANGLE(GetSynciv)
|
||||
#define glGetTexBumpParameterfvATI MANGLE(GetTexBumpParameterfvATI)
|
||||
#define glGetTexBumpParameterivATI MANGLE(GetTexBumpParameterivATI)
|
||||
#define glGetTexEnvfv MANGLE(GetTexEnvfv)
|
||||
@@ -715,6 +739,7 @@
|
||||
#define glGetTexParameterIuivEXT MANGLE(GetTexParameterIuivEXT)
|
||||
#define glGetTexParameterIuiv MANGLE(GetTexParameterIuiv)
|
||||
#define glGetTexParameteriv MANGLE(GetTexParameteriv)
|
||||
#define glGetTexParameterPointervAPPLE MANGLE(GetTexParameterPointervAPPLE)
|
||||
#define glGetTextureImageEXT MANGLE(GetTextureImageEXT)
|
||||
#define glGetTextureLevelParameterfvEXT MANGLE(GetTextureLevelParameterfvEXT)
|
||||
#define glGetTextureLevelParameterivEXT MANGLE(GetTextureLevelParameterivEXT)
|
||||
@@ -825,12 +850,14 @@
|
||||
#define glIsRenderbufferEXT MANGLE(IsRenderbufferEXT)
|
||||
#define glIsRenderbuffer MANGLE(IsRenderbuffer)
|
||||
#define glIsShader MANGLE(IsShader)
|
||||
#define glIsSync MANGLE(IsSync)
|
||||
#define glIsTextureEXT MANGLE(IsTextureEXT)
|
||||
#define glIsTexture MANGLE(IsTexture)
|
||||
#define glIsTransformFeedbackNV MANGLE(IsTransformFeedbackNV)
|
||||
#define glIsVariantEnabledEXT MANGLE(IsVariantEnabledEXT)
|
||||
#define glIsVertexArrayAPPLE MANGLE(IsVertexArrayAPPLE)
|
||||
#define glIsVertexArray MANGLE(IsVertexArray)
|
||||
#define glIsVertexAttribEnabledAPPLE MANGLE(IsVertexAttribEnabledAPPLE)
|
||||
#define glLightEnviSGIX MANGLE(LightEnviSGIX)
|
||||
#define glLightf MANGLE(Lightf)
|
||||
#define glLightfv MANGLE(Lightfv)
|
||||
@@ -877,6 +904,10 @@
|
||||
#define glMapObjectBufferATI MANGLE(MapObjectBufferATI)
|
||||
#define glMapParameterfvNV MANGLE(MapParameterfvNV)
|
||||
#define glMapParameterivNV MANGLE(MapParameterivNV)
|
||||
#define glMapVertexAttrib1dAPPLE MANGLE(MapVertexAttrib1dAPPLE)
|
||||
#define glMapVertexAttrib1fAPPLE MANGLE(MapVertexAttrib1fAPPLE)
|
||||
#define glMapVertexAttrib2dAPPLE MANGLE(MapVertexAttrib2dAPPLE)
|
||||
#define glMapVertexAttrib2fAPPLE MANGLE(MapVertexAttrib2fAPPLE)
|
||||
#define glMaterialf MANGLE(Materialf)
|
||||
#define glMaterialfv MANGLE(Materialfv)
|
||||
#define glMateriali MANGLE(Materiali)
|
||||
@@ -907,9 +938,11 @@
|
||||
#define glMatrixTranslatefEXT MANGLE(MatrixTranslatefEXT)
|
||||
#define glMinmaxEXT MANGLE(MinmaxEXT)
|
||||
#define glMinmax MANGLE(Minmax)
|
||||
#define glMinSampleShading MANGLE(MinSampleShading)
|
||||
#define glMultiDrawArraysEXT MANGLE(MultiDrawArraysEXT)
|
||||
#define glMultiDrawArrays MANGLE(MultiDrawArrays)
|
||||
#define glMultiDrawElementArrayAPPLE MANGLE(MultiDrawElementArrayAPPLE)
|
||||
#define glMultiDrawElementsBaseVertex MANGLE(MultiDrawElementsBaseVertex)
|
||||
#define glMultiDrawElementsEXT MANGLE(MultiDrawElementsEXT)
|
||||
#define glMultiDrawElements MANGLE(MultiDrawElements)
|
||||
#define glMultiDrawRangeElementArrayAPPLE MANGLE(MultiDrawRangeElementArrayAPPLE)
|
||||
@@ -1072,6 +1105,8 @@
|
||||
#define glNormalStream3ivATI MANGLE(NormalStream3ivATI)
|
||||
#define glNormalStream3sATI MANGLE(NormalStream3sATI)
|
||||
#define glNormalStream3svATI MANGLE(NormalStream3svATI)
|
||||
#define glObjectPurgeableAPPLE MANGLE(ObjectPurgeableAPPLE)
|
||||
#define glObjectUnpurgeableAPPLE MANGLE(ObjectUnpurgeableAPPLE)
|
||||
#define glOrtho MANGLE(Ortho)
|
||||
#define glPassTexCoordATI MANGLE(PassTexCoordATI)
|
||||
#define glPassThrough MANGLE(PassThrough)
|
||||
@@ -1162,6 +1197,7 @@
|
||||
#define glProgramParameter4fvNV MANGLE(ProgramParameter4fvNV)
|
||||
#define glProgramParameteriARB MANGLE(ProgramParameteriARB)
|
||||
#define glProgramParameteriEXT MANGLE(ProgramParameteriEXT)
|
||||
#define glProgramParameteri MANGLE(ProgramParameteri)
|
||||
#define glProgramParameters4dvNV MANGLE(ProgramParameters4dvNV)
|
||||
#define glProgramParameters4fvNV MANGLE(ProgramParameters4fvNV)
|
||||
#define glProgramStringARB MANGLE(ProgramStringARB)
|
||||
@@ -1200,6 +1236,7 @@
|
||||
#define glProgramUniformMatrix4x3fvEXT MANGLE(ProgramUniformMatrix4x3fvEXT)
|
||||
#define glProgramVertexLimitNV MANGLE(ProgramVertexLimitNV)
|
||||
#define glProvokingVertexEXT MANGLE(ProvokingVertexEXT)
|
||||
#define glProvokingVertex MANGLE(ProvokingVertex)
|
||||
#define glPushAttrib MANGLE(PushAttrib)
|
||||
#define glPushClientAttribDefaultEXT MANGLE(PushClientAttribDefaultEXT)
|
||||
#define glPushClientAttrib MANGLE(PushClientAttrib)
|
||||
@@ -1283,6 +1320,7 @@
|
||||
#define glSampleCoverage MANGLE(SampleCoverage)
|
||||
#define glSampleMapATI MANGLE(SampleMapATI)
|
||||
#define glSampleMaskEXT MANGLE(SampleMaskEXT)
|
||||
#define glSampleMaski MANGLE(SampleMaski)
|
||||
#define glSampleMaskIndexedNV MANGLE(SampleMaskIndexedNV)
|
||||
#define glSampleMaskSGIS MANGLE(SampleMaskSGIS)
|
||||
#define glSamplePatternEXT MANGLE(SamplePatternEXT)
|
||||
@@ -1454,8 +1492,10 @@
|
||||
#define glTexGeniv MANGLE(TexGeniv)
|
||||
#define glTexImage1D MANGLE(TexImage1D)
|
||||
#define glTexImage2D MANGLE(TexImage2D)
|
||||
#define glTexImage2DMultisample MANGLE(TexImage2DMultisample)
|
||||
#define glTexImage3DEXT MANGLE(TexImage3DEXT)
|
||||
#define glTexImage3D MANGLE(TexImage3D)
|
||||
#define glTexImage3DMultisample MANGLE(TexImage3DMultisample)
|
||||
#define glTexImage4DSGIS MANGLE(TexImage4DSGIS)
|
||||
#define glTexParameterf MANGLE(TexParameterf)
|
||||
#define glTexParameterfv MANGLE(TexParameterfv)
|
||||
@@ -1487,6 +1527,7 @@
|
||||
#define glTextureParameterIivEXT MANGLE(TextureParameterIivEXT)
|
||||
#define glTextureParameterIuivEXT MANGLE(TextureParameterIuivEXT)
|
||||
#define glTextureParameterivEXT MANGLE(TextureParameterivEXT)
|
||||
#define glTextureRangeAPPLE MANGLE(TextureRangeAPPLE)
|
||||
#define glTextureRenderbufferEXT MANGLE(TextureRenderbufferEXT)
|
||||
#define glTextureSubImage1DEXT MANGLE(TextureSubImage1DEXT)
|
||||
#define glTextureSubImage2DEXT MANGLE(TextureSubImage2DEXT)
|
||||
@@ -1828,6 +1869,7 @@
|
||||
#define glVertexWeighthvNV MANGLE(VertexWeighthvNV)
|
||||
#define glVertexWeightPointerEXT MANGLE(VertexWeightPointerEXT)
|
||||
#define glViewport MANGLE(Viewport)
|
||||
#define glWaitSync MANGLE(WaitSync)
|
||||
#define glWeightbvARB MANGLE(WeightbvARB)
|
||||
#define glWeightdvARB MANGLE(WeightdvARB)
|
||||
#define glWeightfvARB MANGLE(WeightfvARB)
|
||||
|
@@ -29,9 +29,9 @@ extern "C" {
|
||||
*/
|
||||
|
||||
/* Header file version number, required by OpenGL ABI for Linux */
|
||||
/* glext.h last updated $Date: 2009-08-03 02:13:51 -0700 (Mon, 03 Aug 2009) $ */
|
||||
/* glext.h last updated $Date: 2009-09-24 13:55:03 -0700 (Thu, 24 Sep 2009) $ */
|
||||
/* Current version at http://www.opengl.org/registry/ */
|
||||
#define GL_GLEXT_VERSION 54
|
||||
#define GL_GLEXT_VERSION 56
|
||||
|
||||
/* Function declaration macros - to move into glplatform.h */
|
||||
|
||||
@@ -4236,7 +4236,7 @@ extern "C" {
|
||||
#define GL_LUMINANCE16_SNORM 0x9019
|
||||
#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A
|
||||
#define GL_INTENSITY16_SNORM 0x901B
|
||||
/* reuse GL_R_SNORM */
|
||||
/* reuse GL_RED_SNORM */
|
||||
/* reuse GL_RG_SNORM */
|
||||
/* reuse GL_RGB_SNORM */
|
||||
/* reuse GL_RGBA_SNORM */
|
||||
@@ -4311,6 +4311,88 @@ extern "C" {
|
||||
#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16
|
||||
#endif
|
||||
|
||||
#ifndef GL_APPLE_rgb_422
|
||||
#define GL_RGB_422_APPLE 0x8A1F
|
||||
/* reuse GL_UNSIGNED_SHORT_8_8_APPLE */
|
||||
/* reuse GL_UNSIGNED_SHORT_8_8_REV_APPLE */
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_video_capture
|
||||
#define GL_VIDEO_BUFFER_NV 0x9020
|
||||
#define GL_VIDEO_BUFFER_BINDING_NV 0x9021
|
||||
#define GL_FIELD_UPPER_NV 0x9022
|
||||
#define GL_FIELD_LOWER_NV 0x9023
|
||||
#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024
|
||||
#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025
|
||||
#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026
|
||||
#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027
|
||||
#define GL_VIDEO_BUFFER_PITCH_NV 0x9028
|
||||
#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029
|
||||
#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A
|
||||
#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B
|
||||
#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C
|
||||
#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D
|
||||
#define GL_PARTIAL_SUCCESS_NV 0x902E
|
||||
#define GL_SUCCESS_NV 0x902F
|
||||
#define GL_FAILURE_NV 0x9030
|
||||
#define GL_YCBYCR8_422_NV 0x9031
|
||||
#define GL_YCBAYCR8A_4224_NV 0x9032
|
||||
#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033
|
||||
#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034
|
||||
#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035
|
||||
#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036
|
||||
#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037
|
||||
#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038
|
||||
#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039
|
||||
#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A
|
||||
#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B
|
||||
#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_copy_image
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_separate_shader_objects
|
||||
#define GL_ACTIVE_PROGRAM_EXT 0x8B8D
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_parameter_buffer_object2
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_shader_buffer_load
|
||||
#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D
|
||||
#define GL_GPU_ADDRESS_NV 0x8F34
|
||||
#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_vertex_buffer_unified_memory
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
|
||||
#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
|
||||
#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21
|
||||
#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22
|
||||
#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23
|
||||
#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24
|
||||
#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
|
||||
#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26
|
||||
#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
|
||||
#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28
|
||||
#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29
|
||||
#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A
|
||||
#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B
|
||||
#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C
|
||||
#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D
|
||||
#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E
|
||||
#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F
|
||||
#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30
|
||||
#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
|
||||
#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32
|
||||
#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_texture_barrier
|
||||
#endif
|
||||
|
||||
|
||||
/*************************************************************/
|
||||
|
||||
@@ -9245,6 +9327,136 @@ typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType,
|
||||
#define GL_APPLE_row_bytes 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_APPLE_rgb_422
|
||||
#define GL_APPLE_rgb_422 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_video_capture
|
||||
#define GL_NV_video_capture 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glBeginVideoCaptureNV (GLuint);
|
||||
GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV (GLuint, GLuint, GLenum, GLintptrARB);
|
||||
GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV (GLuint, GLuint, GLenum, GLenum, GLuint);
|
||||
GLAPI void APIENTRY glEndVideoCaptureNV (GLuint);
|
||||
GLAPI void APIENTRY glGetVideoCaptureivNV (GLuint, GLenum, GLint *);
|
||||
GLAPI void APIENTRY glGetVideoCaptureStreamivNV (GLuint, GLuint, GLenum, GLint *);
|
||||
GLAPI void APIENTRY glGetVideoCaptureStreamfvNV (GLuint, GLuint, GLenum, GLfloat *);
|
||||
GLAPI void APIENTRY glGetVideoCaptureStreamdvNV (GLuint, GLuint, GLenum, GLdouble *);
|
||||
GLAPI GLenum APIENTRY glVideoCaptureNV (GLuint, GLuint *, GLuint64EXT *);
|
||||
GLAPI void APIENTRY glVideoCaptureStreamParameterivNV (GLuint, GLuint, GLenum, const GLint *);
|
||||
GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV (GLuint, GLuint, GLenum, const GLfloat *);
|
||||
GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV (GLuint, GLuint, GLenum, const GLdouble *);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
|
||||
typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
|
||||
typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
|
||||
typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
|
||||
typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
|
||||
typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
|
||||
typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
|
||||
typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
|
||||
typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
|
||||
typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
|
||||
typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_copy_image
|
||||
#define GL_NV_copy_image 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glCopyImageSubDataNV (GLuint, GLenum, GLint, GLint, GLint, GLint, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_separate_shader_objects
|
||||
#define GL_EXT_separate_shader_objects 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glUseShaderProgramEXT (GLenum, GLuint);
|
||||
GLAPI void APIENTRY glActiveProgramEXT (GLuint);
|
||||
GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum, const GLchar *);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
|
||||
typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
|
||||
typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_parameter_buffer_object2
|
||||
#define GL_NV_parameter_buffer_object2 1
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_shader_buffer_load
|
||||
#define GL_NV_shader_buffer_load 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glMakeBufferResidentNV (GLenum, GLenum);
|
||||
GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum);
|
||||
GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum);
|
||||
GLAPI void APIENTRY glNamedMakeBufferResidentNV (GLuint, GLenum);
|
||||
GLAPI void APIENTRY glNamedMakeBufferNonResidentNV (GLuint);
|
||||
GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint);
|
||||
GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum, GLenum, GLuint64EXT *);
|
||||
GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint, GLenum, GLuint64EXT *);
|
||||
GLAPI void APIENTRY glGetIntegerui64vNV (GLenum, GLuint64EXT *);
|
||||
GLAPI void APIENTRY glUniformui64NV (GLint, GLuint64EXT);
|
||||
GLAPI void APIENTRY glUniformui64vNV (GLint, GLsizei, const GLuint64EXT *);
|
||||
GLAPI void APIENTRY glGetUniformui64vNV (GLuint, GLint, GLuint64EXT *);
|
||||
GLAPI void APIENTRY glProgramUniformui64NV (GLuint, GLint, GLuint64EXT);
|
||||
GLAPI void APIENTRY glProgramUniformui64vNV (GLuint, GLint, GLsizei, const GLuint64EXT *);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
|
||||
typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
|
||||
typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
|
||||
typedef void (APIENTRYP PFNGLNAMEDMAKEBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
|
||||
typedef void (APIENTRYP PFNGLNAMEDMAKEBUFFERNONRESIDENTNVPROC) (GLuint buffer);
|
||||
typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
|
||||
typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
|
||||
typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
|
||||
typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
|
||||
typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
|
||||
typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
|
||||
typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
|
||||
typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
|
||||
typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_vertex_buffer_unified_memory
|
||||
#define GL_NV_vertex_buffer_unified_memory 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glBufferAddressRangeNV (GLenum, GLuint, GLuint64EXT, GLsizeiptr);
|
||||
GLAPI void APIENTRY glVertexFormatNV (GLint, GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glNormalFormatNV (GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glColorFormatNV (GLint, GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glIndexFormatNV (GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glTexCoordFormatNV (GLint, GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei);
|
||||
GLAPI void APIENTRY glSecondaryColorFormatNV (GLint, GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glFogCoordFormatNV (GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glVertexAttribFormatNV (GLuint, GLint, GLenum, GLboolean, GLsizei);
|
||||
GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint, GLint, GLenum, GLsizei);
|
||||
GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum, GLuint, GLuint64EXT *);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
|
||||
typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
|
||||
typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
|
||||
#endif
|
||||
|
||||
#ifndef GL_NV_texture_barrier
|
||||
#define GL_NV_texture_barrier 1
|
||||
#ifdef GL_GLEXT_PROTOTYPES
|
||||
GLAPI void APIENTRY glTextureBarrierNV (void);
|
||||
#endif /* GL_GLEXT_PROTOTYPES */
|
||||
typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@@ -76,6 +76,7 @@
|
||||
|
||||
/* GLX 1.4 */
|
||||
#define glXGetProcAddress mglXGetProcAddress
|
||||
#define glXGetProcAddressARB mglXGetProcAddressARB
|
||||
|
||||
|
||||
#endif
|
||||
|
@@ -48,9 +48,9 @@ extern "C" {
|
||||
/*************************************************************/
|
||||
|
||||
/* Header file version number, required by OpenGL ABI for Linux */
|
||||
/* glxext.h last updated 2009/08/03 */
|
||||
/* glxext.h last updated 2009/10/08 */
|
||||
/* Current version at http://www.opengl.org/registry/ */
|
||||
#define GLX_GLXEXT_VERSION 23
|
||||
#define GLX_GLXEXT_VERSION 25
|
||||
|
||||
#ifndef GLX_VERSION_1_3
|
||||
#define GLX_WINDOW_BIT 0x00000001
|
||||
@@ -382,6 +382,20 @@ extern "C" {
|
||||
#ifndef GLX_NV_swap_group
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_video_capture
|
||||
#define GLX_DEVICE_ID_NV 0x20CD
|
||||
#define GLX_UNIQUE_ID_NV 0x20CE
|
||||
#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
|
||||
#endif
|
||||
|
||||
#ifndef GLX_EXT_swap_control
|
||||
#define GLX_SWAP_INTERVAL_EXT 0x20F1
|
||||
#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_copy_image
|
||||
#endif
|
||||
|
||||
|
||||
/*************************************************************/
|
||||
|
||||
@@ -415,6 +429,14 @@ typedef struct {
|
||||
} GLXBufferClobberEventSGIX;
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_video_output
|
||||
typedef unsigned int GLXVideoDeviceNV;
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_video_capture
|
||||
typedef XID GLXVideoCaptureDeviceNV;
|
||||
#endif
|
||||
|
||||
#ifndef GLEXT_64_TYPES_DEFINED
|
||||
/* This code block is duplicated in glext.h, so must be protected */
|
||||
#define GLEXT_64_TYPES_DEFINED
|
||||
@@ -827,14 +849,80 @@ typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawab
|
||||
|
||||
#ifndef GLX_NV_present_video
|
||||
#define GLX_NV_present_video 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern unsigned int * glXEnumerateVideoDevicesNV (Display *, int, int *);
|
||||
extern int glXBindVideoDeviceNV (Display *, unsigned int, unsigned int, const int *);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef unsigned int * ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
|
||||
typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_video_out
|
||||
#define GLX_NV_video_out 1
|
||||
#ifndef GLX_NV_video_output
|
||||
#define GLX_NV_video_output 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern int glXGetVideoDeviceNV (Display *, int, int, GLXVideoDeviceNV *);
|
||||
extern int glXReleaseVideoDeviceNV (Display *, int, GLXVideoDeviceNV);
|
||||
extern int glXBindVideoImageNV (Display *, GLXVideoDeviceNV, GLXPbuffer, int);
|
||||
extern int glXReleaseVideoImageNV (Display *, GLXPbuffer);
|
||||
extern int glXSendPbufferToVideoNV (Display *, GLXPbuffer, int, unsigned long *, GLboolean);
|
||||
extern int glXGetVideoInfoNV (Display *, int, GLXVideoDeviceNV, unsigned long *, unsigned long *);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
|
||||
typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
|
||||
typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
|
||||
typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
|
||||
typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
|
||||
typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_swap_group
|
||||
#define GLX_NV_swap_group 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern Bool glXJoinSwapGroupNV (Display *, GLXDrawable, GLuint);
|
||||
extern Bool glXBindSwapBarrierNV (Display *, GLuint, GLuint);
|
||||
extern Bool glXQuerySwapGroupNV (Display *, GLXDrawable, GLuint *, GLuint *);
|
||||
extern Bool glXQueryMaxSwapGroupsNV (Display *, int, GLuint *, GLuint *);
|
||||
extern Bool glXQueryFrameCountNV (Display *, int, GLuint *);
|
||||
extern Bool glXResetFrameCountNV (Display *, int);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
|
||||
typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
|
||||
typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
|
||||
typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
|
||||
typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
|
||||
typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_video_capture
|
||||
#define GLX_NV_video_capture 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern int glXBindVideoCaptureDeviceNV (Display *, unsigned int, GLXVideoCaptureDeviceNV);
|
||||
extern GLXVideoCaptureDeviceNV * glXEnumerateVideoCaptureDevicesNV (Display *, int, int *);
|
||||
extern void glXLockVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV);
|
||||
extern int glXQueryVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV, int, int *);
|
||||
extern void glXReleaseVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
|
||||
typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
|
||||
typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
|
||||
typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
|
||||
typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
|
||||
#endif
|
||||
|
||||
#ifndef GLX_EXT_swap_control
|
||||
#define GLX_EXT_swap_control 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern int glXSwapIntervalEXT (Display *, GLXDrawable, int);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef int ( * PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
|
||||
#endif
|
||||
|
||||
#ifndef GLX_NV_copy_image
|
||||
#define GLX_NV_copy_image 1
|
||||
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||
extern void glXCopyImageSubDataNV (Display *, GLXContext, GLuint, GLenum, GLint, GLint, GLint, GLint, GLXContext, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
|
||||
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||
typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
|
||||
#endif
|
||||
|
||||
|
||||
|
@@ -48,9 +48,9 @@ extern "C" {
|
||||
/*************************************************************/
|
||||
|
||||
/* Header file version number */
|
||||
/* wglext.h last updated 2009/08/03 */
|
||||
/* wglext.h last updated 2009/09/16 */
|
||||
/* Current version at http://www.opengl.org/registry/ */
|
||||
#define WGL_WGLEXT_VERSION 15
|
||||
#define WGL_WGLEXT_VERSION 17
|
||||
|
||||
#ifndef WGL_ARB_buffer_region
|
||||
#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
|
||||
@@ -388,6 +388,14 @@ extern "C" {
|
||||
#define WGL_GPU_NUM_SPI_AMD 0x21A8
|
||||
#endif
|
||||
|
||||
#ifndef NV_video_capture
|
||||
#define WGL_UNIQUE_ID_NV 0x20CE
|
||||
#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
|
||||
#endif
|
||||
|
||||
#ifndef NV_copy_image
|
||||
#endif
|
||||
|
||||
|
||||
/*************************************************************/
|
||||
|
||||
@@ -400,7 +408,7 @@ DECLARE_HANDLE(HPBUFFEREXT);
|
||||
#ifndef WGL_NV_present_video
|
||||
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
|
||||
#endif
|
||||
#ifndef WGL_NV_video_out
|
||||
#ifndef WGL_NV_video_output
|
||||
DECLARE_HANDLE(HPVIDEODEV);
|
||||
#endif
|
||||
#ifndef WGL_NV_gpu_affinity
|
||||
@@ -415,6 +423,9 @@ typedef struct _GPU_DEVICE {
|
||||
RECT rcVirtualScreen;
|
||||
} GPU_DEVICE, *PGPU_DEVICE;
|
||||
#endif
|
||||
#ifndef WGL_NV_video_capture
|
||||
DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
|
||||
#endif
|
||||
|
||||
#ifndef WGL_ARB_buffer_region
|
||||
#define WGL_ARB_buffer_region 1
|
||||
@@ -750,8 +761,8 @@ typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDC, unsigned int uVide
|
||||
typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
|
||||
#endif
|
||||
|
||||
#ifndef WGL_NV_video_out
|
||||
#define WGL_NV_video_out 1
|
||||
#ifndef WGL_NV_video_output
|
||||
#define WGL_NV_video_output 1
|
||||
#ifdef WGL_WGLEXT_PROTOTYPES
|
||||
extern BOOL WINAPI wglGetVideoDeviceNV (HDC, int, HPVIDEODEV *);
|
||||
extern BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV);
|
||||
@@ -826,6 +837,30 @@ typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
|
||||
typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
|
||||
#endif
|
||||
|
||||
#ifndef WGL_NV_video_capture
|
||||
#define WGL_NV_video_capture 1
|
||||
#ifdef WGL_WGLEXT_PROTOTYPES
|
||||
extern BOOL WINAPI wglBindVideoCaptureDeviceNV (UINT, HVIDEOINPUTDEVICENV);
|
||||
extern UINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC, HVIDEOINPUTDEVICENV *);
|
||||
extern BOOL WINAPI wglLockVideoCaptureDeviceNV (HDC, HVIDEOINPUTDEVICENV);
|
||||
extern BOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC, HVIDEOINPUTDEVICENV, int, int *);
|
||||
extern BOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC, HVIDEOINPUTDEVICENV);
|
||||
#endif /* WGL_WGLEXT_PROTOTYPES */
|
||||
typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
|
||||
typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
|
||||
typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
|
||||
typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
|
||||
typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
|
||||
#endif
|
||||
|
||||
#ifndef WGL_NV_copy_image
|
||||
#define WGL_NV_copy_image 1
|
||||
#ifdef WGL_WGLEXT_PROTOTYPES
|
||||
extern BOOL WINAPI wglCopyImageSubDataNV (HGLRC, GLuint, GLenum, GLint, GLint, GLint, GLint, HGLRC, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
|
||||
#endif /* WGL_WGLEXT_PROTOTYPES */
|
||||
typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
1
progs/.gitignore
vendored
Normal file
1
progs/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.dSYM
|
@@ -15,7 +15,7 @@ message:
|
||||
|
||||
|
||||
subdirs:
|
||||
@for dir in $(SUBDIRS) ; do \
|
||||
@list='$(SUBDIRS)'; for dir in $$list ; do \
|
||||
if [ -d $$dir ] ; then \
|
||||
(cd $$dir && $(MAKE)) || exit 1 ; \
|
||||
fi \
|
||||
@@ -25,7 +25,7 @@ subdirs:
|
||||
install:
|
||||
|
||||
clean:
|
||||
-@for dir in $(SUBDIRS) tests ; do \
|
||||
@list='$(SUBDIRS)'; for dir in $$list tests ; do \
|
||||
if [ -d $$dir ] ; then \
|
||||
(cd $$dir && $(MAKE) clean) ; \
|
||||
fi \
|
||||
|
@@ -15,8 +15,6 @@
|
||||
|
||||
#define DEPTH 5.0f
|
||||
|
||||
static PFNGLFOGCOORDPOINTEREXTPROC glFogCoordPointer_ext;
|
||||
|
||||
static GLfloat camz;
|
||||
|
||||
static GLint fogMode;
|
||||
|
@@ -353,6 +353,7 @@ MakeSphere(void)
|
||||
glNewList(SphereList, GL_COMPILE);
|
||||
gluSphere(obj, 2.0f, 10, 5);
|
||||
glEndList();
|
||||
gluDeleteQuadric(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -133,6 +133,8 @@ initdlists(void)
|
||||
|
||||
glEndList();
|
||||
}
|
||||
|
||||
gluDeleteQuadric(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -887,5 +887,5 @@ int main(int argc, char **argv)
|
||||
glutIdleFunc( idle_ );
|
||||
glutDisplayFunc( draw );
|
||||
glutMainLoop();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -245,6 +245,10 @@ loadImageTextures(void)
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
}
|
||||
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, borderColor);
|
||||
|
||||
free(texData3);
|
||||
free(texData4);
|
||||
free(image);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -834,6 +834,8 @@ initdlists(void)
|
||||
gluQuadricTexture(obj, GL_TRUE);
|
||||
gluSphere(obj, SPHERE_RADIUS, 16, 16);
|
||||
glEndList();
|
||||
|
||||
gluDeleteQuadric(obj);
|
||||
}
|
||||
|
||||
int
|
||||
|
@@ -57,7 +57,7 @@ Idle(void)
|
||||
{
|
||||
Xrot = glutGet(GLUT_ELAPSED_TIME) * 0.02;
|
||||
Yrot = glutGet(GLUT_ELAPSED_TIME) * 0.04;
|
||||
//Zrot += 2.0;
|
||||
/* Zrot += 2.0; */
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
|
@@ -17,6 +17,7 @@ SOURCES = \
|
||||
tri-depth2.c \
|
||||
tri-depthwrite.c \
|
||||
tri-depthwrite2.c \
|
||||
tri-inv.c \
|
||||
tri-param.c \
|
||||
fp-tri.c
|
||||
|
||||
|
@@ -197,7 +197,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -55,7 +55,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -57,7 +57,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -59,7 +59,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -55,7 +55,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -55,7 +55,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -56,7 +56,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -54,7 +54,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -76,7 +76,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(1);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
glutPostRedisplay();
|
||||
|
@@ -31,7 +31,7 @@ void main()
|
||||
float iter;
|
||||
|
||||
// for (iter = 0.0; iter < MaxIterations && r2 < 4.0; ++iter)
|
||||
for (iter = 0.0; iter < 12 && r2 < 4.0; ++iter)
|
||||
for (iter = 0.0; iter < 12.0 && r2 < 4.0; ++iter)
|
||||
{
|
||||
float tempreal = real;
|
||||
|
||||
|
@@ -10,16 +10,15 @@ LIB_DEP = \
|
||||
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) \
|
||||
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||
|
||||
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||
|
||||
INCLUDE_DIRS = -I$(TOP)/progs/util
|
||||
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) \
|
||||
-l$(GL_LIB) $(APP_LIB_DEPS)
|
||||
|
||||
# using : to avoid APP_CC pointing to CC loop
|
||||
CC:=$(APP_CC)
|
||||
CFLAGS += -I$(INCDIR)
|
||||
LDLIBS=$(LIBS)
|
||||
CC := $(APP_CC)
|
||||
CFLAGS := -I$(INCDIR) $(CFLAGS)
|
||||
LDLIBS = $(LIBS)
|
||||
|
||||
DEMO_SOURCES = \
|
||||
PROG_SOURCES = \
|
||||
array.c \
|
||||
bitmap.c \
|
||||
brick.c \
|
||||
@@ -59,8 +58,8 @@ UTIL_SOURCES = \
|
||||
readtex.c
|
||||
|
||||
UTIL_OBJS = $(UTIL_SOURCES:.c=.o)
|
||||
PROG_OBJS = $(DEMO_SOURCES:.c=.o)
|
||||
PROGS = $(DEMO_SOURCES:%.c=%)
|
||||
PROG_OBJS = $(PROG_SOURCES:.c=.o)
|
||||
PROGS = $(PROG_SOURCES:%.c=%)
|
||||
|
||||
##### TARGETS #####
|
||||
|
||||
|
@@ -36,7 +36,7 @@ static GLint win = 0;
|
||||
|
||||
static GLfloat xRot = 20.0f, yRot = 0.0f, zRot = 0.0f;
|
||||
|
||||
static GLuint tangentAttrib;
|
||||
static GLint tangentAttrib;
|
||||
|
||||
static GLboolean Anim = GL_FALSE;
|
||||
|
||||
|
@@ -369,7 +369,7 @@ static void keyPress(unsigned char key, int x, int y)
|
||||
case 27:
|
||||
exit(0);
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
@@ -140,6 +140,7 @@ MakeSphere(void)
|
||||
glNewList(SphereList, GL_COMPILE);
|
||||
gluSphere(obj, 2.0f, 30, 15);
|
||||
glEndList();
|
||||
gluDeleteQuadric(obj);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -22,22 +22,22 @@ static const char *FragShaderText[ 4 ] = {
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].w ) * 0.5 + 0.5;\n"
|
||||
" gl_FragColor.a = 1;\n"
|
||||
" gl_FragColor.a = 1.0;\n"
|
||||
"}\n",
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xw ) * 0.5 + 0.5;\n"
|
||||
" gl_FragColor.a = 1;\n"
|
||||
" gl_FragColor.a = 1.0;\n"
|
||||
"}\n",
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xyw ) * 0.5 + 0.5;\n"
|
||||
" gl_FragColor.a = 1;\n"
|
||||
" gl_FragColor.a = 1.0;\n"
|
||||
"}\n",
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xyzw ) * 0.5 + 0.5;\n"
|
||||
" gl_FragColor.a = 1;\n"
|
||||
" gl_FragColor.a = 1.0;\n"
|
||||
"}\n"
|
||||
};
|
||||
|
||||
@@ -125,6 +125,7 @@ Key(unsigned char key, int x, int y)
|
||||
case 'a':
|
||||
Anim = !Anim;
|
||||
glutIdleFunc(Anim ? Idle : NULL);
|
||||
break;
|
||||
case 's':
|
||||
Slice -= step;
|
||||
break;
|
||||
@@ -193,7 +194,7 @@ LoadAndCompileShader(GLuint shader, const char *text)
|
||||
GLchar log[1000];
|
||||
GLsizei len;
|
||||
glGetShaderInfoLog(shader, 1000, &len, log);
|
||||
fprintf(stderr, "noise: problem compiling shader: %s\n", log);
|
||||
fprintf(stderr, "multinoise: problem compiling shader: %s\n", log);
|
||||
exit(1);
|
||||
}
|
||||
else {
|
||||
|
@@ -28,7 +28,7 @@ static const char *FragShaderText =
|
||||
" vec4 p;\n"
|
||||
" p.xy = gl_TexCoord[0].xy;\n"
|
||||
" p.z = Slice;\n"
|
||||
" p.w = 0;\n"
|
||||
" p.w = 0.0;\n"
|
||||
" vec4 n = noise4(p * scale);\n"
|
||||
" gl_FragColor = n * Scale + Bias;\n"
|
||||
"}\n";
|
||||
@@ -119,6 +119,7 @@ Key(unsigned char key, int x, int y)
|
||||
case 'a':
|
||||
Anim = !Anim;
|
||||
glutIdleFunc(Anim ? Idle : NULL);
|
||||
break;
|
||||
case 's':
|
||||
Slice -= step;
|
||||
break;
|
||||
|
@@ -627,7 +627,7 @@ Init(void)
|
||||
NumAttribs = GetAttribs(Program, Attribs);
|
||||
PrintAttribs(Attribs);
|
||||
|
||||
//assert(glGetError() == 0);
|
||||
/* assert(glGetError() == 0); */
|
||||
|
||||
glClearColor(0.4f, 0.4f, 0.8f, 0.0f);
|
||||
|
||||
|
@@ -16,6 +16,9 @@
|
||||
#include <GL/glut.h>
|
||||
#include "shaderutil.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535
|
||||
#endif
|
||||
|
||||
static char *FragProgFile = "skinning.frag";
|
||||
static char *VertProgFile = "skinning.vert";
|
||||
|
@@ -14,6 +14,9 @@
|
||||
#include <GL/glew.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535
|
||||
#endif
|
||||
|
||||
static GLint WinWidth = 300, WinHeight = 300;
|
||||
static GLint win = 0;
|
||||
@@ -307,8 +310,8 @@ MakeMipmap(void)
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
//glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, 4);
|
||||
////glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 5);
|
||||
/* glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, 4); */
|
||||
/* glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 5); */
|
||||
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
#undef SZ
|
||||
|
@@ -179,9 +179,9 @@ Init(void)
|
||||
"\n"
|
||||
"void main() {\n"
|
||||
" vec2 p = gl_FragCoord.xy; \n"
|
||||
" if (crs(v1 - v0, p - v0) >= 0 && \n"
|
||||
" crs(v2 - v1, p - v1) >= 0 && \n"
|
||||
" crs(v0 - v2, p - v2) >= 0) \n"
|
||||
" if (crs(v1 - v0, p - v0) >= 0.0 && \n"
|
||||
" crs(v2 - v1, p - v1) >= 0.0 && \n"
|
||||
" crs(v0 - v2, p - v2) >= 0.0) \n"
|
||||
" gl_FragColor = vec4(1.0); \n"
|
||||
" else \n"
|
||||
" gl_FragColor = vec4(0.5); \n"
|
||||
|
@@ -16,6 +16,9 @@
|
||||
#include <GL/glut.h>
|
||||
#include "shaderutil.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.1415926535
|
||||
#endif
|
||||
|
||||
static GLint WinWidth = 300, WinHeight = 300;
|
||||
static char *FragProgFile = NULL;
|
||||
|
@@ -56,7 +56,7 @@ static float rotAngle = 0.;
|
||||
* at RAMP1START, and a blue color ramp starting
|
||||
* at RAMP2START. The ramps must be a multiple of 16.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -76,7 +76,7 @@ void init(void)
|
||||
|
||||
/* Draw 2 diagonal lines to form an X
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
@@ -101,7 +101,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -117,7 +117,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 'r':
|
||||
|
@@ -59,7 +59,7 @@ static void init(void)
|
||||
|
||||
#define NFACE 6
|
||||
#define NVERT 8
|
||||
void drawCube(GLdouble x0, GLdouble x1, GLdouble y0, GLdouble y1,
|
||||
static void drawCube(GLdouble x0, GLdouble x1, GLdouble y0, GLdouble y1,
|
||||
GLdouble z0, GLdouble z1)
|
||||
{
|
||||
static GLfloat v[8][3];
|
||||
@@ -101,7 +101,7 @@ void drawCube(GLdouble x0, GLdouble x1, GLdouble y0, GLdouble y1,
|
||||
/* Note: polygons must be drawn from front to back
|
||||
* for proper blending.
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
if (polySmooth) {
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
@@ -126,7 +126,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -137,7 +137,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 't':
|
||||
|
@@ -51,7 +51,7 @@ static float rotAngle = 0.;
|
||||
* blending, hint, and line width. Print out implementation
|
||||
* specific info on line width granularity and width.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
GLfloat values[2];
|
||||
glGetFloatv (GL_LINE_WIDTH_GRANULARITY, values);
|
||||
@@ -72,7 +72,7 @@ void init(void)
|
||||
|
||||
/* Draw 2 diagonal lines to form an X
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
@@ -97,7 +97,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -113,7 +113,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 'r':
|
||||
|
@@ -45,7 +45,7 @@
|
||||
|
||||
/* Initialize lighting and other values.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat mat_ambient[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -68,7 +68,7 @@ void myinit(void)
|
||||
glClearAccum(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
void displayObjects(void)
|
||||
static void displayObjects(void)
|
||||
{
|
||||
GLfloat torus_diffuse[] = { 0.7, 0.7, 0.0, 1.0 };
|
||||
GLfloat cube_diffuse[] = { 0.0, 0.7, 0.7, 1.0 };
|
||||
@@ -111,7 +111,7 @@ void displayObjects(void)
|
||||
|
||||
#define ACSIZE 8
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLint viewport[4];
|
||||
int jitter;
|
||||
@@ -137,7 +137,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -62,7 +62,7 @@
|
||||
* probably want to insure that your ModelView matrix has been
|
||||
* initialized to identity before calling accFrustum().
|
||||
*/
|
||||
void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
static void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
GLdouble top, GLdouble nnear, GLdouble ffar, GLdouble pixdx,
|
||||
GLdouble pixdy, GLdouble eyedx, GLdouble eyedy, GLdouble focus)
|
||||
{
|
||||
@@ -99,7 +99,7 @@ void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
*
|
||||
* Note that accPerspective() calls accFrustum().
|
||||
*/
|
||||
void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
static void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
GLdouble nnear, GLdouble ffar, GLdouble pixdx, GLdouble pixdy,
|
||||
GLdouble eyedx, GLdouble eyedy, GLdouble focus)
|
||||
{
|
||||
@@ -119,7 +119,7 @@ void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
|
||||
/* Initialize lighting and other values.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
GLfloat mat_ambient[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -141,7 +141,7 @@ void init(void)
|
||||
glClearAccum(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
void displayObjects(void)
|
||||
static void displayObjects(void)
|
||||
{
|
||||
GLfloat torus_diffuse[] = { 0.7, 0.7, 0.0, 1.0 };
|
||||
GLfloat cube_diffuse[] = { 0.0, 0.7, 0.7, 1.0 };
|
||||
@@ -185,7 +185,7 @@ void displayObjects(void)
|
||||
|
||||
#define ACSIZE 8
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLint viewport[4];
|
||||
int jitter;
|
||||
@@ -205,13 +205,13 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -80,7 +80,7 @@ static void drawRightTriangle(void)
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
@@ -96,7 +96,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -108,7 +108,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 't':
|
||||
|
@@ -80,7 +80,7 @@ static void init(void)
|
||||
glEndList();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat mat_solid[] = { 0.75, 0.75, 0.0, 1.0 };
|
||||
GLfloat mat_zero[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
@@ -113,7 +113,7 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLint) w, (GLint) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -128,7 +128,7 @@ void reshape(int w, int h)
|
||||
glLoadIdentity();
|
||||
}
|
||||
|
||||
void animate(void)
|
||||
static void animate(void)
|
||||
{
|
||||
static double t0 = -1.;
|
||||
if (solidZ <= MINZ || transparentZ >= MAXZ)
|
||||
@@ -150,7 +150,7 @@ void animate(void)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 'a':
|
||||
|
@@ -49,7 +49,7 @@
|
||||
* blending, hint, and line width. Print out implementation
|
||||
* specific info on line width granularity and width.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat values[2];
|
||||
glGetFloatv (GL_LINE_WIDTH_GRANULARITY, values);
|
||||
@@ -73,7 +73,7 @@ void myinit(void)
|
||||
|
||||
/* display() draws an icosahedron with a large alpha value, 1.0.
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glColor4f (1.0, 1.0, 1.0, 1.0);
|
||||
@@ -81,7 +81,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -45,7 +45,7 @@ GLfloat ctrlpoints[4][3] = {
|
||||
{ -4.0, -4.0, 0.0}, { -2.0, 4.0, 0.0},
|
||||
{2.0, -4.0, 0.0}, {4.0, 4.0, 0.0}};
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel(GL_FLAT);
|
||||
@@ -53,7 +53,7 @@ void init(void)
|
||||
glEnable(GL_MAP1_VERTEX_3);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -73,7 +73,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -89,7 +89,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -68,7 +68,7 @@ GLfloat ctrlpoints[4][4][3] =
|
||||
{1.5, 1.5, -1.0}}
|
||||
};
|
||||
|
||||
void
|
||||
static void
|
||||
initlights(void)
|
||||
{
|
||||
GLfloat ambient[] =
|
||||
@@ -93,7 +93,7 @@ initlights(void)
|
||||
glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -104,7 +104,7 @@ display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||
@@ -118,7 +118,7 @@ myinit(void)
|
||||
initlights(); /* for lighted version only */
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -50,7 +50,7 @@
|
||||
#define checkImageHeight 64
|
||||
GLubyte checkImage[checkImageWidth][checkImageHeight][3];
|
||||
|
||||
void makeCheckImage(void)
|
||||
static void makeCheckImage(void)
|
||||
{
|
||||
int i, j, c;
|
||||
|
||||
@@ -64,7 +64,7 @@ void makeCheckImage(void)
|
||||
}
|
||||
}
|
||||
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
@@ -84,7 +84,7 @@ void myinit(void)
|
||||
glShadeModel(GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glBegin(GL_QUADS);
|
||||
@@ -101,7 +101,7 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -42,13 +42,13 @@
|
||||
#include <GL/glut.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLdouble eqn[4] = {0.0, 1.0, 0.0, 0.0};
|
||||
GLdouble eqn2[4] = {1.0, 0.0, 0.0, 0.0};
|
||||
@@ -73,7 +73,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -83,7 +83,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -49,7 +49,7 @@ GLfloat diffuseMaterial[4] = { 0.5, 0.5, 0.5, 1.0 };
|
||||
/* Initialize material property, light source, lighting model,
|
||||
* and depth buffer.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
GLfloat light_position[] = { 1.0, 1.0, 1.0, 0.0 };
|
||||
@@ -68,14 +68,14 @@ void init(void)
|
||||
glEnable(GL_COLOR_MATERIAL);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glutSolidSphere(1.0, 20, 16);
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -91,7 +91,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED2 */
|
||||
void mouse(int button, int state, int x, int y)
|
||||
static void mouse(int button, int state, int x, int y)
|
||||
{
|
||||
switch (button) {
|
||||
case GLUT_LEFT_BUTTON:
|
||||
@@ -127,7 +127,7 @@ void mouse(int button, int state, int x, int y)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -44,13 +44,13 @@
|
||||
#include <GL/glut.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
@@ -62,7 +62,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -72,7 +72,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
/* Initialize linear fog for depth cueing.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat fogColor[4] = {0.0, 0.0, 0.0, 1.0};
|
||||
|
||||
@@ -67,7 +67,7 @@ void myinit(void)
|
||||
|
||||
/* display() draws an icosahedron.
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
@@ -75,7 +75,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -68,7 +68,7 @@
|
||||
* probably want to insure that your ModelView matrix has been
|
||||
* initialized to identity before calling accFrustum().
|
||||
*/
|
||||
void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
static void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
GLdouble top, GLdouble nnear, GLdouble ffar, GLdouble pixdx,
|
||||
GLdouble pixdy, GLdouble eyedx, GLdouble eyedy, GLdouble focus)
|
||||
{
|
||||
@@ -105,7 +105,7 @@ void accFrustum(GLdouble left, GLdouble right, GLdouble bottom,
|
||||
*
|
||||
* Note that accPerspective() calls accFrustum().
|
||||
*/
|
||||
void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
static void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
GLdouble nnear, GLdouble ffar, GLdouble pixdx, GLdouble pixdy,
|
||||
GLdouble eyedx, GLdouble eyedy, GLdouble focus)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ void accPerspective(GLdouble fovy, GLdouble aspect,
|
||||
pixdx, pixdy, eyedx, eyedy, focus);
|
||||
}
|
||||
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -155,7 +155,7 @@ void myinit(void)
|
||||
glClearAccum(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
void renderTeapot (GLfloat x, GLfloat y, GLfloat z,
|
||||
static void renderTeapot (GLfloat x, GLfloat y, GLfloat z,
|
||||
GLfloat ambr, GLfloat ambg, GLfloat ambb,
|
||||
GLfloat difr, GLfloat difg, GLfloat difb,
|
||||
GLfloat specr, GLfloat specg, GLfloat specb, GLfloat shine)
|
||||
@@ -182,7 +182,7 @@ void renderTeapot (GLfloat x, GLfloat y, GLfloat z,
|
||||
* magnitude of the accPerspective() jitter; in this example, 0.33.
|
||||
* In this example, the teapots are drawn 8 times. See jitter.h
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
int jitter;
|
||||
GLint viewport[4];
|
||||
@@ -214,7 +214,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@
|
||||
static GLfloat spin = 0.0;
|
||||
static GLdouble t0 = 0.;
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glPushMatrix();
|
||||
@@ -59,12 +59,12 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
GLdouble gettime(void)
|
||||
static GLdouble gettime(void)
|
||||
{
|
||||
return (GLdouble)(glutGet(GLUT_ELAPSED_TIME)) / 1000.;
|
||||
}
|
||||
|
||||
void spinDisplay(void)
|
||||
static void spinDisplay(void)
|
||||
{
|
||||
GLdouble t, dt;
|
||||
t = gettime();
|
||||
@@ -76,13 +76,13 @@ void spinDisplay(void)
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -93,7 +93,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED2 */
|
||||
void mouse(int button, int state, int x, int y)
|
||||
static void mouse(int button, int state, int x, int y)
|
||||
{
|
||||
switch (button) {
|
||||
case GLUT_LEFT_BUTTON:
|
||||
|
@@ -48,13 +48,13 @@ GLubyte rasters[24] = {
|
||||
0xff, 0x00, 0xff, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00,
|
||||
0xff, 0xc0, 0xff, 0xc0};
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
@@ -65,7 +65,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -75,7 +75,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
/* Initialize lighting.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glEnable(GL_LIGHTING);
|
||||
glEnable(GL_LIGHT0);
|
||||
@@ -58,7 +58,7 @@ void init(void)
|
||||
* be clipped. If in feedback mode, a passthrough token
|
||||
* is issued between the each primitive.
|
||||
*/
|
||||
void drawGeometry (GLenum mode)
|
||||
static void drawGeometry (GLenum mode)
|
||||
{
|
||||
glBegin (GL_LINE_STRIP);
|
||||
glNormal3f (0.0, 0.0, 1.0);
|
||||
@@ -80,8 +80,8 @@ void drawGeometry (GLenum mode)
|
||||
}
|
||||
|
||||
/* Write contents of one vertex to stdout. */
|
||||
void print3DcolorVertex (GLint size, GLint *count,
|
||||
GLfloat *buffer)
|
||||
static void print3DcolorVertex (GLint size, GLint *count,
|
||||
GLfloat *buffer)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -94,7 +94,7 @@ void print3DcolorVertex (GLint size, GLint *count,
|
||||
}
|
||||
|
||||
/* Write contents of entire buffer. (Parse tokens!) */
|
||||
void printBuffer(GLint size, GLfloat *buffer)
|
||||
static void printBuffer(GLint size, GLfloat *buffer)
|
||||
{
|
||||
GLint count;
|
||||
GLfloat token;
|
||||
@@ -124,7 +124,7 @@ void printBuffer(GLint size, GLfloat *buffer)
|
||||
}
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat feedBuffer[1024];
|
||||
GLint size;
|
||||
@@ -148,7 +148,7 @@ void display(void)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -52,7 +52,7 @@
|
||||
|
||||
GLint fogMode;
|
||||
|
||||
void
|
||||
static void
|
||||
selectFog(int mode)
|
||||
{
|
||||
switch(mode) {
|
||||
@@ -73,7 +73,7 @@ selectFog(int mode)
|
||||
/* Initialize z-buffer, projection matrix, light source,
|
||||
* and lighting model. Do not specify a material property here.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
GLfloat position[] =
|
||||
@@ -106,7 +106,7 @@ myinit(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
renderRedTeapot(GLfloat x, GLfloat y, GLfloat z)
|
||||
{
|
||||
float mat[4];
|
||||
@@ -133,7 +133,7 @@ renderRedTeapot(GLfloat x, GLfloat y, GLfloat z)
|
||||
|
||||
/* display() draws 5 teapots at different z positions.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -145,7 +145,7 @@ display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -53,7 +53,7 @@
|
||||
#define NUM_COLORS 32
|
||||
#define RAMPSTART 16
|
||||
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
int i;
|
||||
@@ -77,7 +77,7 @@ myinit(void)
|
||||
|
||||
/* display() renders 3 cones at different z positions.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -104,7 +104,7 @@ display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -80,7 +80,7 @@ GLubyte letters[][13] = {
|
||||
|
||||
GLuint fontOffset;
|
||||
|
||||
void makeRasterFont(void)
|
||||
static void makeRasterFont(void)
|
||||
{
|
||||
GLuint i, j;
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
@@ -96,13 +96,13 @@ void makeRasterFont(void)
|
||||
glEndList();
|
||||
}
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glShadeModel (GL_FLAT);
|
||||
makeRasterFont();
|
||||
}
|
||||
|
||||
void printString(char *s)
|
||||
static void printString(char *s)
|
||||
{
|
||||
glPushAttrib (GL_LIST_BIT);
|
||||
glListBase(fontOffset);
|
||||
@@ -115,7 +115,7 @@ void printString(char *s)
|
||||
* to call makeRasterFont() before you start making
|
||||
* calls to printString().
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat white[3] = { 1.0, 1.0, 1.0 };
|
||||
|
||||
@@ -129,7 +129,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -139,7 +139,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -42,7 +42,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
/* clear all pixels */
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
@@ -64,7 +64,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void init (void)
|
||||
static void init (void)
|
||||
{
|
||||
/* select clearing color */
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
|
@@ -58,7 +58,7 @@ GLubyte checkImage[checkImageHeight][checkImageWidth][3];
|
||||
static GLdouble zoomFactor = 1.0;
|
||||
static GLint height;
|
||||
|
||||
void makeCheckImage(void)
|
||||
static void makeCheckImage(void)
|
||||
{
|
||||
int i, j, c;
|
||||
|
||||
@@ -72,7 +72,7 @@ void makeCheckImage(void)
|
||||
}
|
||||
}
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel(GL_FLAT);
|
||||
@@ -80,7 +80,7 @@ void init(void)
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glRasterPos2i(0, 0);
|
||||
@@ -89,7 +89,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
height = (GLint) h;
|
||||
@@ -100,7 +100,7 @@ void reshape(int w, int h)
|
||||
glLoadIdentity();
|
||||
}
|
||||
|
||||
void motion(int x, int y)
|
||||
static void motion(int x, int y)
|
||||
{
|
||||
static GLint screeny;
|
||||
|
||||
@@ -113,7 +113,7 @@ void motion(int x, int y)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 'r':
|
||||
|
@@ -47,7 +47,7 @@
|
||||
/* Initialize material property, light source, lighting model,
|
||||
* and depth buffer.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
GLfloat mat_shininess[] = { 50.0 };
|
||||
@@ -65,14 +65,14 @@ void init(void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glutSolidSphere (1.0, 20, 16);
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -88,7 +88,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -46,13 +46,13 @@
|
||||
#define drawOneLine(x1,y1,x2,y2) glBegin(GL_LINES); \
|
||||
glVertex2f ((x1),(y1)); glVertex2f ((x2),(y2)); glEnd();
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -104,7 +104,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -113,7 +113,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -69,7 +69,7 @@ static void drawLine (void)
|
||||
glEnd ();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLuint i;
|
||||
|
||||
@@ -82,7 +82,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -97,7 +97,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -49,7 +49,7 @@
|
||||
/* Initialize z-buffer, projection matrix, light source,
|
||||
* and lighting model. Do not specify a material property here.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -87,7 +87,7 @@ void myinit(void)
|
||||
* glTranslatef() is used to move spheres to their appropriate locations.
|
||||
*/
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat mat_ambient[] = { 0.7, 0.7, 0.7, 1.0 };
|
||||
@@ -260,7 +260,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -54,7 +54,7 @@ GLubyte mipmapImage4[4][4][3];
|
||||
GLubyte mipmapImage2[2][2][3];
|
||||
GLubyte mipmapImage1[1][1][3];
|
||||
|
||||
void makeImages(void)
|
||||
static void makeImages(void)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
@@ -98,7 +98,7 @@ void makeImages(void)
|
||||
mipmapImage1[0][0][2] = 255;
|
||||
}
|
||||
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glDepthFunc(GL_LESS);
|
||||
@@ -128,7 +128,7 @@ void myinit(void)
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glBegin(GL_QUADS);
|
||||
@@ -140,7 +140,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -42,13 +42,13 @@
|
||||
#include <GL/glut.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void draw_triangle(void)
|
||||
static void draw_triangle(void)
|
||||
{
|
||||
glBegin (GL_LINE_LOOP);
|
||||
glVertex2f(0.0, 25.0);
|
||||
@@ -57,7 +57,7 @@ void draw_triangle(void)
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
@@ -86,7 +86,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -101,7 +101,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -58,7 +58,7 @@ static int spin = 0;
|
||||
/* Initialize material property, light source, lighting model,
|
||||
* and depth buffer.
|
||||
*/
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_SMOOTH);
|
||||
@@ -72,7 +72,7 @@ void init(void)
|
||||
* light at a new position in world coordinates. The cube
|
||||
* represents the position of the light.
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat position[] = { 0.0, 0.0, 1.5, 1.0 };
|
||||
|
||||
@@ -96,7 +96,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -107,7 +107,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED2 */
|
||||
void mouse(int button, int state, int x, int y)
|
||||
static void mouse(int button, int state, int x, int y)
|
||||
{
|
||||
switch (button) {
|
||||
case GLUT_LEFT_BUTTON:
|
||||
@@ -122,7 +122,7 @@ void mouse(int button, int state, int x, int y)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -89,7 +89,7 @@ GLUnurbsObj *theNurb;
|
||||
/* Initialize material property, light source, lighting model,
|
||||
* and depth buffer.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat mat_ambient[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
GLfloat mat_diffuse[] = { 1.0, 0.2, 1.0, 1.0 };
|
||||
@@ -122,7 +122,7 @@ void myinit(void)
|
||||
gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -147,7 +147,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -51,7 +51,7 @@
|
||||
#include <stdio.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
@@ -65,7 +65,7 @@ myinit(void)
|
||||
* each rectangle is given the same name. Note that
|
||||
* each rectangle is drawn with a different z value.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
drawRects(GLenum mode)
|
||||
{
|
||||
if (mode == GL_SELECT)
|
||||
@@ -100,7 +100,7 @@ drawRects(GLenum mode)
|
||||
/* processHits() prints out the contents of the
|
||||
* selection array.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
processHits(GLint hits, GLuint buffer[])
|
||||
{
|
||||
GLint i;
|
||||
@@ -131,7 +131,7 @@ processHits(GLint hits, GLuint buffer[])
|
||||
*/
|
||||
#define BUFSIZE 512
|
||||
|
||||
void
|
||||
static void
|
||||
pickRects(int button, int state, int x, int y)
|
||||
{
|
||||
GLuint selectBuf[BUFSIZE];
|
||||
@@ -164,7 +164,7 @@ pickRects(int button, int state, int x, int y)
|
||||
processHits(hits, selectBuf);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -172,7 +172,7 @@ display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -49,7 +49,7 @@
|
||||
int board[3][3]; /* amount of color for each square */
|
||||
|
||||
/* Clear color value for every square on the board */
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
int i, j;
|
||||
for (i = 0; i < 3; i++)
|
||||
@@ -64,7 +64,7 @@ void init(void)
|
||||
* square is determined by its position on the grid, and
|
||||
* the value in the board[][] array.
|
||||
*/
|
||||
void drawSquares(GLenum mode)
|
||||
static void drawSquares(GLenum mode)
|
||||
{
|
||||
GLuint i, j;
|
||||
for (i = 0; i < 3; i++) {
|
||||
@@ -85,7 +85,7 @@ void drawSquares(GLenum mode)
|
||||
/* processHits prints out the contents of the
|
||||
* selection array.
|
||||
*/
|
||||
void processHits (GLint hits, GLuint buffer[])
|
||||
static void processHits (GLint hits, GLuint buffer[])
|
||||
{
|
||||
GLint i;
|
||||
GLuint j, ii = 0, jj = 0, names, *ptr;
|
||||
@@ -117,7 +117,7 @@ void processHits (GLint hits, GLuint buffer[])
|
||||
*/
|
||||
#define BUFSIZE 512
|
||||
|
||||
void pickSquares(int button, int state, int x, int y)
|
||||
static void pickSquares(int button, int state, int x, int y)
|
||||
{
|
||||
GLuint selectBuf[BUFSIZE];
|
||||
GLint hits;
|
||||
@@ -152,14 +152,14 @@ void pickSquares(int button, int state, int x, int y)
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
drawSquares (GL_RENDER);
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -170,7 +170,7 @@ void reshape(int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -47,7 +47,7 @@
|
||||
|
||||
/* Initialize material property, light source, and lighting model.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat mat_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
/* mat_specular and mat_shininess are NOT default values */
|
||||
@@ -75,7 +75,7 @@ void myinit(void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void drawPlane(void)
|
||||
static void drawPlane(void)
|
||||
{
|
||||
glBegin (GL_QUADS);
|
||||
glNormal3f (0.0, 0.0, 1.0);
|
||||
@@ -104,7 +104,7 @@ void drawPlane(void)
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void display (void)
|
||||
static void display (void)
|
||||
{
|
||||
GLfloat infinite_light[] = { 1.0, 1.0, 1.0, 0.0 };
|
||||
GLfloat local_light[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -125,7 +125,7 @@ void display (void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport (0, 0, w, h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
|
@@ -47,13 +47,13 @@
|
||||
|
||||
static int year = 0, day = 0;
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
@@ -68,7 +68,7 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -80,7 +80,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard (unsigned char key, int x, int y)
|
||||
static void keyboard (unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 'd':
|
||||
|
@@ -60,7 +60,7 @@ GLboolean doubleBuffer;
|
||||
/* display() draws two spheres, one with a gray, diffuse material,
|
||||
* the other sphere with a magenta material with a specular highlight.
|
||||
*/
|
||||
void display (void)
|
||||
static void display (void)
|
||||
{
|
||||
GLfloat gray[] = { 0.8, 0.8, 0.8, 1.0 };
|
||||
GLfloat black[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
@@ -108,7 +108,7 @@ void display (void)
|
||||
* create display list with sphere
|
||||
* initialize lighting and depth buffer
|
||||
*/
|
||||
void gfxinit (void)
|
||||
static void gfxinit (void)
|
||||
{
|
||||
GLfloat light_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -134,7 +134,7 @@ void gfxinit (void)
|
||||
}
|
||||
|
||||
/* call when window is resized */
|
||||
void reshape(int width, int height)
|
||||
static void reshape(int width, int height)
|
||||
{
|
||||
glViewport (0, 0, width, height);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -176,7 +176,7 @@ static void Benchmark( float xdiff, float ydiff )
|
||||
|
||||
/* call when mouse button is pressed */
|
||||
/* ARGSUSED2 */
|
||||
void mouse(int button, int state, int x, int y) {
|
||||
static void mouse(int button, int state, int x, int y) {
|
||||
switch (button) {
|
||||
case GLUT_LEFT_BUTTON:
|
||||
switch (state) {
|
||||
@@ -213,7 +213,7 @@ void mouse(int button, int state, int x, int y) {
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard (unsigned char key, int x, int y)
|
||||
static void keyboard (unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 't':
|
||||
@@ -268,20 +268,7 @@ void keyboard (unsigned char key, int x, int y)
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
static void
|
||||
key(unsigned char k, int x, int y)
|
||||
{
|
||||
switch (k) {
|
||||
case 27: /* Escape */
|
||||
exit(0);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
glutPostRedisplay();
|
||||
}
|
||||
|
||||
GLenum Args(int argc, char **argv)
|
||||
static GLenum Args(int argc, char **argv)
|
||||
{
|
||||
GLint i;
|
||||
|
||||
|
@@ -44,7 +44,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLubyte fly[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x03, 0x80, 0x01, 0xC0, 0x06, 0xC0, 0x03, 0x60, 0x04, 0x60, 0x06, 0x20,
|
||||
@@ -89,7 +89,7 @@ void display(void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void myinit (void)
|
||||
static void myinit (void)
|
||||
{
|
||||
/* clear background to black */
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
|
@@ -54,7 +54,7 @@
|
||||
|
||||
GLuint startList;
|
||||
|
||||
void CALLBACK errorCallback(GLenum errorCode)
|
||||
static void CALLBACK errorCallback(GLenum errorCode)
|
||||
{
|
||||
const GLubyte *estring;
|
||||
|
||||
@@ -63,7 +63,7 @@ void CALLBACK errorCallback(GLenum errorCode)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
GLUquadricObj *qobj;
|
||||
GLfloat mat_ambient[] = { 0.5, 0.5, 0.5, 1.0 };
|
||||
@@ -116,9 +116,11 @@ void init(void)
|
||||
glNewList(startList+3, GL_COMPILE);
|
||||
gluPartialDisk(qobj, 0.0, 1.0, 20, 4, 0.0, 225.0);
|
||||
glEndList();
|
||||
|
||||
gluDeleteQuadric(qobj);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glPushMatrix();
|
||||
@@ -148,7 +150,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -164,7 +166,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -47,13 +47,13 @@
|
||||
|
||||
static int shoulder = 0, elbow = 0;
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
glPushMatrix();
|
||||
@@ -77,7 +77,7 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -89,7 +89,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard (unsigned char key, int x, int y)
|
||||
static void keyboard (unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 's':
|
||||
|
@@ -49,7 +49,7 @@
|
||||
|
||||
/* Initialize material property and light source.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat light_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat light_diffuse[] = { 1.0, 0.0, 1.0, 1.0 };
|
||||
@@ -68,7 +68,7 @@ void myinit(void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glPushMatrix ();
|
||||
@@ -95,7 +95,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
/* Initialize material property and light source.
|
||||
*/
|
||||
void myinit (void)
|
||||
static void myinit (void)
|
||||
{
|
||||
GLfloat light_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -67,7 +67,7 @@ void myinit (void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void display (void)
|
||||
static void display (void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -95,7 +95,7 @@ void display (void)
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport (0, 0, w, h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
|
@@ -47,7 +47,7 @@
|
||||
|
||||
/* Initialize light source and lighting.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat light_ambient[] = { 0.0, 0.0, 1.0, 1.0 };
|
||||
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -66,7 +66,7 @@ void myinit(void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -94,7 +94,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -46,7 +46,7 @@
|
||||
|
||||
/* Initialize light source and shading model (GL_FLAT).
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat light_ambient[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
GLfloat light_diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -66,7 +66,7 @@ void myinit(void)
|
||||
glShadeModel (GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -94,7 +94,7 @@ void display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
@@ -57,7 +57,7 @@
|
||||
/* draw a triangle with vertices at (x1, y1), (x2, y2)
|
||||
* and (x3, y3) at z units away from the origin.
|
||||
*/
|
||||
void drawTriangle (GLfloat x1, GLfloat y1, GLfloat x2,
|
||||
static void drawTriangle (GLfloat x1, GLfloat y1, GLfloat x2,
|
||||
GLfloat y2, GLfloat x3, GLfloat y3, GLfloat z)
|
||||
{
|
||||
glBegin (GL_TRIANGLES);
|
||||
@@ -68,8 +68,8 @@ void drawTriangle (GLfloat x1, GLfloat y1, GLfloat x2,
|
||||
}
|
||||
|
||||
/* draw a rectangular box with these outer x, y, and z values */
|
||||
void drawViewVolume (GLfloat x1, GLfloat x2, GLfloat y1,
|
||||
GLfloat y2, GLfloat z1, GLfloat z2)
|
||||
static void drawViewVolume (GLfloat x1, GLfloat x2, GLfloat y1,
|
||||
GLfloat y2, GLfloat z1, GLfloat z2)
|
||||
{
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
glBegin (GL_LINE_LOOP);
|
||||
@@ -101,7 +101,7 @@ void drawViewVolume (GLfloat x1, GLfloat x2, GLfloat y1,
|
||||
/* drawScene draws 4 triangles and a wire frame
|
||||
* which represents the viewing volume.
|
||||
*/
|
||||
void drawScene (void)
|
||||
static void drawScene (void)
|
||||
{
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
glLoadIdentity ();
|
||||
@@ -122,7 +122,7 @@ void drawScene (void)
|
||||
|
||||
/* processHits prints out the contents of the selection array
|
||||
*/
|
||||
void processHits (GLint hits, GLuint buffer[])
|
||||
static void processHits (GLint hits, GLuint buffer[])
|
||||
{
|
||||
GLint i;
|
||||
GLuint j, names, *ptr;
|
||||
@@ -150,7 +150,7 @@ void processHits (GLint hits, GLuint buffer[])
|
||||
*/
|
||||
#define BUFSIZE 512
|
||||
|
||||
void selectObjects(void)
|
||||
static void selectObjects(void)
|
||||
{
|
||||
GLuint selectBuf[BUFSIZE];
|
||||
GLint hits;
|
||||
@@ -181,13 +181,13 @@ void selectObjects(void)
|
||||
processHits (hits, selectBuf);
|
||||
}
|
||||
|
||||
void init (void)
|
||||
static void init (void)
|
||||
{
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glShadeModel(GL_FLAT);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -197,7 +197,7 @@ void display(void)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -43,13 +43,13 @@
|
||||
#include <GL/glut.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void init(void)
|
||||
static void init(void)
|
||||
{
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glShadeModel (GL_SMOOTH);
|
||||
}
|
||||
|
||||
void triangle(void)
|
||||
static void triangle(void)
|
||||
{
|
||||
glBegin (GL_TRIANGLES);
|
||||
glColor3f (1.0, 0.0, 0.0);
|
||||
@@ -61,14 +61,14 @@ void triangle(void)
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
triangle ();
|
||||
glFlush ();
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode (GL_PROJECTION);
|
||||
@@ -81,7 +81,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
@@ -64,7 +64,7 @@
|
||||
#define YELLOWMAT 1
|
||||
#define BLUEMAT 2
|
||||
|
||||
void myinit (void)
|
||||
static void myinit (void)
|
||||
{
|
||||
GLfloat yellow_diffuse[] = { 0.7, 0.7, 0.0, 1.0 };
|
||||
GLfloat yellow_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -101,7 +101,7 @@ void myinit (void)
|
||||
/* Draw a sphere in a diamond-shaped section in the
|
||||
* middle of a window with 2 tori.
|
||||
*/
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
@@ -132,7 +132,7 @@ void display(void)
|
||||
/* Whenever the window is reshaped, redefine the
|
||||
* coordinate system and redraw the stencil area.
|
||||
*/
|
||||
void myReshape(int w, int h)
|
||||
static void myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
||||
|
@@ -87,7 +87,7 @@ CP Sdata[] = {
|
||||
/* drawLetter() interprets the instructions from the array
|
||||
* for that letter and renders the letter with line segments.
|
||||
*/
|
||||
void drawLetter(CP *l)
|
||||
static void drawLetter(CP *l)
|
||||
{
|
||||
glBegin(GL_LINE_STRIP);
|
||||
for (;;) {
|
||||
@@ -111,7 +111,7 @@ void drawLetter(CP *l)
|
||||
}
|
||||
|
||||
/* Create a display list for each of 6 characters */
|
||||
void myinit (void)
|
||||
static void myinit (void)
|
||||
{
|
||||
GLuint base;
|
||||
|
||||
@@ -130,13 +130,13 @@ void myinit (void)
|
||||
char *test1 = "A SPARE SERAPE APPEARS AS";
|
||||
char *test2 = "APES PREPARE RARE PEPPERS";
|
||||
|
||||
void printStrokedString(char *s)
|
||||
static void printStrokedString(char *s)
|
||||
{
|
||||
GLsizei len = (GLsizei) strlen(s);
|
||||
glCallLists(len, GL_BYTE, (GLbyte *)s);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glColor3f(1.0, 1.0, 1.0);
|
||||
|
@@ -53,7 +53,7 @@ GLUnurbsObj *theNurb;
|
||||
* Initializes the control points of the surface to a small hill.
|
||||
* The control points range from -3 to +3 in x, y, and z
|
||||
*/
|
||||
void init_surface(void)
|
||||
static void init_surface(void)
|
||||
{
|
||||
int u, v;
|
||||
for (u = 0; u < 4; u++) {
|
||||
@@ -71,7 +71,7 @@ void init_surface(void)
|
||||
|
||||
/* Initialize material property and depth buffer.
|
||||
*/
|
||||
void myinit(void)
|
||||
static void myinit(void)
|
||||
{
|
||||
GLfloat mat_diffuse[] = { 0.7, 0.7, 0.7, 1.0 };
|
||||
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
|
||||
@@ -100,7 +100,7 @@ void myinit(void)
|
||||
glTranslatef (0.0, 0.0, -5.0);
|
||||
}
|
||||
|
||||
void display(void)
|
||||
static void display(void)
|
||||
{
|
||||
GLfloat knots[8] = {0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0};
|
||||
int i, j;
|
||||
@@ -140,7 +140,7 @@ void display(void)
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void reshape(int w, int h)
|
||||
static void reshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -150,7 +150,7 @@ void reshape(int w, int h)
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
menu(int value)
|
||||
{
|
||||
switch (value) {
|
||||
@@ -171,7 +171,7 @@ menu(int value)
|
||||
int down = 0, lastx;
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void
|
||||
static void
|
||||
motion(int x, int y)
|
||||
{
|
||||
if (down) {
|
||||
@@ -182,7 +182,7 @@ motion(int x, int y)
|
||||
}
|
||||
|
||||
/* ARGSUSED3 */
|
||||
void
|
||||
static void
|
||||
mouse(int button, int state, int x, int y)
|
||||
{
|
||||
if (button == GLUT_LEFT_BUTTON) {
|
||||
|
@@ -47,7 +47,7 @@
|
||||
|
||||
/* Initialize light source and lighting model.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
GLfloat light_ambient[] =
|
||||
@@ -78,7 +78,7 @@ myinit(void)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
GLfloat low_ambient[] =
|
||||
@@ -114,7 +114,7 @@ display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -49,7 +49,7 @@
|
||||
* Initialize depth buffer, projection matrix, light source, and lighting
|
||||
* model. Do not specify a material property here.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
myinit(void)
|
||||
{
|
||||
GLfloat ambient[] =
|
||||
@@ -83,7 +83,7 @@ myinit(void)
|
||||
* Move object into position. Use 3rd through 12th parameters to specify the
|
||||
* material property. Draw a teapot.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
renderTeapot(GLfloat x, GLfloat y,
|
||||
GLfloat ambr, GLfloat ambg, GLfloat ambb,
|
||||
GLfloat difr, GLfloat difg, GLfloat difb,
|
||||
@@ -117,7 +117,7 @@ renderTeapot(GLfloat x, GLfloat y,
|
||||
* 3rd column: black, cyan, green, red, white, yellow plastic
|
||||
* 4th column: black, cyan, green, red, white, yellow rubber
|
||||
*/
|
||||
void
|
||||
static void
|
||||
display(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
@@ -173,7 +173,7 @@ display(void)
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
myReshape(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
|
@@ -61,7 +61,7 @@
|
||||
|
||||
GLuint startList;
|
||||
|
||||
void display (void) {
|
||||
static void display (void) {
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glColor3f(1.0, 1.0, 1.0);
|
||||
glCallList(startList);
|
||||
@@ -69,12 +69,12 @@ void display (void) {
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void CALLBACK beginCallback(GLenum which)
|
||||
static void CALLBACK beginCallback(GLenum which)
|
||||
{
|
||||
glBegin(which);
|
||||
}
|
||||
|
||||
void CALLBACK errorCallback(GLenum errorCode)
|
||||
static void CALLBACK errorCallback(GLenum errorCode)
|
||||
{
|
||||
const GLubyte *estring;
|
||||
|
||||
@@ -83,12 +83,12 @@ void CALLBACK errorCallback(GLenum errorCode)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void CALLBACK endCallback(void)
|
||||
static void CALLBACK endCallback(void)
|
||||
{
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void CALLBACK vertexCallback(GLvoid *vertex)
|
||||
static void CALLBACK vertexCallback(GLvoid *vertex)
|
||||
{
|
||||
const GLdouble *pointer;
|
||||
|
||||
@@ -102,7 +102,7 @@ void CALLBACK vertexCallback(GLvoid *vertex)
|
||||
* but weight[4] may be used to average color, normal, or texture
|
||||
* coordinate data. In this program, color is weighted.
|
||||
*/
|
||||
void CALLBACK combineCallback(GLdouble coords[3],
|
||||
static void CALLBACK combineCallback(GLdouble coords[3],
|
||||
GLdouble *vertex_data[4],
|
||||
GLfloat weight[4], GLdouble **dataOut )
|
||||
{
|
||||
@@ -122,7 +122,7 @@ void CALLBACK combineCallback(GLdouble coords[3],
|
||||
*dataOut = vertex;
|
||||
}
|
||||
|
||||
void init (void)
|
||||
static void init (void)
|
||||
{
|
||||
GLUtesselator *tobj;
|
||||
GLdouble rect[4][3] = {{50.0, 50.0, 0.0},
|
||||
@@ -199,7 +199,7 @@ void init (void)
|
||||
gluDeleteTess(tobj);
|
||||
}
|
||||
|
||||
void reshape (int w, int h)
|
||||
static void reshape (int w, int h)
|
||||
{
|
||||
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
@@ -208,7 +208,7 @@ void reshape (int w, int h)
|
||||
}
|
||||
|
||||
/* ARGSUSED1 */
|
||||
void keyboard(unsigned char key, int x, int y)
|
||||
static void keyboard(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user