mirror of
https://github.com/nigels-com/glew.git
synced 2025-04-05 08:22:04 +00:00
Compare commits
406 Commits
glew-1.11.
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
3da315c23a | ||
|
1236a81d70 | ||
|
b323ebf9ad | ||
|
c050e33aa0 | ||
|
e1a80a9f12 | ||
|
4c6cb2f56d | ||
|
7fb9693bd8 | ||
|
c1985bb954 | ||
|
f064fbfcb6 | ||
|
f8023b362d | ||
|
c43940a927 | ||
|
c2f7ab7f09 | ||
|
a4d8b2a2a3 | ||
|
a98195b83d | ||
|
281c2936f3 | ||
|
ef7d12ecb7 | ||
|
6a53a2a200 | ||
|
52ce1cc575 | ||
|
5a2307fae3 | ||
|
c8a2ddfbe1 | ||
|
37e6144802 | ||
|
2c4c183c34 | ||
|
c6673b15bf | ||
|
55c8b94608 | ||
|
35d928bc77 | ||
|
5dbae5a837 | ||
|
5239c3ae21 | ||
|
5f57b09c04 | ||
|
966e53fa15 | ||
|
3f922b3dc6 | ||
|
4a757ac7c0 | ||
|
062067f2ba | ||
|
8e2e31e69b | ||
|
037635a192 | ||
|
9e6361b357 | ||
|
247baa9e20 | ||
|
d7693eea09 | ||
|
715afa0ff5 | ||
|
ea2076658a | ||
|
767e031645 | ||
|
679a3b17fa | ||
|
80e061f85d | ||
|
2b50f4acd2 | ||
|
2b16160853 | ||
|
e34bb212f6 | ||
|
fb0f210598 | ||
|
749aec8b9b | ||
|
95329dc4a6 | ||
|
8c88a0858f | ||
|
d68cb03149 | ||
|
5b5685e39a | ||
|
0fa5d11024 | ||
|
107ab7f6e9 | ||
|
4e5fe20519 | ||
|
3cdab58d4e | ||
|
75e3154422 | ||
|
bfc724c6cc | ||
|
0b97f2568d | ||
|
7764128044 | ||
|
9fb23c3e61 | ||
|
555aa3ffc0 | ||
|
5ea705737a | ||
|
882aef9761 | ||
|
9a2c9a14b7 | ||
|
83a174e575 | ||
|
7c706576b8 | ||
|
82e8441253 | ||
|
18676f16d9 | ||
|
262514e123 | ||
|
d47097985a | ||
|
17761407da | ||
|
2ed67686ba | ||
|
4bbe8aa2ab | ||
|
68135131a9 | ||
|
b374d9ad93 | ||
|
0831041e9f | ||
|
3f91cd177a | ||
|
5509e2e13e | ||
|
ea30c83d92 | ||
|
9170611428 | ||
|
47588720ee | ||
|
154f83e024 | ||
|
61d167422c | ||
|
3565eacf87 | ||
|
1f833c032f | ||
|
1b17b0b210 | ||
|
f5feecd46e | ||
|
10f2d76c62 | ||
|
565caae5ad | ||
|
521fa58c63 | ||
|
3e6dfc4414 | ||
|
dcff76b0d1 | ||
|
62b9213b44 | ||
|
278a314d99 | ||
|
6f31e134f6 | ||
|
e304e73230 | ||
|
103b3d156e | ||
|
44049b7de2 | ||
|
899d47a2f3 | ||
|
fbcb13d274 | ||
|
a8df738667 | ||
|
79ca96a53e | ||
|
ce7bb5a8f0 | ||
|
8368ad1c3e | ||
|
0cb090a1a9 | ||
|
fb66d74d14 | ||
|
70fb6195ae | ||
|
180ac698f7 | ||
|
c49798062d | ||
|
b48ded757e | ||
|
7f65a36866 | ||
|
c63cdf976d | ||
|
8b2d34956c | ||
|
40fbbe826c | ||
|
3e033b9db5 | ||
|
6d5dabf870 | ||
|
14e212406c | ||
|
bc3c5d4992 | ||
|
4234f46208 | ||
|
03afadd4f2 | ||
|
d547ee1556 | ||
|
9964f51119 | ||
|
a8ebd2819e | ||
|
d73ad7eeb2 | ||
|
08ca29e604 | ||
|
66144ae686 | ||
|
be4e0eb102 | ||
|
c849b3f00b | ||
|
e0e17b923e | ||
|
23a7226493 | ||
|
b7c40325c7 | ||
|
559cd7fad8 | ||
|
e8149ff567 | ||
|
e544f8c12d | ||
|
ef0e1c4d3a | ||
|
1cdf352217 | ||
|
f5f69b25eb | ||
|
2af38d87be | ||
|
871bb6601b | ||
|
0b396919e6 | ||
|
ee3026486f | ||
|
1579119716 | ||
|
a30e00892a | ||
|
07b759b784 | ||
|
b612863554 | ||
|
15ab6eebec | ||
|
3a8eff77da | ||
|
1fe2ca4f37 | ||
|
4b40314cc0 | ||
|
0ce7b8ee26 | ||
|
1b1371ddcb | ||
|
f8c6f9bffd | ||
|
b194494aef | ||
|
58b23c29a7 | ||
|
fc5659148d | ||
|
fd281347f4 | ||
|
2a5a242624 | ||
|
b7fbaec9b3 | ||
|
cf469ab200 | ||
|
25bc79f2b9 | ||
|
be55fd6b6b | ||
|
0b5461935f | ||
|
f678171b69 | ||
|
8ae15ddd51 | ||
|
298528cd87 | ||
|
e7bf0f70b3 | ||
|
8ef3df14f3 | ||
|
ad15372255 | ||
|
60139a6cfb | ||
|
a82b984534 | ||
|
925722f910 | ||
|
2906c1c10f | ||
|
b34af4d1e3 | ||
|
a9e50908a1 | ||
|
d77479401d | ||
|
db019a23a9 | ||
|
75440cab22 | ||
|
7f510379f6 | ||
|
6f96777a4a | ||
|
6ee72f2fce | ||
|
239fde0a43 | ||
|
ac4a740b38 | ||
|
cedd84f839 | ||
|
5766d27018 | ||
|
f426fcee41 | ||
|
51bd94fcca | ||
|
4b9ffe44ee | ||
|
62ac9ddfa4 | ||
|
db04f1d1ef | ||
|
71153f8b47 | ||
|
c690766fc2 | ||
|
023999f68f | ||
|
6a38eb3fc5 | ||
|
a42be263ac | ||
|
b79702c6b7 | ||
|
2c6ad763af | ||
|
7f92f9adf7 | ||
|
013667e3e1 | ||
|
fe95392c3e | ||
|
3d9e4808d3 | ||
|
5b70131340 | ||
|
cdc3aeacde | ||
|
67e980b532 | ||
|
2ca0184814 | ||
|
4a0d48fc7c | ||
|
7d72257b0f | ||
|
55b8951c96 | ||
|
7dfa567e1d | ||
|
47fb0e3d16 | ||
|
26d8275c61 | ||
|
9c6989a59e | ||
|
2e5443a5a2 | ||
|
243531f398 | ||
|
b3ff4606be | ||
|
5505e52896 | ||
|
65f1b67ba3 | ||
|
17cd4a79ee | ||
|
3c83effd40 | ||
|
54ce3fb039 | ||
|
9beea40e97 | ||
|
180db268c0 | ||
|
3ef1c134c4 | ||
|
8047ef41fa | ||
|
1ab282a9d3 | ||
|
bbb23c534a | ||
|
53df89fe32 | ||
|
f3831806e7 | ||
|
be51b869a1 | ||
|
8ca90d2cf1 | ||
|
24bcf04c19 | ||
|
6bd1a26375 | ||
|
957109be4e | ||
|
f1a40e2fea | ||
|
8042db9fa3 | ||
|
30df027756 | ||
|
c4bade8726 | ||
|
f4d58a657a | ||
|
a9f5ec3e21 | ||
|
6c68ad327f | ||
|
2563b1c36a | ||
|
e6a74a7487 | ||
|
9548431bd0 | ||
|
02fc17f511 | ||
|
32b2ea5266 | ||
|
969faeafdf | ||
|
31cee87b1c | ||
|
281e38de7d | ||
|
a7ea1dc3a3 | ||
|
a288050b57 | ||
|
23438663d6 | ||
|
4d9010864e | ||
|
15881f0421 | ||
|
a755351991 | ||
|
84b733d9bb | ||
|
20908a2182 | ||
|
97bba61a10 | ||
|
c3ea366c9d | ||
|
43a9299230 | ||
|
5a6171078b | ||
|
f4abb657b3 | ||
|
4ee89ccb39 | ||
|
fe41bc3bdd | ||
|
69b73ea446 | ||
|
c45763d790 | ||
|
f65df11fa7 | ||
|
107c23d970 | ||
|
5efdbaefc8 | ||
|
b3440c0979 | ||
|
e82b76f719 | ||
|
0479706419 | ||
|
6b8a2ab326 | ||
|
954b1d5947 | ||
|
9ef6bfb7a6 | ||
|
9297c604ca | ||
|
5811916f32 | ||
|
860af9f379 | ||
|
9617f35263 | ||
|
18ef5d021b | ||
|
b5e16ca938 | ||
|
a2a4d937bf | ||
|
d96c978748 | ||
|
b1c272b93a | ||
|
dd6e034cba | ||
|
9e66fc86a3 | ||
|
be2688de70 | ||
|
8b0b5db90c | ||
|
a4aa9b2717 | ||
|
01b33567e5 | ||
|
6cea54733a | ||
|
0fcb9a3061 | ||
|
c363cdb7c0 | ||
|
928d629845 | ||
|
41a40b01e9 | ||
|
d33d3b5b0f | ||
|
d89a349a31 | ||
|
e647f55311 | ||
|
c996c06b27 | ||
|
731b1e6602 | ||
|
1da7dd6e0a | ||
|
ea763af989 | ||
|
99421ea9fe | ||
|
5ce6248594 | ||
|
66c5229ec2 | ||
|
c8c0c1e480 | ||
|
f9466c40f8 | ||
|
06891ebb35 | ||
|
c5c60068f7 | ||
|
fd49b2baff | ||
|
11e24d4a9b | ||
|
4718d42dde | ||
|
bf2cd13450 | ||
|
ba913841ae | ||
|
c9ec523858 | ||
|
cbd0dce3c5 | ||
|
f0067bb115 | ||
|
9e3e40d974 | ||
|
470652935c | ||
|
d4a0a8401c | ||
|
08806061a4 | ||
|
54b537afda | ||
|
e1815b2729 | ||
|
0cc7dd8cc5 | ||
|
754e051049 | ||
|
d80fd5514f | ||
|
5ae027a8cd | ||
|
4b75493364 | ||
|
fd152a143b | ||
|
816c19c321 | ||
|
ba410e12e2 | ||
|
d367215cde | ||
|
4c009908e2 | ||
|
4c40805809 | ||
|
67b12efec7 | ||
|
0cbd8f648f | ||
|
d2e6823451 | ||
|
a4a87f9466 | ||
|
d932bc3eca | ||
|
fda28dbfb0 | ||
|
fc84055808 | ||
|
0c19148d6a | ||
|
0e88d39f4a | ||
|
49eafff105 | ||
|
044b9ff14c | ||
|
9580ab4226 | ||
|
e943e3c91c | ||
|
9b5d29be72 | ||
|
29a0ac0f47 | ||
|
e618ce2efb | ||
|
211bf29181 | ||
|
0720521034 | ||
|
60b0fc5c05 | ||
|
2d0899283f | ||
|
7c046e2307 | ||
|
06430b007b | ||
|
1fed499560 | ||
|
aee8b6ff69 | ||
|
69cbc3532f | ||
|
573eeabd8e | ||
|
cc6695b60c | ||
|
0c9ab41431 | ||
|
b565769b01 | ||
|
516c9adf41 | ||
|
9a8e815da8 | ||
|
4fcd4688a5 | ||
|
40513e0bb4 | ||
|
ed4fe8ebc4 | ||
|
a5f0612349 | ||
|
6722500d95 | ||
|
b1822129a0 | ||
|
e6cd59d9b5 | ||
|
40fc2a9823 | ||
|
9fedd9e053 | ||
|
138a0b42f4 | ||
|
b52fa4654d | ||
|
c3e6ce6b61 | ||
|
e37f6728fe | ||
|
12f15cf2a6 | ||
|
e6a117de9b | ||
|
5eaf283c70 | ||
|
cbe15308bf | ||
|
f1eae16bb8 | ||
|
404df2ee70 | ||
|
daf318d02f | ||
|
8b138bcd46 | ||
|
765b219893 | ||
|
06db711223 | ||
|
d32f4278e2 | ||
|
ff92992cc5 | ||
|
e400e097ea | ||
|
62f3c733f1 | ||
|
67155de5c2 | ||
|
a790eb8129 | ||
|
1682c7ae3e | ||
|
933e322dd5 | ||
|
bffebf81cc | ||
|
3f48639825 | ||
|
d99211a9d3 | ||
|
f796232672 | ||
|
b9be4b6c99 | ||
|
d04fd20cec | ||
|
6b5f533a7a | ||
|
f2faf55123 | ||
|
0ab85a792d | ||
|
26be54cb1a | ||
|
1292204035 | ||
|
0ab71ffb6f |
6
.gitattributes
vendored
Normal file
6
.gitattributes
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
* text eol=lf
|
||||
*.png binary
|
||||
*.pdf binary
|
||||
build/*/* text eol=crlf
|
||||
CMakeLists.txt text eol=lf
|
||||
build/cmake/* text eol=lf
|
12
.gitignore
vendored
12
.gitignore
vendored
@ -2,12 +2,24 @@
|
||||
/src/*.c
|
||||
/include/GL/*.h
|
||||
/build/vc6/*.rc
|
||||
/build/*.rc
|
||||
/build/*/*.sdf
|
||||
/build/*/*.suo
|
||||
/build/*/*.db
|
||||
/build/*/*.vcxproj.user
|
||||
/build/*/.vs/
|
||||
/build/*/tmp/
|
||||
/build/cmake/CMakeFiles/
|
||||
/build/cmake/CMakeCache.txt
|
||||
/build/cmake/cmake_install.cmake
|
||||
/build/cmake/Makefile
|
||||
/auto/extensions
|
||||
/auto/registry
|
||||
/bin
|
||||
/lib
|
||||
/tmp
|
||||
/out
|
||||
.DS_Store*
|
||||
auto/EGL-Registry
|
||||
auto/OpenGL-Registry
|
||||
auto/glfixes
|
||||
|
12
.lgtm.yml
Normal file
12
.lgtm.yml
Normal file
@ -0,0 +1,12 @@
|
||||
extraction:
|
||||
cpp:
|
||||
prepare:
|
||||
packages:
|
||||
- "build-essential"
|
||||
- "libxmu-dev"
|
||||
- "libxi-dev"
|
||||
- "libgl-dev"
|
||||
index:
|
||||
build_command:
|
||||
- "cd auto; make all -j8; cd .."
|
||||
- "make all -j8"
|
27
.travis.yml
Normal file
27
.travis.yml
Normal file
@ -0,0 +1,27 @@
|
||||
language: cpp
|
||||
dist: trusty
|
||||
install:
|
||||
script:
|
||||
- make -C auto clobber
|
||||
- make extensions
|
||||
- make dist-src
|
||||
- make clean && SYSTEM=linux make
|
||||
- make clean && SYSTEM=linux-osmesa make
|
||||
- make clean && SYSTEM=linux-egl make
|
||||
- make clean && SYSTEM=linux-clang make
|
||||
- make clean && SYSTEM=linux-clang-egl make
|
||||
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' . && make && popd
|
||||
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_OSMESA=ON . && make && popd
|
||||
- pushd build/cmake && git clean -xdf . && cmake -G 'Unix Makefiles' -DGLEW_EGL=ON -DGLEW_X11=OFF . && make && popd
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- git
|
||||
- cmake
|
||||
- dos2unix
|
||||
- libosmesa6-dev
|
||||
- libegl1-mesa-dev
|
||||
artifacts:
|
||||
paths:
|
||||
- $(ls *.zip *.tgz | tr "\n" ":")
|
||||
- $(find doc -type f | tr "\n" ":")
|
246
Makefile
246
Makefile
@ -31,7 +31,7 @@
|
||||
include config/version
|
||||
|
||||
SHELL = /bin/sh
|
||||
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e 's/[0-9\.]//g;')
|
||||
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e 's/\.//g' -e 's/[0-9]\{1,\}.*//')
|
||||
SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1)
|
||||
|
||||
ifeq ($(SYSTEM.SUPPORTED), 1)
|
||||
@ -40,50 +40,56 @@ else
|
||||
$(error "Platform '$(SYSTEM)' not supported")
|
||||
endif
|
||||
|
||||
GLEW_PREFIX ?= /usr
|
||||
GLEW_DEST ?= /usr
|
||||
GLEW_PREFIX ?= /usr/local
|
||||
GLEW_DEST ?= /usr/local
|
||||
BINDIR ?= $(GLEW_DEST)/bin
|
||||
LIBDIR ?= $(GLEW_DEST)/lib
|
||||
INCDIR ?= $(GLEW_DEST)/include/GL
|
||||
PKGDIR ?= $(GLEW_DEST)/lib/pkgconfig
|
||||
|
||||
ifneq ($(GLEW_NO_GLU), -DGLEW_NO_GLU)
|
||||
LIBGLU = glu
|
||||
endif
|
||||
|
||||
DIST_NAME ?= glew-$(GLEW_VERSION)
|
||||
DIST_NAME ?= glew-$(GLEW_VERSION)
|
||||
DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME).zip
|
||||
DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz
|
||||
DIST_WIN32 ?= $(shell pwd)/$(DIST_NAME)-win32.zip
|
||||
|
||||
DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME)
|
||||
|
||||
# To disable stripping of binaries either:
|
||||
# To disable stripping of linked binaries either:
|
||||
# - use STRIP= on gmake command-line
|
||||
# - edit this makefile to set STRIP to the empty string
|
||||
#
|
||||
# To disable symlinks:
|
||||
# - use LN= on gmake command-line
|
||||
|
||||
AR ?= ar
|
||||
INSTALL ?= install
|
||||
STRIP ?= strip
|
||||
RM ?= rm -f
|
||||
LN ?= ln -sf
|
||||
AR ?= ar
|
||||
ARFLAGS ?= cr
|
||||
INSTALL ?= install
|
||||
STRIP ?= strip
|
||||
RM ?= rm -f
|
||||
LN ?= ln -sf
|
||||
UNIX2DOS ?= unix2dos -q
|
||||
DOS2UNIX ?= dos2unix -q
|
||||
|
||||
ifneq (,$(filter debug,$(MAKECMDGOALS)))
|
||||
OPT = -g
|
||||
STRIP :=
|
||||
else
|
||||
OPT = $(POPT)
|
||||
endif
|
||||
INCLUDE = -Iinclude
|
||||
CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
|
||||
|
||||
all debug: glew.lib glew.lib.mx glew.bin
|
||||
all debug: glew.lib glew.bin
|
||||
|
||||
# GLEW shared and static libraries
|
||||
|
||||
LIB.LDFLAGS := $(LDFLAGS.EXTRA) $(LDFLAGS.GL)
|
||||
LIB.LIBS := $(GL_LDFLAGS)
|
||||
LIB.SHARED.DIR ?= lib
|
||||
|
||||
LIB.SRCS := src/glew.c
|
||||
LIB.SRCS.NAMES := $(notdir $(LIB.SRCS))
|
||||
@ -93,27 +99,31 @@ LIB.OBJS := $(LIB.OBJS:.c=.o)
|
||||
LIB.SOBJS := $(addprefix tmp/$(SYSTEM)/default/shared/,$(LIB.SRCS.NAMES))
|
||||
LIB.SOBJS := $(LIB.SOBJS:.c=.o)
|
||||
|
||||
LIB.OBJS.MX := $(addprefix tmp/$(SYSTEM)/mx/static/,$(LIB.SRCS.NAMES))
|
||||
LIB.OBJS.MX := $(LIB.OBJS.MX:.c=.o)
|
||||
LIB.SOBJS.MX := $(addprefix tmp/$(SYSTEM)/mx/shared/,$(LIB.SRCS.NAMES))
|
||||
LIB.SOBJS.MX := $(LIB.SOBJS.MX:.c=.o)
|
||||
glew.lib: glew.lib.shared glew.lib.static
|
||||
|
||||
glew.lib: lib lib/$(LIB.SHARED) lib/$(LIB.STATIC) glew.pc
|
||||
glew.lib.shared: lib $(LIB.SHARED.DIR) $(LIB.SHARED.DIR)/$(LIB.SHARED) glew.pc
|
||||
glew.lib.static: lib lib/$(LIB.STATIC) glew.pc
|
||||
|
||||
.PHONY: glew.lib glew.lib.shared glew.lib.static
|
||||
|
||||
lib:
|
||||
mkdir lib
|
||||
|
||||
lib/$(LIB.STATIC): $(LIB.OBJS)
|
||||
$(AR) cr $@ $^
|
||||
ifneq ($(AR),)
|
||||
$(AR) $(ARFLAGS) $@ $^
|
||||
else ifneq ($(LIBTOOL),)
|
||||
$(LIBTOOL) $@ $^
|
||||
endif
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) -x $@
|
||||
endif
|
||||
|
||||
lib/$(LIB.SHARED): $(LIB.SOBJS)
|
||||
$(LIB.SHARED.DIR)/$(LIB.SHARED): $(LIB.SOBJS)
|
||||
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
||||
ifneq ($(LN),)
|
||||
$(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
|
||||
$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
||||
$(LN) $(LIB.SHARED) $(LIB.SHARED.DIR)/$(LIB.SONAME)
|
||||
$(LN) $(LIB.SHARED) $(LIB.SHARED.DIR)/$(LIB.DEVLNK)
|
||||
endif
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) -x $@
|
||||
@ -125,7 +135,7 @@ tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wgl
|
||||
|
||||
tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
|
||||
# Force re-write of glew.pc, GLEW_DEST can vary
|
||||
|
||||
@ -140,47 +150,7 @@ glew.pc: glew.pc.in
|
||||
-e "s|@version@|$(GLEW_VERSION)|g" \
|
||||
-e "s|@cflags@||g" \
|
||||
-e "s|@libname@|$(NAME)|g" \
|
||||
-e "s|@requireslib@|$(LIBGLU)|g" \
|
||||
< $< > $@
|
||||
|
||||
# GLEW MX static and shared libraries
|
||||
|
||||
glew.lib.mx: lib lib/$(LIB.SHARED.MX) lib/$(LIB.STATIC.MX) glewmx.pc
|
||||
|
||||
lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
|
||||
$(AR) cr $@ $^
|
||||
|
||||
lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
|
||||
$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
|
||||
ifneq ($(LN),)
|
||||
$(LN) $(LIB.SHARED.MX) lib/$(LIB.SONAME.MX)
|
||||
$(LN) $(LIB.SHARED.MX) lib/$(LIB.DEVLNK.MX)
|
||||
endif
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) -x $@
|
||||
endif
|
||||
|
||||
tmp/$(SYSTEM)/mx/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_MX -DGLEW_STATIC $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
|
||||
tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
|
||||
|
||||
# Force re-write of glewmx.pc, GLEW_DEST can vary
|
||||
|
||||
.PHONY: glewmx.pc
|
||||
|
||||
glewmx.pc: glew.pc.in
|
||||
sed \
|
||||
-e "s|@prefix@|$(GLEW_PREFIX)|g" \
|
||||
-e "s|@libdir@|$(LIBDIR)|g" \
|
||||
-e "s|@exec_prefix@|$(BINDIR)|g" \
|
||||
-e "s|@includedir@|$(INCDIR)|g" \
|
||||
-e "s|@version@|$(GLEW_VERSION)|g" \
|
||||
-e "s|@cflags@|-DGLEW_MX|g" \
|
||||
-e "s|@libname@|$(NAME)mx|g" \
|
||||
-e "s|@libgl@|$(LDFLAGS.GL)|g" \
|
||||
-e "s|@requireslib@|$(LIBGLU)|g" \
|
||||
< $< > $@
|
||||
|
||||
@ -201,21 +171,20 @@ VISUALINFO.BIN.OBJ := $(VISUALINFO.BIN.OBJ:.c=.o)
|
||||
# Don't build glewinfo or visualinfo for NaCL, yet.
|
||||
|
||||
ifneq ($(filter nacl%,$(SYSTEM)),)
|
||||
glew.bin: glew.lib bin
|
||||
glew.bin: glew.lib
|
||||
else
|
||||
glew.bin: glew.lib bin bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN)
|
||||
glew.bin: glew.lib bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN)
|
||||
endif
|
||||
|
||||
bin:
|
||||
mkdir bin
|
||||
|
||||
bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJ) lib/$(LIB.SHARED)
|
||||
bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJ) $(LIB.SHARED.DIR)/$(LIB.SHARED)
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.OBJ) $(BIN.LIBS)
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) -x $@
|
||||
endif
|
||||
|
||||
bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJ) lib/$(LIB.SHARED)
|
||||
bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJ) $(LIB.SHARED.DIR)/$(LIB.SHARED)
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.OBJ) $(BIN.LIBS)
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) -x $@
|
||||
@ -231,20 +200,18 @@ $(VISUALINFO.BIN.OBJ): $(VISUALINFO.BIN.SRC) include/GL/glew.h include/GL/wglew.
|
||||
|
||||
# Install targets
|
||||
|
||||
install.all: install install.mx install.bin
|
||||
install.all: install install.bin
|
||||
|
||||
install: install.include install.lib install.pkgconfig
|
||||
|
||||
install.mx: install.include install.lib.mx install.pkgconfig.mx
|
||||
|
||||
install.lib: glew.lib
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)"
|
||||
# runtime
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(BINDIR)"
|
||||
$(INSTALL) -m 0755 lib/$(LIB.SHARED) "$(DESTDIR)$(BINDIR)/"
|
||||
$(INSTALL) -m 0755 $(LIB.SHARED.DIR)/$(LIB.SHARED) "$(DESTDIR)$(BINDIR)/"
|
||||
else
|
||||
$(INSTALL) -m 0644 lib/$(LIB.SHARED) "$(DESTDIR)$(LIBDIR)/"
|
||||
$(INSTALL) -m 0644 $(LIB.SHARED.DIR)/$(LIB.SHARED) "$(DESTDIR)$(LIBDIR)/"
|
||||
endif
|
||||
ifneq ($(LN),)
|
||||
$(LN) $(LIB.SHARED) "$(DESTDIR)$(LIBDIR)/$(LIB.SONAME)"
|
||||
@ -259,66 +226,41 @@ ifneq ($(LN),)
|
||||
endif
|
||||
$(INSTALL) -m 0644 lib/$(LIB.STATIC) "$(DESTDIR)$(LIBDIR)/"
|
||||
|
||||
install.lib.mx: glew.lib.mx
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)"
|
||||
# runtime
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(BINDIR)"
|
||||
$(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) "$(DESTDIR)$(BINDIR)/"
|
||||
else
|
||||
$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) "$(DESTDIR)$(LIBDIR)/"
|
||||
endif
|
||||
ifneq ($(LN),)
|
||||
$(LN) $(LIB.SHARED.MX) "$(DESTDIR)$(LIBDIR)/$(LIB.SONAME.MX)"
|
||||
endif
|
||||
# development files
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK.MX) "$(DESTDIR)$(LIBDIR)/"
|
||||
endif
|
||||
ifneq ($(LN),)
|
||||
$(LN) $(LIB.SHARED.MX) "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK.MX)"
|
||||
endif
|
||||
$(INSTALL) -m 0644 lib/$(LIB.STATIC.MX) "$(DESTDIR)$(LIBDIR)/"
|
||||
|
||||
install.bin: glew.bin
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(BINDIR)"
|
||||
$(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) "$(DESTDIR)$(BINDIR)/"
|
||||
$(INSTALL) -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) "$(DESTDIR)$(BINDIR)/"
|
||||
|
||||
install.include:
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(INCDIR)"
|
||||
$(INSTALL) -m 0644 include/GL/wglew.h "$(DESTDIR)$(INCDIR)/"
|
||||
$(INSTALL) -m 0644 include/GL/glew.h "$(DESTDIR)$(INCDIR)/"
|
||||
$(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
|
||||
$(INSTALL) -m 0644 include/GL/eglew.h "$(DESTDIR)$(INCDIR)/"
|
||||
|
||||
install.pkgconfig: glew.pc
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)"
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)/pkgconfig"
|
||||
$(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(LIBDIR)/pkgconfig/"
|
||||
|
||||
install.pkgconfig.mx: glewmx.pc
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)"
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(LIBDIR)/pkgconfig"
|
||||
$(INSTALL) -m 0644 glewmx.pc "$(DESTDIR)$(LIBDIR)/pkgconfig/"
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)"
|
||||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)"
|
||||
$(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(PKGDIR)/"
|
||||
|
||||
uninstall:
|
||||
$(RM) "$(DESTDIR)$(INCDIR)/wglew.h"
|
||||
$(RM) "$(DESTDIR)$(INCDIR)/glew.h"
|
||||
$(RM) "$(DESTDIR)$(INCDIR)/glxew.h"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK)" "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK.MX)"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK)"
|
||||
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
|
||||
$(RM) "$(DESTDIR)$(BINDIR)/$(LIB.SHARED)" "$(DESTDIR)$(BINDIR)/$(LIB.SHARED.MX)"
|
||||
$(RM) "$(DESTDIR)$(BINDIR)/$(LIB.SHARED)"
|
||||
else
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.SONAME)" "$(DESTDIR)$(LIBDIR)/$(LIB.SONAME.MX)"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.SHARED)" "$(DESTDIR)$(LIBDIR)/$(LIB.SHARED.MX)"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.SONAME)"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.SHARED)"
|
||||
endif
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.STATIC)" "$(DESTDIR)$(LIBDIR)/$(LIB.STATIC.MX)"
|
||||
$(RM) "$(DESTDIR)$(LIBDIR)/$(LIB.STATIC)"
|
||||
$(RM) "$(DESTDIR)$(BINDIR)/$(GLEWINFO.BIN)" "$(DESTDIR)$(BINDIR)/$(VISUALINFO.BIN)"
|
||||
|
||||
clean:
|
||||
$(RM) -r tmp/
|
||||
$(RM) -r lib/
|
||||
$(RM) -r bin/
|
||||
$(RM) glew.pc glewmx.pc
|
||||
$(RM) glew.pc
|
||||
|
||||
distclean: clean
|
||||
find . -name \*~ | xargs $(RM)
|
||||
@ -337,12 +279,12 @@ dist-win32:
|
||||
$(RM) -f $(DIST_DIR)/bin/*/*/*.pdb $(DIST_DIR)/bin/*/*/*.exp
|
||||
$(RM) -f $(DIST_DIR)/bin/*/*/glewinfo-*.exe $(DIST_DIR)/bin/*/*/visualinfo-*.exe
|
||||
$(RM) -f $(DIST_DIR)/lib/*/*/*.pdb $(DIST_DIR)/lib/*/*/*.exp
|
||||
unix2dos $(DIST_DIR)/include/GL/*.h
|
||||
unix2dos $(DIST_DIR)/doc/*.txt
|
||||
unix2dos $(DIST_DIR)/doc/*.html
|
||||
unix2dos $(DIST_DIR)/*.txt
|
||||
$(UNIX2DOS) $(DIST_DIR)/include/GL/*.h
|
||||
$(UNIX2DOS) $(DIST_DIR)/doc/*.txt
|
||||
$(UNIX2DOS) $(DIST_DIR)/doc/*.html
|
||||
$(UNIX2DOS) $(DIST_DIR)/*.txt
|
||||
rm -f $(DIST_WIN32)
|
||||
cd $(DIST_DIR)/.. && zip -rv9 $(DIST_WIN32) $(DIST_NAME)
|
||||
cd $(DIST_DIR)/.. && zip -rq9 $(DIST_WIN32) $(DIST_NAME)
|
||||
$(RM) -r $(DIST_DIR)
|
||||
|
||||
dist-src:
|
||||
@ -352,11 +294,15 @@ dist-src:
|
||||
mkdir -p $(DIST_DIR)/lib
|
||||
cp -a auto $(DIST_DIR)
|
||||
$(RM) -Rf $(DIST_DIR)/auto/registry
|
||||
$(RM) -Rf $(DIST_DIR)/auto/glfixes
|
||||
$(RM) -Rf $(DIST_DIR)/auto/OpenGL-Registry
|
||||
$(RM) -Rf $(DIST_DIR)/auto/EGL-Registry
|
||||
cp -a build $(DIST_DIR)
|
||||
cp -a config $(DIST_DIR)
|
||||
cp -a src $(DIST_DIR)
|
||||
cp -a doc $(DIST_DIR)
|
||||
cp -a include $(DIST_DIR)
|
||||
cp -a *.md $(DIST_DIR)
|
||||
cp -a *.txt $(DIST_DIR)
|
||||
cp -a Makefile $(DIST_DIR)
|
||||
cp -a glew.pc.in $(DIST_DIR)
|
||||
@ -365,42 +311,44 @@ dist-src:
|
||||
find $(DIST_DIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
|
||||
find $(DIST_DIR) -name .svn | xargs $(RM) -r
|
||||
find $(DIST_DIR) -name "*.patch" | xargs $(RM) -r
|
||||
dos2unix $(DIST_DIR)/Makefile
|
||||
dos2unix $(DIST_DIR)/auto/Makefile
|
||||
dos2unix $(DIST_DIR)/config/*
|
||||
unix2dos $(DIST_DIR)/auto/core/*
|
||||
unix2dos $(DIST_DIR)/auto/extensions/*
|
||||
find $(DIST_DIR) -name '*.h' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.c' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.txt' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.html' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.css' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.sh' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.pl' | xargs unix2dos
|
||||
find $(DIST_DIR) -name 'Makefile' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.in' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.pm' | xargs unix2dos
|
||||
find $(DIST_DIR) -name '*.rc' | xargs unix2dos
|
||||
$(DOS2UNIX) $(DIST_DIR)/Makefile
|
||||
$(DOS2UNIX) $(DIST_DIR)/auto/Makefile
|
||||
$(DOS2UNIX) $(DIST_DIR)/config/*
|
||||
$(UNIX2DOS) $(DIST_DIR)/auto/core/*
|
||||
$(UNIX2DOS) $(DIST_DIR)/auto/extensions/*
|
||||
find $(DIST_DIR) -name '*.h' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.c' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.md' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.txt' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.html' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.css' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.sh' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.pl' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name 'Makefile' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.in' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.pm' | xargs $(UNIX2DOS)
|
||||
find $(DIST_DIR) -name '*.rc' | xargs $(UNIX2DOS)
|
||||
rm -f $(DIST_SRC_ZIP)
|
||||
cd $(DIST_DIR)/.. && zip -rv9 $(DIST_SRC_ZIP) $(DIST_NAME)
|
||||
dos2unix $(DIST_DIR)/Makefile
|
||||
dos2unix $(DIST_DIR)/auto/Makefile
|
||||
dos2unix $(DIST_DIR)/config/*
|
||||
dos2unix $(DIST_DIR)/auto/core/*
|
||||
dos2unix $(DIST_DIR)/auto/extensions/*
|
||||
find $(DIST_DIR) -name '*.h' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.c' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.txt' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.html' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.css' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.sh' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.pl' | xargs dos2unix
|
||||
find $(DIST_DIR) -name 'Makefile' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.in' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.pm' | xargs dos2unix
|
||||
find $(DIST_DIR) -name '*.rc' | xargs dos2unix
|
||||
cd $(DIST_DIR)/.. && zip -rq9 $(DIST_SRC_ZIP) $(DIST_NAME)
|
||||
$(DOS2UNIX) $(DIST_DIR)/Makefile
|
||||
$(DOS2UNIX) $(DIST_DIR)/auto/Makefile
|
||||
$(DOS2UNIX) $(DIST_DIR)/config/*
|
||||
$(DOS2UNIX) $(DIST_DIR)/auto/core/*
|
||||
$(DOS2UNIX) $(DIST_DIR)/auto/extensions/*
|
||||
find $(DIST_DIR) -name '*.h' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.c' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.md' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.txt' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.html' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.css' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.sh' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.pl' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name 'Makefile' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.in' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.pm' | xargs $(DOS2UNIX)
|
||||
find $(DIST_DIR) -name '*.rc' | xargs $(DOS2UNIX)
|
||||
rm -f $(DIST_SRC_TGZ)
|
||||
cd $(DIST_DIR)/.. && env GZIP=-9 tar cvzf $(DIST_SRC_TGZ) $(DIST_NAME)
|
||||
cd $(DIST_DIR)/.. && env GZIP=-9 tar czf $(DIST_SRC_TGZ) $(DIST_NAME)
|
||||
$(RM) -r $(DIST_DIR)
|
||||
|
||||
extensions:
|
||||
|
256
README.md
Normal file
256
README.md
Normal file
@ -0,0 +1,256 @@
|
||||
# GLEW - The OpenGL Extension Wrangler Library
|
||||
|
||||
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.
|
||||
|
||||

|
||||
|
||||
http://glew.sourceforge.net/
|
||||
|
||||
https://github.com/nigels-com/glew
|
||||
|
||||
[](https://gitter.im/nigels-com/glew?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
[](https://sourceforge.net/projects/glew/files/latest/download)
|
||||
[](https://ap-southeast-2.codebuild.aws.amazon.com/project/eyJlbmNyeXB0ZWREYXRhIjoiK3RLWndGOVVkMWthbXRQZCtVTTNOQ0w2dEpxakZ1cVBTNDZ1UldGODdqUERSdkx0U21Nd0RFaGhQL1kycVlmNzh2OXpEYnRKV3hXTVJJdjUvVStCbTl0dkliZm5jRTFsc0VBPSIsIml2UGFyYW1ldGVyU3BlYyI6ImZ0ekRoMkNjaU0rRUt5K2UiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D)
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Downloads](#downloads)
|
||||
* [Recent snapshots](#recent-snapshots)
|
||||
* [Build](#build)
|
||||
* [Linux and Mac](#linux-and-mac)
|
||||
* [Using GNU Make](#using-gnu-make)
|
||||
* [Install build tools](#install-build-tools)
|
||||
* [Build](#build-1)
|
||||
* [Linux EGL](#linux-egl)
|
||||
* [Linux OSMesa](#linux-osmesa)
|
||||
* [Linux mingw-w64](#linux-mingw-w64)
|
||||
* [Using cmake](#using-cmake)
|
||||
* [Install build tools](#install-build-tools-1)
|
||||
* [Build](#build-2)
|
||||
* [Windows](#windows)
|
||||
* [Visual Studio](#visual-studio)
|
||||
* [MSYS/Mingw](#msysmingw)
|
||||
* [MSYS2/Mingw-w64](#msys2mingw-w64)
|
||||
* [glewinfo](#glewinfo)
|
||||
* [Code Generation](#code-generation)
|
||||
* [Authors](#authors)
|
||||
* [Contributions](#contributions)
|
||||
* [Copyright and Licensing](#copyright-and-licensing)
|
||||
|
||||
## Downloads
|
||||
|
||||
Current release is [2.2.0](https://github.com/nigels-com/glew/releases/tag/glew-2.2.0).
|
||||
[(Change Log)](http://glew.sourceforge.net/log.html)
|
||||
|
||||
Sources available as
|
||||
[ZIP](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.zip) or
|
||||
[TGZ](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.tgz).
|
||||
|
||||
Windows binaries for [32-bit and 64-bit](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0-win32.zip).
|
||||
|
||||
### Recent snapshots
|
||||
|
||||
Snapshots may contain new features, bug-fixes or new OpenGL extensions ahead of tested, official releases.
|
||||
|
||||
[glew-20220402.tgz](https://sourceforge.net/projects/glew/files/glew/snapshots/glew-20220402.tgz/download) *GLEW 2.2.0 - with fix for glCreateProgressFenceNVX*
|
||||
|
||||
## Build
|
||||
|
||||
It is highly recommended to build from a tgz or zip release snapshot.
|
||||
The code generation workflow is a complex brew of gnu make, perl and python, that works best on Linux or Mac.
|
||||
The code generation is known to work on Windows using [MSYS2](https://www.msys2.org/).
|
||||
For most end-users of GLEW the official releases are the best choice, with first class support.
|
||||
|
||||
### Linux and Mac
|
||||
|
||||
#### Using GNU Make
|
||||
|
||||
GNU make is the primary build system for GLEW, historically.
|
||||
It includes targets for building the sources and headers, for maintenance purposes.
|
||||
|
||||
##### Install build tools
|
||||
|
||||
Debian/Ubuntu/Mint: `$ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev`
|
||||
|
||||
RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel`
|
||||
|
||||
FreeBSD: `# pkg install xorg lang/gcc git cmake gmake bash python perl5`
|
||||
|
||||
##### Build
|
||||
|
||||
$ make
|
||||
$ sudo make install
|
||||
$ make clean
|
||||
|
||||
Targets: `all, glew.lib (sub-targets: glew.lib.shared, glew.lib.static), glew.bin, clean, install, uninstall`
|
||||
|
||||
Variables: `SYSTEM=linux-clang, GLEW_DEST=/usr/local, STRIP=`
|
||||
|
||||
_Note: you may need to call `make` in the **auto** folder first_
|
||||
|
||||
##### Linux EGL
|
||||
|
||||
$ sudo apt install libegl1-mesa-dev
|
||||
$ make SYSTEM=linux-egl
|
||||
|
||||
##### Linux OSMesa
|
||||
|
||||
$ sudo apt install libosmesa-dev
|
||||
$ make SYSTEM=linux-osmesa
|
||||
|
||||
##### Linux mingw-w64
|
||||
|
||||
$ sudo apt install mingw-w64
|
||||
$ make SYSTEM=linux-mingw32
|
||||
$ make SYSTEM=linux-mingw64
|
||||
|
||||
#### Using cmake
|
||||
|
||||
The cmake build is mostly contributor maintained.
|
||||
Due to the multitude of use cases this is maintained on a _best effort_ basis.
|
||||
Pull requests are welcome.
|
||||
|
||||
*CMake 3.16 or higher is required.*
|
||||
|
||||
##### Install build tools
|
||||
|
||||
Debian/Ubuntu/Mint: `$ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev cmake git`
|
||||
|
||||
RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel cmake git`
|
||||
|
||||
##### Build
|
||||
|
||||
$ cd build
|
||||
$ cmake ./cmake
|
||||
$ make -j4
|
||||
|
||||
| Target | Description |
|
||||
| ---------- | ----------- |
|
||||
| glew | Build the glew shared library. |
|
||||
| glew_s | Build the glew static library. |
|
||||
| glewinfo | Build the `glewinfo` executable (requires `BUILD_UTILS` to be `ON`). |
|
||||
| visualinfo | Build the `visualinfo` executable (requires `BUILD_UTILS` to be `ON`). |
|
||||
| install | Install all enabled targets into `CMAKE_INSTALL_PREFIX`. |
|
||||
| clean | Clean up build artifacts. |
|
||||
| all | Build all enabled targets (default target). |
|
||||
|
||||
| Variables | Description |
|
||||
| --------------- | ----------- |
|
||||
| BUILD_UTILS | Build the `glewinfo` and `visualinfo` executables. |
|
||||
| GLEW_REGAL | Build in Regal mode. |
|
||||
| GLEW_OSMESA | Build in off-screen Mesa mode. |
|
||||
| BUILD_FRAMEWORK | Build as MacOSX Framework. Setting `CMAKE_INSTALL_PREFIX` to `/Library/Frameworks` is recommended. |
|
||||
|
||||
### Windows
|
||||
|
||||
#### Visual Studio
|
||||
|
||||
Use the provided Visual Studio project file in build/vc15/
|
||||
|
||||
Projects for vc6, vc10, vc12 and vc14 are also provided
|
||||
|
||||
#### MSYS/Mingw
|
||||
|
||||
Available from [Mingw](http://www.mingw.org/)
|
||||
|
||||
Requirements: bash, make, gcc
|
||||
|
||||
$ mingw32-make
|
||||
$ mingw32-make install
|
||||
$ mingw32-make install.all
|
||||
|
||||
Alternative toolchain: `SYSTEM=mingw-win32`
|
||||
|
||||
#### MSYS2/Mingw-w64
|
||||
|
||||
Available from [Msys2](http://msys2.github.io/) and/or [Mingw-w64](http://mingw-w64.org/)
|
||||
|
||||
Requirements: bash, make, gcc
|
||||
|
||||
$ pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc
|
||||
$ make
|
||||
$ make install
|
||||
$ make install.all
|
||||
|
||||
Alternative toolchain: `SYSTEM=msys, SYSTEM=msys-win32, SYSTEM=msys-win64`
|
||||
|
||||
## glewinfo
|
||||
|
||||
`glewinfo` is a command-line tool useful for inspecting the capabilities of an
|
||||
OpenGL implementation and GLEW support for that. Please include `glewinfo.txt`
|
||||
with bug reports, as appropriate.
|
||||
|
||||
---------------------------
|
||||
GLEW Extension Info
|
||||
---------------------------
|
||||
|
||||
GLEW version 2.0.0
|
||||
Reporting capabilities of pixelformat 3
|
||||
Running on a Intel(R) HD Graphics 3000 from Intel
|
||||
OpenGL version 3.1.0 - Build 9.17.10.4229 is supported
|
||||
|
||||
GL_VERSION_1_1: OK
|
||||
---------------
|
||||
|
||||
GL_VERSION_1_2: OK
|
||||
---------------
|
||||
glCopyTexSubImage3D: OK
|
||||
glDrawRangeElements: OK
|
||||
glTexImage3D: OK
|
||||
glTexSubImage3D: OK
|
||||
|
||||
...
|
||||
|
||||
## Code Generation
|
||||
|
||||
A Unix or Mac environment is needed for building GLEW from scratch to
|
||||
include new extensions, or customize the code generation. The extension
|
||||
data is regenerated from the top level source directory with:
|
||||
|
||||
make extensions
|
||||
|
||||
An alternative to generating the GLEW sources from scratch is to
|
||||
download a pre-generated (unsupported) snapshot:
|
||||
|
||||
https://sourceforge.net/projects/glew/files/glew/snapshots/
|
||||
|
||||
## Authors
|
||||
|
||||
GLEW is currently maintained by [Nigel Stewart](https://github.com/nigels-com)
|
||||
with bug fixes, new OpenGL extension support and new releases.
|
||||
|
||||
GLEW was developed by [Milan Ikits](http://www.cs.utah.edu/~ikits/)
|
||||
and [Marcelo Magallon](http://wwwvis.informatik.uni-stuttgart.de/~magallon/).
|
||||
Aaron Lefohn, Joe Kniss, and Chris Wyman were the first users and also
|
||||
assisted with the design and debugging process.
|
||||
|
||||
The acronym GLEW originates from Aaron Lefohn.
|
||||
Pasi Kärkkäinen identified and fixed several problems with
|
||||
GLX and SDL. Nate Robins created the `wglinfo` utility, to
|
||||
which modifications were made by Michael Wimmer.
|
||||
|
||||
## Contributions
|
||||
|
||||
GLEW welcomes community contributions. Typically these are co-ordinated
|
||||
via [Issues](https://github.com/nigels-com/glew/issues) or
|
||||
[Pull Requests](https://github.com/nigels-com/glew/pulls) in the
|
||||
GitHub web interface.
|
||||
|
||||
Be sure to mention platform and compiler toolchain details when filing
|
||||
a bug report. The output of `glewinfo` can be quite useful for discussion
|
||||
also.
|
||||
|
||||
Generally GLEW is usually released once a year, around the time of the Siggraph
|
||||
computer graphics conference. If you're not using the current release
|
||||
version of GLEW, be sure to check if the issue or bug is fixed there.
|
||||
|
||||
## Copyright and Licensing
|
||||
|
||||
GLEW is originally derived from the EXTGL project by Lev Povalahev.
|
||||
The source code is licensed under the
|
||||
[Modified BSD License](http://glew.sourceforge.net/glew.txt), the
|
||||
[Mesa 3-D License](http://glew.sourceforge.net/mesa.txt) (MIT) and the
|
||||
[Khronos License](http://glew.sourceforge.net/khronos.txt) (MIT).
|
||||
|
||||
The automatic code generation scripts are released under the
|
||||
[GNU GPL](http://glew.sourceforge.net/gpl.txt).
|
24
README.txt
24
README.txt
@ -1,24 +0,0 @@
|
||||
See doc/index.html for more information.
|
||||
|
||||
If you downloaded the tarball from the GLEW website, you just need to:
|
||||
|
||||
Unix:
|
||||
|
||||
make
|
||||
|
||||
sudo -s
|
||||
|
||||
make install
|
||||
|
||||
make clean
|
||||
|
||||
Windows:
|
||||
|
||||
use the project file in build/vc6/
|
||||
|
||||
If you wish to build GLEW from scratch (update the extension data from
|
||||
the net or add your own extension information), you need a Unix
|
||||
environment (including wget, perl, and GNU make). The extension data
|
||||
is regenerated from the top level source directory with:
|
||||
|
||||
make extensions
|
12
TODO.txt
12
TODO.txt
@ -1,12 +0,0 @@
|
||||
Major:
|
||||
- add support for windows mini-client drivers
|
||||
- add windows installer (msi)
|
||||
- separate build of static and shared object files (for mingw and
|
||||
cygwin)
|
||||
- start designing GLEW 2.0
|
||||
|
||||
Minor:
|
||||
- make auto scripts work with text mode cygwin mounts
|
||||
- add support for all SUN, MTX, and OML extensions
|
||||
- make auto/Makefile more robust against auto/core/*~ mistakes
|
||||
- web poll on separating glew, glxew and wglew
|
218
auto/Makefile
218
auto/Makefile
@ -10,30 +10,14 @@ include ../config/version
|
||||
#GLEW_SPLIT_SOURCE = yes
|
||||
|
||||
SHELL = bash
|
||||
PYTHON ?= python
|
||||
|
||||
### Use git repository for GL extension specifications
|
||||
|
||||
GIT_CLONE ?= git clone --branch glew https://github.com/nigels-com/glfixes.git
|
||||
|
||||
###
|
||||
### Conventional desktop OpenGL settings
|
||||
###
|
||||
|
||||
REGISTRY = registry/gl/specs
|
||||
EXT = extensions/gl
|
||||
FILTER = filter_gl_ext.sh
|
||||
CORE = core/gl
|
||||
REGISTRY_URL = http://www.opengl.org/registry/
|
||||
|
||||
###
|
||||
### Experimental OpenGL ES settings
|
||||
###
|
||||
|
||||
# REGISTRY = registry/gles
|
||||
# EXT = extensions/gles
|
||||
# FILTER = filter_gles_ext.sh
|
||||
# CORE = core/gles
|
||||
# REGISTRY_URL = http://www.khronos.org/registry/gles/
|
||||
REPO_OPENGL ?= https://github.com/KhronosGroup/OpenGL-Registry.git
|
||||
REPO_EGL ?= https://github.com/KhronosGroup/EGL-Registry.git
|
||||
REPO_GLFIXES ?= https://github.com/nigels-com/glfixes
|
||||
|
||||
BIN = bin
|
||||
SRC = src
|
||||
@ -41,16 +25,19 @@ BLACKLIST = blacklist
|
||||
|
||||
GL_CORE_SPEC := $(CORE)/GL_VERSION*
|
||||
GLX_CORE_SPEC := $(CORE)/GLX_VERSION*
|
||||
EGL_CORE_SPEC := $(CORE)/EGL_VERSION*
|
||||
ifeq (custom,$(MAKECMDGOALS))
|
||||
#GL_CORE_SPEC := $(shell grep GL_VERSION custom.txt | perl -pi -e "s=^=$(CORE)/=g;")
|
||||
GL_EXT_SPEC := $(shell grep "^[ \t]*GL_" custom.txt | grep -v GL_VERSION | perl -pi -e "s=^=$(EXT)/=g;")
|
||||
WGL_EXT_SPEC := $(shell grep "^[ \t]*WGL_" custom.txt | perl -pi -e "s=^=$(EXT)/=g;")
|
||||
#GLX_CORE_SPEC := $(shell grep GLX_VERSION custom.txt | perl -pi -e "s=^=$(CORE)/=g;")
|
||||
GLX_EXT_SPEC := $(shell grep "^[ \t]*GLX_" custom.txt | grep -v GLX_VERSION | perl -pi -e "s=^=$(EXT)/=g;")
|
||||
EGL_EXT_SPEC := $(shell grep "^[ \t]*EGL_" custom.txt | grep -v EGL_VERSION | perl -pi -e "s=^=$(EXT)/=g;")
|
||||
else
|
||||
GL_EXT_SPEC := $(EXT)/GL_*
|
||||
WGL_EXT_SPEC := $(EXT)/WGL_*
|
||||
GLX_EXT_SPEC := $(EXT)/GLX_*
|
||||
EGL_EXT_SPEC := $(EXT)/EGL_*
|
||||
endif
|
||||
|
||||
PARSE_SPEC = parse_spec.pl
|
||||
@ -65,7 +52,8 @@ B.DEST = $(TOP)/build
|
||||
I.TARGETS = \
|
||||
$(I.DEST)/glew.h \
|
||||
$(I.DEST)/wglew.h \
|
||||
$(I.DEST)/glxew.h
|
||||
$(I.DEST)/glxew.h \
|
||||
$(I.DEST)/eglew.h
|
||||
|
||||
ifeq (yes,$(GLEW_SPLIT_SOURCE))
|
||||
S.TARGETS = \
|
||||
@ -98,29 +86,55 @@ B.TARGETS = \
|
||||
|
||||
all custom: $(I.TARGETS) $(S.TARGETS) $(D.TARGETS) $(B.TARGETS)
|
||||
|
||||
registry: $(REGISTRY)/.dummy
|
||||
ext: $(EXT)/.dummy
|
||||
|
||||
$(REGISTRY)/.dummy:
|
||||
OpenGL-Registry/.dummy:
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "Downloading registry"
|
||||
@echo "Downloading OpenGL-Registry"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
$(GIT_CLONE) registry
|
||||
git clone --depth=1 $(REPO_OPENGL) OpenGL-Registry
|
||||
git clone --depth=1 --branch glew $(REPO_GLFIXES) glfixes
|
||||
touch $@
|
||||
|
||||
$(EXT)/.dummy: $(REGISTRY)/.dummy
|
||||
EGL-Registry/.dummy:
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "Creating descriptors"
|
||||
@echo "Downloading EGL-Registry"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
git clone --depth=1 $(REPO_EGL) EGL-Registry
|
||||
touch $@
|
||||
|
||||
$(EXT)/.dummy: OpenGL-Registry/.dummy EGL-Registry/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "OpenGL descriptors"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
rm -rf $(EXT)
|
||||
$(BIN)/update_ext.sh $(EXT) $(REGISTRY) $(BLACKLIST)
|
||||
$(BIN)/$(FILTER) $(EXT)
|
||||
cp -r glfixes/gl/specs/ANGLE OpenGL-Registry/extensions
|
||||
cp -r glfixes/gl/specs/REGAL OpenGL-Registry/extensions
|
||||
$(BIN)/update_ext.sh $(EXT) OpenGL-Registry/extensions $(BLACKLIST)
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "WGL descriptors"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
rm -f $(EXT)/WGL_*
|
||||
$(PYTHON) $(BIN)/parse_xml.py OpenGL-Registry/xml/wgl.xml --api wgl --extensions extensions/gl
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "GLX descriptors"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
rm -f $(EXT)/GLX_*
|
||||
$(PYTHON) $(BIN)/parse_xml.py OpenGL-Registry/xml/glx.xml --api glx --extensions extensions/gl
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "EGL descriptors"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
$(PYTHON) $(BIN)/parse_xml.py EGL-Registry/api/egl.xml --api egl --extensions extensions/gl
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "filter descriptors"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
$(BIN)/filter_gl_ext.sh $(EXT)
|
||||
ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin)
|
||||
find $(CORE) -maxdepth 1 -type f | grep -v VERSION | grep -v "~" | \
|
||||
xargs -J % cp % $(EXT)
|
||||
else
|
||||
find $(CORE) -maxdepth 1 -type f | grep -v VERSION | grep -v "~" | \
|
||||
xargs cp --target-directory=$(EXT)
|
||||
xargs -I % -n 1 cp % $(EXT)
|
||||
endif
|
||||
touch $@
|
||||
|
||||
@ -135,16 +149,16 @@ $(I.DEST)/glew.h: $(EXT)/.dummy
|
||||
cat $(SRC)/glew_head.h >> $@
|
||||
$(BIN)/make_header.pl GLAPIENTRY GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_header.pl GLAPIENTRY GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "/* ------------------------------------------------------------------------- */\n\n#if defined(GLEW_MX) && defined(_WIN32)\n#define GLEW_FUN_EXPORT\n#else\n#define GLEW_FUN_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n" >> $@
|
||||
echo -e "#if defined(GLEW_MX)\n#define GLEW_VAR_EXPORT\n#else\n#define GLEW_VAR_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n" >> $@
|
||||
echo -e "#if defined(GLEW_MX) && defined(_WIN32)\nstruct GLEWContextStruct\n{\n#endif /* GLEW_MX */" >> $@
|
||||
echo -e "/* ------------------------------------------------------------------------- */\n\n" >> $@
|
||||
$(BIN)/make_struct_fun.pl GLEW_FUN_EXPORT $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#if defined(GLEW_MX) && !defined(_WIN32)\nstruct GLEWContextStruct\n{\n#endif /* GLEW_MX */\n" >> $@
|
||||
$(BIN)/make_struct_var.pl GLEW_VAR_EXPORT $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#ifdef GLEW_MX\n}; /* GLEWContextStruct */\n#endif /* GLEW_MX */\n" >> $@
|
||||
perl -e "s/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1;\nGLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/" -pi $@
|
||||
rm -f $@.bak
|
||||
cat $(SRC)/glew_tail.h >> $@
|
||||
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MAJOR_STRING/$(GLEW_MAJOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MINOR_STRING/$(GLEW_MINOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MICRO_STRING/$(GLEW_MICRO)/g" -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
$(I.DEST)/wglew.h: $(EXT)/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@ -155,10 +169,8 @@ $(I.DEST)/wglew.h: $(EXT)/.dummy
|
||||
cat $(SRC)/wglew_head.h >> $@
|
||||
$(BIN)/make_header.pl WINAPI WGL $(WGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/wglew_mid.h >> $@
|
||||
echo -e "\n#ifdef GLEW_MX\nstruct WGLEWContextStruct\n{\n#endif /* GLEW_MX */" >> $@
|
||||
$(BIN)/make_struct_fun.pl WGLEW_FUN_EXPORT $(WGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_struct_var.pl WGLEW_VAR_EXPORT $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "\n#ifdef GLEW_MX\n}; /* WGLEWContextStruct */\n#endif /* GLEW_MX */\n" >> $@
|
||||
cat $(SRC)/wglew_tail.h >> $@
|
||||
|
||||
$(I.DEST)/glxew.h: $(EXT)/.dummy
|
||||
@ -173,38 +185,65 @@ $(I.DEST)/glxew.h: $(EXT)/.dummy
|
||||
$(BIN)/make_header.pl "" GLX $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glxew_mid.h >> $@
|
||||
$(BIN)/make_struct_fun.pl GLXEW_FUN_EXPORT $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#if defined(GLEW_MX)\nstruct GLXEWContextStruct\n{\n#endif /* GLEW_MX */\n" >> $@
|
||||
$(BIN)/make_struct_var.pl GLXEW_VAR_EXPORT $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#ifdef GLEW_MX\n}; /* GLXEWContextStruct */\n#endif /* GLEW_MX */\n" >> $@
|
||||
perl -e "s/GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;/GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_0;\nGLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_1;\nGLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;/" -pi $@
|
||||
cat $(SRC)/glxew_tail.h >> $@
|
||||
|
||||
$(I.DEST)/eglew.h: $(EXT)/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "Creating eglew.h"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
cp -f $(SRC)/glew_license.h $@
|
||||
cat $(SRC)/mesa_license.h >> $@
|
||||
cat $(SRC)/khronos_license.h >> $@
|
||||
cat $(SRC)/eglew_head.h >> $@
|
||||
$(BIN)/make_header.pl "" EGL $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_header.pl "" EGL $(EGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/eglew_mid.h >> $@
|
||||
$(BIN)/make_struct_fun.pl EGLEW_FUN_EXPORT $(EGL_CORE_SPEC) $(EGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_struct_var.pl EGLEW_VAR_EXPORT $(EGL_CORE_SPEC) $(EGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/eglew_tail.h >> $@
|
||||
|
||||
$(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "Creating glew.c"
|
||||
@echo "--------------------------------------------------------------------"
|
||||
cp -f $(SRC)/glew_license.h $@
|
||||
cat $(SRC)/glew_head.c >> $@
|
||||
echo -e "\n#if !defined(_WIN32) || !defined(GLEW_MX)" >> $@
|
||||
$(BIN)/make_def_fun.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !WIN32 || !GLEW_MX */" >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)" >> $@;
|
||||
echo -e "\nGLboolean __GLEW_VERSION_1_1 = GL_FALSE;" >> $@
|
||||
$(BIN)/make_def_var.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !GLEW_MX */\n" >> $@;
|
||||
echo -e "\nstatic const char * _glewExtensionLookup[] = {" >> $@;
|
||||
$(BIN)/make_index.pl $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
echo -e " NULL\n};\n\n" >> $@;
|
||||
$(BIN)/make_enable_index.pl $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_initd.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_initd.pl GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "" >> $@;
|
||||
$(BIN)/make_init.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_init.pl GL $(GL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_gl.c >> $@
|
||||
$(BIN)/make_list.pl $(GL_CORE_SPEC) | grep -v '\"GL_VERSION' >> $@
|
||||
$(BIN)/make_list.pl $(GL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_list2.pl $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}\n" >> $@
|
||||
echo -e "\n#if defined(_WIN32)" >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)" >> $@
|
||||
echo -e "\n#if defined(GLEW_OSMESA)" >> $@
|
||||
echo -e "\n#elif defined(GLEW_EGL)" >> $@
|
||||
$(BIN)/make_def_fun.pl EGL $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl EGL $(EGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl EGL $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl EGL $(EGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_init.pl EGL $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_init.pl EGL $(EGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_egl.c >> $@
|
||||
$(BIN)/make_list.pl $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_list.pl $(EGL_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}" >> $@
|
||||
echo -e "\n#elif defined(_WIN32)" >> $@
|
||||
$(BIN)/make_def_fun.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !GLEW_MX */\n" >> $@;
|
||||
$(BIN)/make_init.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_wgl.c >> $@
|
||||
$(BIN)/make_list.pl $(WGL_EXT_SPEC) >> $@
|
||||
@ -212,12 +251,10 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
echo -e "\n#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))" >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)" >> $@;
|
||||
echo -e "\nGLboolean __GLXEW_VERSION_1_0 = GL_FALSE;" >> $@
|
||||
echo -e "GLboolean __GLXEW_VERSION_1_1 = GL_FALSE;" >> $@
|
||||
$(BIN)/make_def_var.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !GLEW_MX */\n" >> $@;
|
||||
$(BIN)/make_init.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_init.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_glx.c >> $@
|
||||
@ -232,84 +269,17 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
$(BIN)/make_str.pl $(WGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_glx.c >> $@
|
||||
$(BIN)/make_str.pl $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_egl.c >> $@
|
||||
$(BIN)/make_str.pl $(EGL_CORE_SPEC) $(EGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_tail.c >> $@
|
||||
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MAJOR_STRING/$(GLEW_MAJOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MINOR_STRING/$(GLEW_MINOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MICRO_STRING/$(GLEW_MICRO)/g" -pi $@
|
||||
perl -e "s/GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader\(GLEW_CONTEXT_ARG_VAR_INIT\);/{ GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT); _glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT); }/g" -pi $@
|
||||
perl -e "s/GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader\(\);/{ GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader(); _glewInit_GL_ARB_vertex_program(); }/g" -pi $@
|
||||
perl -e "s/\(\(glColorSubTable = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glColorSubTable = /g" -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
$(S.DEST)/glew_def.c: $(EXT)/.dummy
|
||||
cp -f $(SRC)/glew_license.h $@
|
||||
echo -e "#include \"glew_utils.h\"\n\n#if !defined(_WIN32) || !defined(GLEW_MX)" >> $@
|
||||
$(BIN)/make_def_fun.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !WIN32 || !GLEW_MX */" >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)\n\nGLboolean __GLEW_VERSION_1_1 = GL_FALSE;" >> $@
|
||||
$(BIN)/make_def_var.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl GL $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n#if defined(_WIN32)" >> $@
|
||||
$(BIN)/make_def_fun.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* _WIN32 */" >> $@
|
||||
echo -e "\n#endif /* !GLEW_MX */" >> $@;
|
||||
echo -e "\n#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))" >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_fun.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#if !defined(GLEW_MX)" >> $@;
|
||||
echo -e "\nGLboolean __GLXEW_VERSION_1_0 = GL_FALSE;" >> $@
|
||||
echo -e "GLboolean __GLXEW_VERSION_1_1 = GL_FALSE;" >> $@
|
||||
$(BIN)/make_def_var.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_def_var.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n#endif /* !GLEW_MX */" >> $@;
|
||||
echo -e "\n#endif /* !defined(_WIN32) && !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) */" >> $@;
|
||||
rm -f $@.bak
|
||||
|
||||
$(S.DEST)/glew_init.c: $(EXT)/.dummy
|
||||
cp -f $(SRC)/glew_license.h $@
|
||||
echo -e "#include \"glew_utils.h\"\n" >> $@
|
||||
$(BIN)/make_init.pl GL $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_init.pl GL $(GL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_gl.c >> $@
|
||||
$(BIN)/make_list.pl $(GL_CORE_SPEC) | grep -v '\"GL_VERSION' >> $@
|
||||
$(BIN)/make_list.pl $(GL_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}\n\n#if defined(_WIN32)\n" >> $@;
|
||||
$(BIN)/make_init.pl WGL $(WGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_wgl.c >> $@
|
||||
$(BIN)/make_list.pl $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}\n\n" >> $@;
|
||||
echo -e "\n#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)\n" >> $@
|
||||
$(BIN)/make_init.pl GLX $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_init.pl GLX $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_init_glx.c >> $@
|
||||
$(BIN)/make_list.pl $(CORE)/GLX_VERSION_1_3 | grep -v '\"GLX_VERSION' >> $@
|
||||
$(BIN)/make_list.pl $(GLX_EXT_SPEC) >> $@
|
||||
echo -e "\n return GLEW_OK;\n}\n\n#endif /* !__APPLE__ || GLEW_APPLE_GLX */\n" >> $@;
|
||||
cat $(SRC)/glew_init_tail.c >> $@
|
||||
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MAJOR_STRING/$(GLEW_MAJOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MINOR_STRING/$(GLEW_MINOR)/g" -pi $@
|
||||
perl -e "s/GLEW_VERSION_MICRO_STRING/$(GLEW_MICRO)/g" -pi $@
|
||||
perl -e "s/GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader\(GLEW_CONTEXT_ARG_VAR_INIT\);/{ GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT); _glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT); }/g" -pi $@
|
||||
perl -e "s/\(\(glBlendColor = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glBlendColor = /g" -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
$(S.DEST)/glew_str.c: $(EXT)/.dummy
|
||||
cp -f $(SRC)/glew_license.h $@
|
||||
echo -e "\n#include \"glew_utils.h\"\n" >> $@
|
||||
cat $(SRC)/glew_str_head.c >> $@
|
||||
$(BIN)/make_str.pl $(GL_CORE_SPEC) $(GL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_wgl.c >> $@
|
||||
$(BIN)/make_str.pl $(WGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_glx.c >> $@
|
||||
$(BIN)/make_str.pl $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glew_str_tail.c >> $@
|
||||
# perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@
|
||||
# perl -e "s/GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader\(GLEW_CONTEXT_ARG_VAR_INIT\);/{ GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT); _glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT); }/g" -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
$(S.DEST)/glewinfo.c: $(EXT)/.dummy
|
||||
@echo "--------------------------------------------------------------------"
|
||||
@echo "Creating glewinfo.c"
|
||||
@ -318,7 +288,10 @@ $(S.DEST)/glewinfo.c: $(EXT)/.dummy
|
||||
cat $(SRC)/glewinfo_head.c >> $@
|
||||
$(BIN)/make_info.pl $(GL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_info.pl $(GL_EXT_SPEC) >> $@
|
||||
echo -e "#ifdef _WIN32\n" >> $@
|
||||
echo -e "#if defined(GLEW_EGL)\n" >> $@
|
||||
$(BIN)/make_info.pl $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_info.pl $(EGL_EXT_SPEC) >> $@
|
||||
echo -e "#elif _WIN32\n" >> $@
|
||||
$(BIN)/make_info.pl $(WGL_EXT_SPEC) >> $@
|
||||
echo -e "#else /* _UNIX */\n" >> $@
|
||||
$(BIN)/make_info.pl $(GLX_CORE_SPEC) >> $@
|
||||
@ -333,8 +306,11 @@ $(S.DEST)/glewinfo.c: $(EXT)/.dummy
|
||||
cat $(SRC)/glewinfo_glx.c >> $@
|
||||
$(BIN)/make_info_list.pl $(GLX_CORE_SPEC) >> $@
|
||||
$(BIN)/make_info_list.pl $(GLX_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glewinfo_egl.c >> $@
|
||||
$(BIN)/make_info_list.pl $(EGL_CORE_SPEC) >> $@
|
||||
$(BIN)/make_info_list.pl $(EGL_EXT_SPEC) >> $@
|
||||
cat $(SRC)/glewinfo_tail.c >> $@
|
||||
perl -e 's/"glColorSubTable"/"glBlendEquation", glBlendEquation == NULL);\n glewInfoFunc("glColorSubTable"/g' -pi $@
|
||||
perl -e 's/"glColorSubTable"/"glBlendEquation", glBlendEquation == NULL);\n glewInfoFunc(fi, "glColorSubTable"/g' -pi $@
|
||||
rm -f $@.bak
|
||||
|
||||
# Update documentation
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -18,11 +19,13 @@ set -e
|
||||
mv tmp $1/GL_NV_texture_compression_vtc
|
||||
|
||||
# remove duplicates from GL_ARB_vertex_program and GL_ARB_fragment_program
|
||||
grep -v -F -f $1/GL_ARB_vertex_program $1/GL_ARB_fragment_program > tmp
|
||||
tail -n +5 $1/GL_ARB_vertex_program > patterns
|
||||
grep -v -F -f patterns $1/GL_ARB_fragment_program > tmp
|
||||
mv tmp $1/GL_ARB_fragment_program
|
||||
|
||||
# remove duplicates from GLX_EXT_visual_rating and GLX_EXT_visual_info
|
||||
grep -v -F -f $1/GLX_EXT_visual_info $1/GLX_EXT_visual_rating > tmp
|
||||
tail -n +5 $1/GLX_EXT_visual_info > patterns
|
||||
grep -v -F -f patterns $1/GLX_EXT_visual_rating > tmp
|
||||
mv tmp $1/GLX_EXT_visual_rating
|
||||
|
||||
# GL_EXT_draw_buffers2 and GL_EXT_transform_feedback both define glGetBooleanIndexedvEXT but with different parameter names
|
||||
@ -58,7 +61,8 @@ EOT
|
||||
EOT
|
||||
|
||||
# remove duplicates from GL_NV_present_video and GLX_NV_present_video
|
||||
grep -v -F -f $1/GLX_NV_present_video $1/GL_NV_present_video > tmp
|
||||
tail -n +5 $1/GLX_NV_present_video > patterns
|
||||
grep -v -F -f patterns $1/GL_NV_present_video > tmp
|
||||
mv tmp $1/GL_NV_present_video
|
||||
|
||||
# fix WGL_NV_present_video
|
||||
@ -74,10 +78,6 @@ EOT
|
||||
# fix GL_NV_occlusion_query and GL_HP_occlusion_test
|
||||
grep -v '_HP' $1/GL_NV_occlusion_query > tmp
|
||||
mv tmp $1/GL_NV_occlusion_query
|
||||
perl -e's/OCCLUSION_TEST_HP.*/OCCLUSION_TEST_HP 0x8165/' -pi \
|
||||
$1/GL_HP_occlusion_test
|
||||
perl -e's/OCCLUSION_TEST_RESULT_HP.*/OCCLUSION_TEST_RESULT_HP 0x8166/' -pi \
|
||||
$1/GL_HP_occlusion_test
|
||||
|
||||
# add deprecated constants to GL_ATI_fragment_shader
|
||||
cat >> $1/GL_ATI_fragment_shader <<EOT
|
||||
@ -148,9 +148,14 @@ EOT
|
||||
typedef struct __GLXFBConfigRec *GLXFBConfigSGIX
|
||||
EOT
|
||||
|
||||
# Skip GLX_SGIX_dmbuffer and GLX_SGIX_video_source
|
||||
# unknown DMparams, DMbuffer, etc
|
||||
rm -f $1/GLX_SGIX_dmbuffer
|
||||
rm -f $1/GLX_SGIX_video_source
|
||||
|
||||
# add typedefs to GLX_SGIX_pbuffer
|
||||
cat >> $1/GLX_SGIX_pbuffer <<EOT
|
||||
typedef XID GLXPbufferSGIX
|
||||
typedef XID GLXPbufferSGIX
|
||||
typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX
|
||||
EOT
|
||||
|
||||
@ -180,20 +185,23 @@ EOT
|
||||
|
||||
# remove triplicates in GL_ARB_shader_objects, GL_ARB_fragment_shader,
|
||||
# and GL_ARB_vertex_shader
|
||||
grep -v -F -f $1/GL_ARB_shader_objects $1/GL_ARB_fragment_shader > tmp
|
||||
tail -n +5 $1/GL_ARB_shader_objects > patterns
|
||||
grep -v -F -f patterns $1/GL_ARB_fragment_shader > tmp
|
||||
mv tmp $1/GL_ARB_fragment_shader
|
||||
grep -v -F -f $1/GL_ARB_shader_objects $1/GL_ARB_vertex_shader > tmp
|
||||
grep -v -F -f patterns $1/GL_ARB_vertex_shader > tmp
|
||||
mv tmp $1/GL_ARB_vertex_shader
|
||||
|
||||
# remove duplicates in GL_ARB_vertex_program and GL_ARB_vertex_shader
|
||||
grep -v -F -f $1/GL_ARB_vertex_program $1/GL_ARB_vertex_shader > tmp
|
||||
tail -n +5 $1/GL_ARB_vertex_program > patterns
|
||||
grep -v -F -f patterns $1/GL_ARB_vertex_shader > tmp
|
||||
mv tmp $1/GL_ARB_vertex_shader
|
||||
|
||||
# remove triplicates in GL_ARB_fragment_program, GL_ARB_fragment_shader,
|
||||
# and GL_ARB_vertex_shader
|
||||
grep -v -F -f $1/GL_ARB_fragment_program $1/GL_ARB_fragment_shader > tmp
|
||||
tail -n +5 $1/GL_ARB_fragment_program > patterns
|
||||
grep -v -F -f patterns $1/GL_ARB_fragment_shader > tmp
|
||||
mv tmp $1/GL_ARB_fragment_shader
|
||||
grep -v -F -f $1/GL_ARB_fragment_program $1/GL_ARB_vertex_shader > tmp
|
||||
grep -v -F -f patterns $1/GL_ARB_vertex_shader > tmp
|
||||
mv tmp $1/GL_ARB_vertex_shader
|
||||
|
||||
# remove duplicates in GL_EXT_direct_state_access
|
||||
@ -246,7 +254,7 @@ EOT
|
||||
EOT
|
||||
|
||||
# Filter out GL_NV_gpu_program_fp64 enums and functions
|
||||
head -n3 $1/GL_NV_gpu_program_fp64 > tmp
|
||||
head -n4 $1/GL_NV_gpu_program_fp64 > tmp
|
||||
mv tmp $1/GL_NV_gpu_program_fp64
|
||||
|
||||
# Filter glGetUniformui64vNV from GL_NV_shader_buffer_load
|
||||
@ -258,7 +266,7 @@ EOT
|
||||
mv tmp $1/GLX_ARB_create_context
|
||||
|
||||
# Filter only profile related enumerations for GLX_ARB_create_context_profile
|
||||
head -n3 $1/GLX_ARB_create_context_profile > tmp
|
||||
head -n4 $1/GLX_ARB_create_context_profile > tmp
|
||||
grep "_PROFILE_" $1/GLX_ARB_create_context_profile >> tmp
|
||||
mv tmp $1/GLX_ARB_create_context_profile
|
||||
|
||||
@ -267,7 +275,7 @@ EOT
|
||||
mv tmp $1/WGL_ARB_create_context
|
||||
|
||||
# Filter only profile related enumerations for WGL_ARB_create_context_profile
|
||||
head -n3 $1/WGL_ARB_create_context_profile > tmp
|
||||
head -n4 $1/WGL_ARB_create_context_profile > tmp
|
||||
grep "_PROFILE_" $1/WGL_ARB_create_context_profile >> tmp
|
||||
mv tmp $1/WGL_ARB_create_context_profile
|
||||
|
||||
@ -281,9 +289,9 @@ EOT
|
||||
BOOL wglCopyImageSubDataNV (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)
|
||||
EOT
|
||||
|
||||
# Filter glProgramParameteri from GL_ARB_separate_shader_objects
|
||||
# grep -v "glProgramParameteri" $1/GL_ARB_separate_shader_objects > tmp
|
||||
# mv tmp $1/GL_ARB_separate_shader_objects
|
||||
# Filter glProgramUniform from GL_EXT_separate_shader_objects
|
||||
cat $1/GL_EXT_separate_shader_objects | grep -v "glProgramUniform" | grep -v "glProgramParameteri" > tmp
|
||||
mv tmp $1/GL_EXT_separate_shader_objects
|
||||
|
||||
# Filter out EXT functions from GL_ARB_viewport_array
|
||||
grep -v "EXT" $1/GL_ARB_viewport_array > tmp
|
||||
@ -332,11 +340,6 @@ EOT
|
||||
grep -v "glGetPointerv" $1/GL_KHR_debug > tmp
|
||||
mv tmp $1/GL_KHR_debug
|
||||
|
||||
# Remove GL_ARB_debug_group, GL_ARB_debug_label and GL_ARB_debug_output2, for now
|
||||
rm -f $1/GL_ARB_debug_group
|
||||
rm -f $1/GL_ARB_debug_label
|
||||
rm -f $1/GL_ARB_debug_output2
|
||||
|
||||
# add typedefs to GL_ARB_cl_event
|
||||
# parse_spec.pl can't parse typedefs from New Types section, but ought to
|
||||
cat >> $1/GL_ARB_cl_event <<EOT
|
||||
@ -471,15 +474,16 @@ EOT
|
||||
for i in $1/GL_ANGLE_*; do perl -e 's#http://www.opengl.org/registry/specs/ANGLE/.*#https://code.google.com/p/angleproject/source/browse/\#git%2Fextensions#g' -pi $i; done
|
||||
|
||||
# Filter out GL_NV_blend_equation_advanced_coherent enums and functions
|
||||
head -n3 $1/GL_NV_blend_equation_advanced_coherent > tmp
|
||||
head -n4 $1/GL_NV_blend_equation_advanced_coherent > tmp
|
||||
mv tmp $1/GL_NV_blend_equation_advanced_coherent
|
||||
|
||||
# Filter out GL_AMD_gpu_shader_int64 enums and functions
|
||||
head -n3 $1/GL_AMD_gpu_shader_int64 > tmp
|
||||
head -n4 $1/GL_AMD_gpu_shader_int64 > tmp
|
||||
mv tmp $1/GL_AMD_gpu_shader_int64
|
||||
|
||||
# Filter out GL_NO_ERROR enum from GL_KHR_robustness
|
||||
grep -v 'GL_NO_ERROR' $1/GL_KHR_robustness > tmp
|
||||
# Filter out GL_NO_ERROR enum and glGetGraphicsResetStatus from GL_KHR_robustness
|
||||
grep -v 'GL_NO_ERROR' $1/GL_KHR_robustness |
|
||||
grep -v 'glGetGraphicsResetStatus' > tmp
|
||||
mv tmp $1/GL_KHR_robustness
|
||||
|
||||
# Filter out all enums from GL_KHR_blend_equation_advanced_coherent
|
||||
@ -490,5 +494,121 @@ EOT
|
||||
grep -v 'glBlendBarrierKHR' $1/GL_KHR_blend_equation_advanced_coherent > tmp
|
||||
mv tmp $1/GL_KHR_blend_equation_advanced_coherent
|
||||
|
||||
# Filter out GL_NONE enum from GL_KHR_context_flush_control
|
||||
grep -v 'GL_NONE' $1/GL_KHR_context_flush_control > tmp
|
||||
mv tmp $1/GL_KHR_context_flush_control
|
||||
|
||||
# Filter out CoverageModulation from NV_framebuffer_mixed_samples
|
||||
# Superset of EXT_raster_multisample
|
||||
|
||||
grep -v "CoverageModulation" $1/GL_NV_framebuffer_mixed_samples > tmp
|
||||
mv tmp $1/GL_NV_framebuffer_mixed_samples
|
||||
|
||||
# Filter out glRasterSamplesEXT from NV_framebuffer_mixed_samples
|
||||
# Superset of EXT_raster_multisample
|
||||
|
||||
grep -v "RasterSamplesEXT" $1/GL_NV_framebuffer_mixed_samples > tmp
|
||||
mv tmp $1/GL_NV_framebuffer_mixed_samples
|
||||
|
||||
# Filter out glNamedBufferStorageEXT from GL_ARB_buffer_storage
|
||||
|
||||
grep -v "glNamedBufferStorageEXT" $1/GL_ARB_buffer_storage > tmp
|
||||
mv tmp $1/GL_ARB_buffer_storage
|
||||
|
||||
# Filter out glFramebufferTextureEXT from GL_EXT_geometry_point_size
|
||||
# and GL_EXT_geometry_shader
|
||||
|
||||
grep -v "glFramebufferTextureEXT" $1/GL_EXT_geometry_point_size > tmp
|
||||
mv tmp $1/GL_EXT_geometry_point_size
|
||||
|
||||
grep -v "glFramebufferTextureEXT" $1/GL_EXT_geometry_shader > tmp
|
||||
mv tmp $1/GL_EXT_geometry_shader
|
||||
|
||||
# Filter out glBindFragDataLocationEXT from GL_EXT_blend_func_extended
|
||||
|
||||
grep -v "glBindFragDataLocationEXT" $1/GL_EXT_blend_func_extended > tmp
|
||||
mv tmp $1/GL_EXT_blend_func_extended
|
||||
|
||||
# Filter out glDrawArraysInstancedEXT and glDrawElementsInstancedEXT from GL_EXT_blend_func_extended
|
||||
|
||||
grep -v "glDrawArraysInstancedEXT" $1/GL_EXT_instanced_arrays > tmp
|
||||
mv tmp $1/GL_EXT_instanced_arrays
|
||||
|
||||
grep -v "glDrawElementsInstancedEXT" $1/GL_EXT_instanced_arrays > tmp
|
||||
mv tmp $1/GL_EXT_instanced_arrays
|
||||
|
||||
# Filter out glRenderbufferStorageMultisampleEXT from GL_EXT_multisampled_render_to_texture
|
||||
|
||||
grep -v "glRenderbufferStorageMultisampleEXT" $1/GL_EXT_multisampled_render_to_texture > tmp
|
||||
mv tmp $1/GL_EXT_multisampled_render_to_texture
|
||||
|
||||
# Filter out glTexturePageCommitmentEXT from GL_ARB_sparse_texture
|
||||
|
||||
grep -v "glTexturePageCommitmentEXT" $1/GL_ARB_sparse_texture > tmp
|
||||
mv tmp $1/GL_ARB_sparse_texture
|
||||
|
||||
# Filter out TextureStorage* from GL_ARB_texture_storage
|
||||
|
||||
grep -v "TextureStorage" $1/GL_ARB_texture_storage > tmp
|
||||
mv tmp $1/GL_ARB_texture_storage
|
||||
|
||||
# Filter out functions from GL_EXT_occlusion_query_boolean
|
||||
|
||||
grep -v "(" $1/GL_EXT_occlusion_query_boolean > tmp
|
||||
mv tmp $1/GL_EXT_occlusion_query_boolean
|
||||
|
||||
# Filter out duplicate enums from GL_EXT_protected_textures
|
||||
|
||||
cat $1/GL_EXT_protected_textures | grep -v GL_TRUE | grep -v GL_FALSE > tmp
|
||||
mv tmp $1/GL_EXT_protected_textures
|
||||
|
||||
# Filter out duplicate enums from GL_EXT_robustness
|
||||
|
||||
cat $1/GL_EXT_robustness | grep -v GL_NO_ERROR > tmp
|
||||
mv tmp $1/GL_EXT_robustness
|
||||
|
||||
# Filter GL_EXT_shader_framebuffer_fetch_non_coherent
|
||||
|
||||
grep -v "FramebufferFetchBarrierEXT" $1/GL_EXT_shader_framebuffer_fetch_non_coherent > tmp
|
||||
mv tmp $1/GL_EXT_shader_framebuffer_fetch_non_coherent
|
||||
|
||||
# Filter GL_EXT_tessellation_shader
|
||||
|
||||
grep -v "PatchParameteriEXT" $1/GL_EXT_tessellation_shader > tmp
|
||||
mv tmp $1/GL_EXT_tessellation_shader
|
||||
|
||||
# Filter GL_EXT_texture_buffer
|
||||
|
||||
grep -v "TexBuffer" $1/GL_EXT_texture_buffer > tmp
|
||||
mv tmp $1/GL_EXT_texture_buffer
|
||||
|
||||
# Filter GL_EXT_texture_border_clamp
|
||||
|
||||
grep -v "TexParameter" $1/GL_EXT_texture_border_clamp > tmp
|
||||
mv tmp $1/GL_EXT_texture_border_clamp
|
||||
|
||||
# Filter GL_EXT_disjoint_timer_query
|
||||
|
||||
cat $1/GL_EXT_disjoint_timer_query | grep -v GetQueryObjecti64v | grep -v GetQueryObjectui64v > tmp
|
||||
mv tmp $1/GL_EXT_disjoint_timer_query
|
||||
|
||||
# Filter GL_NV_read_buffer_front
|
||||
|
||||
grep -v "ReadBufferNV" $1/GL_NV_read_buffer_front > tmp
|
||||
mv tmp $1/GL_NV_read_buffer_front
|
||||
|
||||
# Append GLVULKANPROCNV to GL_NV_draw_vulkan_image
|
||||
# Probably ought to be explicitly mentioned in the spec language
|
||||
|
||||
cat >> $1/GL_NV_draw_vulkan_image <<EOT
|
||||
typedef void (APIENTRY *GLVULKANPROCNV)(void)
|
||||
EOT
|
||||
|
||||
# GLU extensions are not relevant here
|
||||
rm -f $1/GL_GLU_*
|
||||
|
||||
# Not complete
|
||||
rm -f $1/GL_SGIX_color_type
|
||||
|
||||
# clean up
|
||||
rm -f $1/*.bak
|
||||
rm -f patterns $1/*.bak
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
import re
|
||||
|
||||
section = re.compile('^(Name|Name Strings?|Number|Dependencies|New Procedures and Functions|New Tokens|Additions to .*|Changes to .*|Modifications to .*|Add new Section .*)\s*$')
|
||||
section = re.compile('^(Name|Name Strings?|Contact|Notice|Number|Dependencies|Overview|Issues|IP Status|Status|Version|New Procedures and Functions|New Tokens|Additions to .*|Changes to .*|Modifications to .*|Add new Section .*)\s*$')
|
||||
token = re.compile('^\s+(([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*))?\s*$')
|
||||
match = [ 'Name', 'Name String', 'Contact', 'Notice', 'Name Strings', 'Version', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens']
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@ -16,17 +17,22 @@ if __name__ == '__main__':
|
||||
for i in args:
|
||||
lines = open(i).readlines()
|
||||
f = open(i,'w')
|
||||
|
||||
# Keep track of the current section as we iterate over the input
|
||||
current = ''
|
||||
for j in lines:
|
||||
|
||||
# Detect the start of a new section
|
||||
m = section.match(j)
|
||||
if m:
|
||||
current = m.group(1).strip()
|
||||
if current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens']:
|
||||
if current in match:
|
||||
print >>f, j,
|
||||
continue
|
||||
|
||||
if current=='New Tokens':
|
||||
if token.match(j):
|
||||
print >>f, j,
|
||||
elif current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions']:
|
||||
elif current in match:
|
||||
print >>f, j,
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -9,8 +10,8 @@
|
||||
my %regex = (
|
||||
extname => qr/^[A-Z][A-Za-z0-9_]+$/,
|
||||
exturl => qr/^http.+$/,
|
||||
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i,
|
||||
token => qr/^([A-Z][A-Z0-9_x]*)\s+((?:0x)?[0-9A-Fa-f]+|[A-Z][A-Z0-9_]*)$/,
|
||||
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.*)\)$/i,
|
||||
token => qr/^([A-Z][A-Z0-9_x]*)\s+((?:0x)?[0-9A-Fa-f]+(u(ll)?)?|[A-Z][A-Z0-9_]*)$/,
|
||||
type => qr/^typedef\s+(.+)$/,
|
||||
exact => qr/.*;$/,
|
||||
);
|
||||
@ -69,6 +70,7 @@ sub parse_ext($)
|
||||
my $filename = shift;
|
||||
my %functions = ();
|
||||
my %tokens = ();
|
||||
my @reuse = (); # Extensions to reuse
|
||||
my @types = ();
|
||||
my @exacts = ();
|
||||
my $extname = ""; # Full extension name GL_FOO_extension
|
||||
@ -77,9 +79,10 @@ sub parse_ext($)
|
||||
|
||||
open EXT, "<$filename" or return;
|
||||
|
||||
# As of GLEW 1.5.3 the first three lines _must_ be
|
||||
# As of GLEW 1.14.0 the first four lines _must_ be
|
||||
# the extension name, the URL and the GL extension
|
||||
# string (which might be different to the name)
|
||||
# string (which might be different to the name),
|
||||
# and the reused extensions
|
||||
#
|
||||
# For example GL_NV_geometry_program4 is available
|
||||
# iff GL_NV_gpu_program4 appears in the extension
|
||||
@ -94,6 +97,7 @@ sub parse_ext($)
|
||||
$extname = readline(*EXT);
|
||||
$exturl = readline(*EXT);
|
||||
$extstring = readline(*EXT);
|
||||
@reuse = split(" ", readline(*EXT));
|
||||
|
||||
chomp($extname);
|
||||
chomp($exturl);
|
||||
@ -132,7 +136,7 @@ sub parse_ext($)
|
||||
|
||||
close EXT;
|
||||
|
||||
return ($extname, $exturl, $extstring, \@types, \%tokens, \%functions, \@exacts);
|
||||
return ($extname, $exturl, $extstring, \@reuse, \@types, \%tokens, \%functions, \@exacts);
|
||||
}
|
||||
|
||||
sub output_tokens($$)
|
||||
@ -156,7 +160,11 @@ sub output_tokens($$)
|
||||
if (${$tbl}{$b} =~ /_/) {
|
||||
1
|
||||
} else {
|
||||
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
|
||||
if (hex ${$tbl}{$a} eq hex ${$tbl}{$b}) {
|
||||
$a cmp $b
|
||||
} else {
|
||||
hex ${$tbl}{$a} <=> hex ${$tbl}{$b}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -203,3 +211,14 @@ sub output_exacts($$)
|
||||
}
|
||||
}
|
||||
|
||||
sub output_reuse($$)
|
||||
{
|
||||
my ($tbl, $fnc) = @_;
|
||||
if (scalar @{$tbl})
|
||||
{
|
||||
local $, = "\n";
|
||||
print "\n";
|
||||
print map { &{$fnc}($_) } sort @{$tbl};
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
# function pointer declaration
|
||||
@ -29,7 +31,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
output_decls($functions, \&make_pfn_decl);
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
my @extlist = ();
|
||||
@ -19,11 +21,11 @@ our $type = shift;
|
||||
|
||||
if (@ARGV)
|
||||
{
|
||||
@extlist = @ARGV;
|
||||
@extlist = @ARGV;
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
print "GLboolean " . prefix_varname($extvar) . " = GL_FALSE;\n";
|
||||
|
48
auto/bin/make_enable_index.pl
Executable file
48
auto/bin/make_enable_index.pl
Executable file
@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
## This program is distributed under the terms and conditions of the GNU
|
||||
## General Public License Version 2 as published by the Free Software
|
||||
## Foundation or, at your option, any later version.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
##
|
||||
## Make Extension-enabled Index
|
||||
##
|
||||
|
||||
my @extlist = ();
|
||||
|
||||
if (@ARGV)
|
||||
{
|
||||
@extlist = @ARGV;
|
||||
|
||||
print "/* Detected in the extension string or strings */\n";
|
||||
print "static GLboolean _glewExtensionString[" . scalar @extlist . "];\n";
|
||||
|
||||
print "/* Detected via extension string or experimental mode */\n";
|
||||
print "static GLboolean* _glewExtensionEnabled[] = {\n";;
|
||||
|
||||
foreach my $ext (sort { basename($a) cmp basename($b) } @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
|
||||
parse_ext($ext);
|
||||
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
print " &__$extvar,\n";
|
||||
print "#endif\n";
|
||||
}
|
||||
|
||||
print " NULL\n};\n\n";
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
# token
|
||||
@ -52,7 +54,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
|
||||
make_separator($extname);
|
||||
print "#ifndef $extname\n#define $extname 1\n";
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -26,7 +28,7 @@ if (@ARGV)
|
||||
print "<table border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">\n";
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
$cur_group = $extname;
|
||||
$cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/;
|
||||
$extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/;
|
||||
|
41
auto/bin/make_index.pl
Executable file
41
auto/bin/make_index.pl
Executable file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
## This program is distributed under the terms and conditions of the GNU
|
||||
## General Public License Version 2 as published by the Free Software
|
||||
## Foundation or, at your option, any later version.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
##
|
||||
## Make Index
|
||||
##
|
||||
## Output sorted array of extension strings for indexing into extension
|
||||
## enable/disable flags. This provides a way to convert an extension string
|
||||
## into an integer index.
|
||||
##
|
||||
|
||||
my @extlist = ();
|
||||
|
||||
if (@ARGV)
|
||||
{
|
||||
@extlist = @ARGV;
|
||||
|
||||
foreach my $ext (sort { basename($a) cmp basename($b) } @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
|
||||
parse_ext($ext);
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
print " \"$extname\",\n";
|
||||
print "#endif\n";
|
||||
}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -18,7 +20,7 @@ do 'bin/make.pl';
|
||||
sub make_pfn_info($%)
|
||||
{
|
||||
my $name = $_[0];
|
||||
return " glewInfoFunc(\"$_[0]\", $name == NULL);";
|
||||
return " glewInfoFunc(fi, \"$_[0]\", $name == NULL);";
|
||||
}
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -32,7 +34,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
my $extpre = $extname;
|
||||
@ -42,13 +44,23 @@ if (@ARGV)
|
||||
#make_separator($extname);
|
||||
print "#ifdef $extname\n\n";
|
||||
print "static void _glewInfo_$extname (void)\n{\n";
|
||||
if ($extvar =~ /VERSION/)
|
||||
|
||||
if (! %$functions)
|
||||
{
|
||||
print " glewPrintExt(\"$extname\", $extvar, $extvar, $extvar);\n";
|
||||
print " ";
|
||||
}
|
||||
else
|
||||
{
|
||||
print " glewPrintExt(\"$extname\", $extvar, $extpre" .
|
||||
print " GLboolean fi = ";
|
||||
}
|
||||
|
||||
if ($extvar =~ /VERSION/)
|
||||
{
|
||||
print "glewPrintExt(\"$extname\", $extvar, $extvar, $extvar);\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "glewPrintExt(\"$extname\", $extvar, $extpre" .
|
||||
"ewIsSupported(\"$extname\"), $extpre" .
|
||||
"ewGetExtension(\"$extstring\"));\n";
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -38,7 +40,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
print " _glewInfo_$extname();\n";
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
@ -21,6 +23,11 @@ sub make_pfn_def_init($%)
|
||||
return " r = ((" . $_[0] . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress((const GLubyte*)\"" . $_[0] . "\")) == NULL) || r;";
|
||||
}
|
||||
|
||||
sub make_reuse_call($%)
|
||||
{
|
||||
return " r = _glewInit_" . $_[0] . "() || r;";
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
my @extlist = ();
|
||||
@ -34,22 +41,21 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) =
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
|
||||
parse_ext($ext);
|
||||
|
||||
#make_separator($extname);
|
||||
print "#ifdef $extname\n\n";
|
||||
my $extvar = $extname;
|
||||
my $extvardef = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
if (keys %$functions)
|
||||
if (keys %$functions or keys @$reuse)
|
||||
{
|
||||
print "static GLboolean _glewInit_$extname (" . $type .
|
||||
"EW_CONTEXT_ARG_DEF_INIT)\n{\n GLboolean r = GL_FALSE;\n";
|
||||
print "#ifdef $extname\n\n";
|
||||
print "static GLboolean _glewInit_$extname ()\n{\n GLboolean r = GL_FALSE;\n";
|
||||
output_reuse($reuse, \&make_reuse_call);
|
||||
output_decls($functions, \&make_pfn_def_init);
|
||||
print "\n return r;\n}\n\n";
|
||||
print "#endif /* $extname */\n\n";
|
||||
}
|
||||
#print "\nGLboolean " . prefix_varname($extvar) . " = GL_FALSE;\n\n";
|
||||
print "#endif /* $extname */\n\n";
|
||||
}
|
||||
}
|
||||
|
45
auto/bin/make_initd.pl
Executable file
45
auto/bin/make_initd.pl
Executable file
@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
## This program is distributed under the terms and conditions of the GNU
|
||||
## General Public License Version 2 as published by the Free Software
|
||||
## Foundation or, at your option, any later version.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
## Output declarations for the _glewInit_[extension] functions defined
|
||||
## by make_init.pl script. These are necessary for for initializers to
|
||||
## call each other, such as a core GL 3 context that depends on certain
|
||||
## extensions.
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
my @extlist = ();
|
||||
my %extensions = ();
|
||||
|
||||
our $type = shift;
|
||||
|
||||
if (@ARGV)
|
||||
{
|
||||
@extlist = @ARGV;
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
|
||||
parse_ext($ext);
|
||||
|
||||
#print "#ifdef $extname\n\n";
|
||||
if (keys %$functions)
|
||||
{
|
||||
print "static GLboolean _glewInit_$extname ();\n";
|
||||
}
|
||||
#print "#endif /* $extname */\n\n";
|
||||
}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -32,35 +34,42 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
|
||||
my $extpre = $extname;
|
||||
$extpre =~ s/^(W?)GL(X?).*$/\l$1gl\l$2ew/;
|
||||
$extpre =~ s/^(W?E?)GL(X?).*$/\l$1gl\l$2ew/;
|
||||
|
||||
#my $pextvar = prefix_varname($extvar);
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
|
||||
if (length($extstring))
|
||||
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||
{
|
||||
print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n";
|
||||
print "#ifdef $extname\n";
|
||||
}
|
||||
|
||||
if (length($extstring) && $extstring !~ /^GL_/)
|
||||
{
|
||||
print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n";
|
||||
}
|
||||
|
||||
if (keys %$functions)
|
||||
{
|
||||
if ($extname =~ /WGL_.*/)
|
||||
{
|
||||
print " if (glewExperimental || " . $extvar . "|| crippled) " . $extvar . "= !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
||||
print " if (glewExperimental || " . $extvar . "|| crippled) " . $extvar . "= !_glewInit_$extname();\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
||||
print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname();\n";
|
||||
}
|
||||
}
|
||||
print "#endif /* $extname */\n";
|
||||
|
||||
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||
{
|
||||
print "#endif /* $extname */\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
46
auto/bin/make_list2.pl
Executable file
46
auto/bin/make_list2.pl
Executable file
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
## This program is distributed under the terms and conditions of the GNU
|
||||
## General Public License Version 2 as published by the Free Software
|
||||
## Foundation or, at your option, any later version.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Extensions that depend on others can be enabled once we know
|
||||
# if the one it depends on, is enabled.
|
||||
|
||||
my @extlist = ();
|
||||
my %extensions = ();
|
||||
|
||||
if (@ARGV)
|
||||
{
|
||||
@extlist = @ARGV;
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
|
||||
if ($extname ne $extstring && length($extstring))
|
||||
{
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
|
||||
my $parent = $extstring;
|
||||
$parent =~ s/GL(X*)_/GL$1EW_/;
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
print " $extvar = $parent;\n";
|
||||
print "#endif /* $extname */\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
my @extlist = ();
|
||||
@ -22,13 +24,13 @@ if (@ARGV)
|
||||
my $curexttype = "";
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my $exttype = $extname;
|
||||
$exttype =~ s/(W*?)GL(X*?)_(.*?_)(.*)/$3/;
|
||||
$exttype =~ s/(W?E?)GL(X?)_(.*?_)(.*)/$3/;
|
||||
my $extrem = $extname;
|
||||
$extrem =~ s/(W*?)GL(X*?)_(.*?_)(.*)/$4/;
|
||||
$extrem =~ s/(W?E?)GL(X?)_(.*?_)(.*)/$4/;
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/(W*)GL(X*)_/$1GL$2EW_/;
|
||||
$extvar =~ s/(W?E?)GL(X?)_/$1GL$2EW_/;
|
||||
if(!($exttype =~ $curexttype))
|
||||
{
|
||||
if(length($curexttype) > 0)
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
# function pointer declaration
|
||||
@ -30,7 +32,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
output_decls($functions, \&make_pfn_decl);
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -10,6 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib '.';
|
||||
do 'bin/make.pl';
|
||||
|
||||
my @extlist = ();
|
||||
@ -23,7 +25,7 @@ if (@ARGV)
|
||||
|
||||
foreach my $ext (sort @extlist)
|
||||
{
|
||||
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
||||
my $extvar = $extname;
|
||||
$extvar =~ s/GL(X*)_/GL$1EW_/;
|
||||
print $export . " GLboolean " . prefix_varname($extvar) . ";\n";
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -20,7 +21,7 @@ my @sections = (
|
||||
"Name",
|
||||
"Name Strings?",
|
||||
"New Procedures and Functions",
|
||||
"New Tokens",
|
||||
"New Tokens.*", # Optional (GL/WGL/GLX/...) suffix
|
||||
"Additions to Chapter.*",
|
||||
);
|
||||
|
||||
@ -69,6 +70,10 @@ my %typemap = (
|
||||
uint64 => "GLuint64",
|
||||
sync => "GLsync",
|
||||
|
||||
# GL_EXT_EGL_image_storage
|
||||
|
||||
eglImageOES => "GLeglImageOES",
|
||||
|
||||
# AMD_debug_output
|
||||
|
||||
DEBUGPROCAMD => "GLDEBUGPROCAMD",
|
||||
@ -81,6 +86,8 @@ my %typemap = (
|
||||
|
||||
DEBUGPROC => "GLDEBUGPROC",
|
||||
|
||||
VULKANPROCNV => "GLVULKANPROCNV",
|
||||
|
||||
vdpauSurfaceNV => "GLvdpauSurfaceNV",
|
||||
|
||||
# GLX 1.3 defines new types which might not be available at compile time
|
||||
@ -107,7 +114,7 @@ my %taboo_tokens = (
|
||||
);
|
||||
|
||||
# list of function definitions to be ignored, unless they are being defined in
|
||||
# the given spec. This is an ugly hack arround the fact that people writing
|
||||
# the given spec. This is an ugly hack around the fact that people writing
|
||||
# spec files seem to shut down all brain activity while they are at this task.
|
||||
#
|
||||
# This will be moved to its own file eventually.
|
||||
@ -135,6 +142,14 @@ my %fnc_ignore_list = (
|
||||
"ProgramLocalParameter4fARB" => "ARB_vertex_program",
|
||||
"ProgramLocalParameter4fvARB" => "ARB_vertex_program",
|
||||
"ProgramStringARB" => "ARB_vertex_program",
|
||||
"EGLImageTargetTexture2DOES" => "OES_EGL_image",
|
||||
"FramebufferTextureOES" => "GL_OES_geometry_shader",
|
||||
"PatchParameteriOES" => "GL_OES_tessellation_shader",
|
||||
"PointSizePointerOES" => "GL_OES_point_size_array",
|
||||
"LockArraysEXT" => "EXT_compiled_vertex_array",
|
||||
"UnlockArraysEXT" => "EXT_compiled_vertex_array",
|
||||
"CoverageMaskNV" => "NV_coverage_sample",
|
||||
"CoverageOperationNV" => "NV_coverage_sample",
|
||||
"glXCreateContextAttribsARB" => "ARB_create_context_profile",
|
||||
"wglCreateContextAttribsARB" => "WGL_ARB_create_context_profile",
|
||||
);
|
||||
@ -143,11 +158,11 @@ my %regex = (
|
||||
eofnc => qr/(?:\);?$|^$)/, # )$ | );$ | ^$
|
||||
extname => qr/^[A-Z][A-Za-z0-9_]+$/,
|
||||
none => qr/^\(none\)$/,
|
||||
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i,
|
||||
prefix => qr/^(?:[aw]?gl|glX)/, # gl | agl | wgl | glX
|
||||
tprefix => qr/^(?:[AW]?GL|GLX)_/, # GL_ | AGL_ | WGL_ | GLX_
|
||||
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.*)\)$/i,
|
||||
prefix => qr/^(?:[aw]?gl|glX|egl)/, # gl | agl | wgl | glX
|
||||
tprefix => qr/^(?:[AW]?GL|GLX|EGL)_/, # GL_ | AGL_ | WGL_ | GLX_
|
||||
section => compile_regex('^(', join('|', @sections), ')$'), # sections in spec
|
||||
token => qr/^([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*)$/, # define tokens
|
||||
token => qr/^([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-Fa-f]+(u(ll)?)?)(|\s[^\?]*)$/, # define tokens
|
||||
types => compile_regex('\b(', join('|', keys %typemap), ')\b'), # var types
|
||||
voidtype => compile_regex('\b(', keys %voidtypemap, ')\b '), # void type
|
||||
);
|
||||
@ -170,7 +185,7 @@ sub normalize_prototype
|
||||
return $_;
|
||||
}
|
||||
|
||||
# Ugly hack to work arround the fact that functions are declared in more
|
||||
# Ugly hack to work around the fact that functions are declared in more
|
||||
# than one spec file.
|
||||
sub ignore_function($$)
|
||||
{
|
||||
@ -243,6 +258,10 @@ sub parse_spec($)
|
||||
$parms =~ s/$regex{voidtype}/$voidtypemap{$1}/og;
|
||||
$parms =~ s/GLvoid/void/og;
|
||||
$parms =~ s/ void\* / void */og;
|
||||
if ($parms eq "")
|
||||
{
|
||||
$parms = "void"; # NVX_progress_fence and others
|
||||
}
|
||||
}
|
||||
# add to functions hash
|
||||
$functions{$name} = {
|
||||
@ -309,7 +328,7 @@ my @speclist = ();
|
||||
my %extensions = ();
|
||||
|
||||
my $ext_dir = shift;
|
||||
my $reg_http = "http://www.opengl.org/registry/specs/";
|
||||
my $reg_http = "https://www.khronos.org/registry/OpenGL/extensions/";
|
||||
|
||||
# Take command line arguments or read list from file
|
||||
if (@ARGV)
|
||||
@ -330,9 +349,10 @@ foreach my $spec (sort @speclist)
|
||||
open EXT, ">$info";
|
||||
print EXT $ext . "\n"; # Extension name
|
||||
my $specname = $spec;
|
||||
$specname =~ s/registry\/gl\/specs\///;
|
||||
$specname =~ s/OpenGL-Registry\/extensions\///;
|
||||
print EXT $reg_http . $specname . "\n"; # Extension info URL
|
||||
print EXT $ext . "\n"; # Extension string
|
||||
print EXT "\n"; # Resuses nothing by default
|
||||
|
||||
my $prefix = $ext;
|
||||
$prefix =~ s/^(.+?)(_.+)$/$1/;
|
||||
@ -350,7 +370,24 @@ foreach my $spec (sort @speclist)
|
||||
if (${$tokens}{$b} =~ /_/) {
|
||||
1
|
||||
} else {
|
||||
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
|
||||
if (${$tokens}{$a} =~ /u(ll)?$/) {
|
||||
if (${$tokens}{$b} =~ /u(ll)?$/) {
|
||||
$a cmp $b
|
||||
} else {
|
||||
-1
|
||||
}
|
||||
} else {
|
||||
if (${$tokens}{$b} =~ /u(ll)?$/) {
|
||||
1
|
||||
} else {
|
||||
if (hex ${$tokens}{$a} eq hex ${$tokens}{$b})
|
||||
{
|
||||
$a cmp $b
|
||||
} else {
|
||||
hex ${$tokens}{$a} <=> hex ${$tokens}{$b}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
145
auto/bin/parse_xml.py
Executable file
145
auto/bin/parse_xml.py
Executable file
@ -0,0 +1,145 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import re
|
||||
import sys
|
||||
from xml.dom.minidom import parse, Node
|
||||
|
||||
#
|
||||
# DOM traversal utility functions
|
||||
#
|
||||
|
||||
def findChildren(node, path):
|
||||
result = []
|
||||
if len(path)==1:
|
||||
for i in node.childNodes:
|
||||
if i.nodeType==Node.ELEMENT_NODE:
|
||||
if i.tagName==path[0]:
|
||||
result.append(i)
|
||||
else:
|
||||
for i in node.childNodes:
|
||||
if i.nodeType==Node.ELEMENT_NODE:
|
||||
if i.tagName==path[0]:
|
||||
result.extend(findChildren(i, path[1:]))
|
||||
return result
|
||||
|
||||
def findData(node, path):
|
||||
return [ i.firstChild.data for i in findChildren(node, path) ]
|
||||
|
||||
isPointer = re.compile('(.*)([ ]+)([*]+)')
|
||||
|
||||
def findParams(node):
|
||||
n = findData(node, ['name'])[0]
|
||||
t = ''
|
||||
for i in node.childNodes:
|
||||
if i.nodeType==Node.TEXT_NODE:
|
||||
t += i.data
|
||||
if i.nodeType==Node.ELEMENT_NODE and i.tagName=='ptype':
|
||||
t += i.firstChild.data
|
||||
|
||||
t.strip()
|
||||
m = isPointer.match(t)
|
||||
if m:
|
||||
t = ('%s%s'%(m.group(1), m.group(3))).strip()
|
||||
return ( t, n.strip())
|
||||
|
||||
def findEnums(dom):
|
||||
return {i.getAttribute('name'): i.getAttribute('value') for i in findChildren(dom, [ 'registry', 'enums', 'enum' ])}
|
||||
|
||||
def findCommands(dom):
|
||||
ret = {}
|
||||
for i in findChildren(dom, [ 'registry', 'commands', 'command' ]):
|
||||
r,n = findParams(findChildren(i, ['proto'])[0])
|
||||
p = [ findParams(j) for j in findChildren(i, ['param'])]
|
||||
ret[n] = (r, p)
|
||||
return ret
|
||||
|
||||
def findFeatures(dom):
|
||||
ret = {}
|
||||
for i in findChildren(dom, [ 'registry', 'feature' ]):
|
||||
n = i.getAttribute('name')
|
||||
e = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'enum' ])]
|
||||
c = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'command' ])]
|
||||
ret[n] = (e,c)
|
||||
return ret
|
||||
|
||||
def findExtensions(dom):
|
||||
ret = {}
|
||||
for i in findChildren(dom, [ 'registry', 'extensions', 'extension' ]):
|
||||
n = i.getAttribute('name')
|
||||
e = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'enum' ])]
|
||||
c = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'command' ])]
|
||||
ret[n] = (e,c)
|
||||
return ret
|
||||
|
||||
def findApi(dom, name):
|
||||
enums = findEnums(dom)
|
||||
commands = findCommands(dom)
|
||||
features = findFeatures(dom)
|
||||
extensions = findExtensions(dom)
|
||||
return (enums, commands, features, extensions)
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
isWGL = re.compile('WGL_([A-Z0-9]+)_.*')
|
||||
|
||||
def writeExtension(f, name, extension, enums, commands):
|
||||
f.write(('%s\n'%name).encode())
|
||||
|
||||
url = 'https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf'
|
||||
|
||||
m = isWGL.match(name)
|
||||
if m:
|
||||
url = 'https://www.khronos.org/registry/OpenGL/extensions/%s/%s.txt'%(m.group(1), name)
|
||||
|
||||
f.write(('%s\n'%(url)).encode())
|
||||
|
||||
if name.find('_VERSION_')==-1:
|
||||
f.write(('%s\n'%name).encode())
|
||||
else:
|
||||
f.write('\n'.encode())
|
||||
f.write('\n'.encode())
|
||||
|
||||
enums = [ (j, enums[j]) for j in extension[0] ]
|
||||
for e in sorted(enums, key=lambda i: i[1]):
|
||||
f.write(('\t%s %s\n'%(e[0], e[1])).encode())
|
||||
|
||||
commands = [ (j, commands[j]) for j in extension[1] ]
|
||||
for c in sorted(commands):
|
||||
params = ', '.join( [ '%s %s'%(j[0].strip(), j[1].strip()) for j in c[1][1] ] )
|
||||
if len(params)==0:
|
||||
params = 'void'
|
||||
f.write(('\t%s %s (%s)\n'%(c[1][0].strip(), c[0].strip(), params)).encode())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
from argparse import ArgumentParser
|
||||
import os
|
||||
|
||||
parser = ArgumentParser(description='usage: %prog [options] [XML specs...]')
|
||||
parser.add_argument("--core", dest="core", help="location for core outputs", default='')
|
||||
parser.add_argument("--api", dest="name", help="API name: egl, wgl, glx, etc", default='')
|
||||
parser.add_argument("--extensions", dest="extensions", help="location for extensions outputs", default='')
|
||||
|
||||
(options, args) = parser.parse_known_args()
|
||||
options = vars(options)
|
||||
|
||||
for i in args:
|
||||
|
||||
dom = parse(i)
|
||||
api = findApi(dom, options['name'])
|
||||
|
||||
print('Found {} enums, {} commands, {} features and {} extensions.'.format(
|
||||
len(api[0]), len(api[1]), len(api[2]), len(api[3])))
|
||||
|
||||
if len(options['core']):
|
||||
for i in api[2].keys():
|
||||
with open(os.path.join(options['core'], i), 'wb') as f:
|
||||
writeExtension(f, i, api[2][i], api[0], api[1])
|
||||
|
||||
if len(options['extensions']):
|
||||
for i in api[3].keys():
|
||||
with open(os.path.join(options['extensions'], i), 'wb') as f:
|
||||
writeExtension(f, i, api[3][i], api[0], api[1])
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
##
|
||||
## Copyright (C) 2008-2024, Nigel Stewart <nigels[]nigels com>
|
||||
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
||||
##
|
||||
@ -19,7 +20,7 @@ if [ ! -d $1 ] ; then
|
||||
mkdir -p $1
|
||||
|
||||
# Parse each of the extensions in the registry
|
||||
find $2 -name doc -type d -prune -o -name \*.txt -print | \
|
||||
find $2 -name doc -type d -prune -o -name "*.txt" -print | \
|
||||
grep -v -f $3 | sort | bin/parse_spec.pl $1
|
||||
|
||||
fi
|
||||
|
@ -4,11 +4,25 @@ EXT/vertex_array_set.alt.txt
|
||||
EXT/vertex_array_set.txt
|
||||
EXT/nurbs_tessellator.txt
|
||||
EXT/object_space_tess.txt
|
||||
MESA/MESA_sampler_objects.txt
|
||||
SGI/filter4_parameters.txt
|
||||
SGIS/texture_color_mask.txt
|
||||
SGIX/dmbuffer.txt
|
||||
SGIX/instruments.txt
|
||||
SGIX/video_source.txt
|
||||
SGIX/hyperpipe_group.txt
|
||||
SGIS/SGIS_texture_color_mask.txt
|
||||
SGIX/SGIX_dmbuffer.txt
|
||||
SGIX/SGIX_instruments.txt
|
||||
SGIX/SGIX_video_source.txt
|
||||
SGIX/SGIX_hyperpipe_group.txt
|
||||
OES/OES_fixed_point.txt
|
||||
OES/OES_query_matrix.txt
|
||||
IMG/IMG_user_clip_plane.txt
|
||||
NV/NV_query_resource.txt
|
||||
NV/EGL_NV_coverage_sample.txt
|
||||
OES/OES_draw_elements_base_vertex.txt
|
||||
OES/OES_viewport_array.txt
|
||||
OES/EGL_KHR_fence_sync.txt
|
||||
EXT/EXT_texenv_op.txt
|
||||
EXT/EXT_transform_feedback2.txt
|
||||
EXT/EXT_vertex_array_set.txt
|
||||
EXT/EXT_separate_shader_objects.gles.txt
|
||||
IGLOO/IGLOO_swap_triangle_strip_vertex_pointerXXX.txt
|
||||
IGLOO/IGLOO_viewport_offsetXXX.txt
|
||||
IGLOO/IGLOO_toggle_color_and_lightXXX.txt
|
||||
|
7
auto/core/gl/EGL_EXT_device_base
Normal file
7
auto/core/gl/EGL_EXT_device_base
Normal file
@ -0,0 +1,7 @@
|
||||
EGL_EXT_device_base
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
EGL_EXT_device_base
|
||||
|
||||
EGL_BAD_DEVICE_EXT 0x322B
|
||||
EGL_DEVICE_EXT 0x322C
|
||||
EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
|
7
auto/core/gl/EGL_KHR_fence_sync
Normal file
7
auto/core/gl/EGL_KHR_fence_sync
Normal file
@ -0,0 +1,7 @@
|
||||
EGL_KHR_fence_sync
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
EGL_KHR_fence_sync
|
||||
|
||||
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
|
||||
EGL_SYNC_CONDITION_KHR 0x30F8
|
||||
EGL_SYNC_FENCE_KHR 0x30F9
|
6
auto/core/gl/EGL_KHR_image_base
Normal file
6
auto/core/gl/EGL_KHR_image_base
Normal file
@ -0,0 +1,6 @@
|
||||
EGL_KHR_image_base
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
EGL_KHR_image_base
|
||||
|
||||
EGL_IMAGE_PRESERVED_KHR 0x30D2
|
||||
EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0)
|
27
auto/core/gl/EGL_KHR_lock_surface3
Normal file
27
auto/core/gl/EGL_KHR_lock_surface3
Normal file
@ -0,0 +1,27 @@
|
||||
EGL_KHR_lock_surface3
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
EGL_KHR_lock_surface3
|
||||
|
||||
EGL_READ_SURFACE_BIT_KHR 0x0001
|
||||
EGL_WRITE_SURFACE_BIT_KHR 0x0002
|
||||
EGL_LOCK_SURFACE_BIT_KHR 0x0080
|
||||
EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
|
||||
EGL_MATCH_FORMAT_KHR 0x3043
|
||||
EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
|
||||
EGL_FORMAT_RGB_565_KHR 0x30C1
|
||||
EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
|
||||
EGL_FORMAT_RGBA_8888_KHR 0x30C3
|
||||
EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
|
||||
EGL_LOCK_USAGE_HINT_KHR 0x30C5
|
||||
EGL_BITMAP_POINTER_KHR 0x30C6
|
||||
EGL_BITMAP_PITCH_KHR 0x30C7
|
||||
EGL_BITMAP_ORIGIN_KHR 0x30C8
|
||||
EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
|
||||
EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
|
||||
EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
|
||||
EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
|
||||
EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
|
||||
EGL_LOWER_LEFT_KHR 0x30CE
|
||||
EGL_UPPER_LEFT_KHR 0x30CF
|
||||
EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
|
||||
EGLBoolean eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value)
|
86
auto/core/gl/EGL_VERSION_1_0
Normal file
86
auto/core/gl/EGL_VERSION_1_0
Normal file
@ -0,0 +1,86 @@
|
||||
EGL_VERSION_1_0
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_FALSE 0
|
||||
EGL_PBUFFER_BIT 0x0001
|
||||
EGL_PIXMAP_BIT 0x0002
|
||||
EGL_WINDOW_BIT 0x0004
|
||||
EGL_SUCCESS 0x3000
|
||||
EGL_NOT_INITIALIZED 0x3001
|
||||
EGL_BAD_ACCESS 0x3002
|
||||
EGL_BAD_ALLOC 0x3003
|
||||
EGL_BAD_ATTRIBUTE 0x3004
|
||||
EGL_BAD_CONFIG 0x3005
|
||||
EGL_BAD_CONTEXT 0x3006
|
||||
EGL_BAD_CURRENT_SURFACE 0x3007
|
||||
EGL_BAD_DISPLAY 0x3008
|
||||
EGL_BAD_MATCH 0x3009
|
||||
EGL_BAD_NATIVE_PIXMAP 0x300A
|
||||
EGL_BAD_NATIVE_WINDOW 0x300B
|
||||
EGL_BAD_PARAMETER 0x300C
|
||||
EGL_BAD_SURFACE 0x300D
|
||||
EGL_BUFFER_SIZE 0x3020
|
||||
EGL_ALPHA_SIZE 0x3021
|
||||
EGL_BLUE_SIZE 0x3022
|
||||
EGL_GREEN_SIZE 0x3023
|
||||
EGL_RED_SIZE 0x3024
|
||||
EGL_DEPTH_SIZE 0x3025
|
||||
EGL_STENCIL_SIZE 0x3026
|
||||
EGL_CONFIG_CAVEAT 0x3027
|
||||
EGL_CONFIG_ID 0x3028
|
||||
EGL_LEVEL 0x3029
|
||||
EGL_MAX_PBUFFER_HEIGHT 0x302A
|
||||
EGL_MAX_PBUFFER_PIXELS 0x302B
|
||||
EGL_MAX_PBUFFER_WIDTH 0x302C
|
||||
EGL_NATIVE_RENDERABLE 0x302D
|
||||
EGL_NATIVE_VISUAL_ID 0x302E
|
||||
EGL_NATIVE_VISUAL_TYPE 0x302F
|
||||
EGL_SAMPLES 0x3031
|
||||
EGL_SAMPLE_BUFFERS 0x3032
|
||||
EGL_SURFACE_TYPE 0x3033
|
||||
EGL_TRANSPARENT_TYPE 0x3034
|
||||
EGL_TRANSPARENT_BLUE_VALUE 0x3035
|
||||
EGL_TRANSPARENT_GREEN_VALUE 0x3036
|
||||
EGL_TRANSPARENT_RED_VALUE 0x3037
|
||||
EGL_NONE 0x3038
|
||||
EGL_SLOW_CONFIG 0x3050
|
||||
EGL_NON_CONFORMANT_CONFIG 0x3051
|
||||
EGL_TRANSPARENT_RGB 0x3052
|
||||
EGL_VENDOR 0x3053
|
||||
EGL_VERSION 0x3054
|
||||
EGL_EXTENSIONS 0x3055
|
||||
EGL_HEIGHT 0x3056
|
||||
EGL_WIDTH 0x3057
|
||||
EGL_LARGEST_PBUFFER 0x3058
|
||||
EGL_DRAW 0x3059
|
||||
EGL_READ 0x305A
|
||||
EGL_CORE_NATIVE_ENGINE 0x305B
|
||||
EGL_TRUE 1
|
||||
EGL_NO_CONTEXT EGL_CAST(EGLContext,0)
|
||||
EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0)
|
||||
EGL_NO_SURFACE EGL_CAST(EGLSurface,0)
|
||||
EGL_DONT_CARE EGL_CAST(EGLint,-1)
|
||||
EGLBoolean eglChooseConfig (EGLDisplay dpy, const EGLint * attrib_list, EGLConfig * configs, EGLint config_size, EGLint * num_config)
|
||||
EGLBoolean eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
|
||||
EGLContext eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint * attrib_list)
|
||||
EGLSurface eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint * attrib_list)
|
||||
EGLSurface eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint * attrib_list)
|
||||
EGLSurface eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint * attrib_list)
|
||||
EGLBoolean eglDestroyContext (EGLDisplay dpy, EGLContext ctx)
|
||||
EGLBoolean eglDestroySurface (EGLDisplay dpy, EGLSurface surface)
|
||||
EGLBoolean eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint * value)
|
||||
EGLBoolean eglGetConfigs (EGLDisplay dpy, EGLConfig * configs, EGLint config_size, EGLint * num_config)
|
||||
EGLDisplay eglGetCurrentDisplay ( void )
|
||||
EGLSurface eglGetCurrentSurface (EGLint readdraw)
|
||||
EGLDisplay eglGetDisplay (EGLNativeDisplayType display_id)
|
||||
EGLint eglGetError ( void )
|
||||
EGLBoolean eglInitialize (EGLDisplay dpy, EGLint * major, EGLint * minor)
|
||||
EGLBoolean eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
|
||||
EGLBoolean eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint * value)
|
||||
const char * eglQueryString (EGLDisplay dpy, EGLint name)
|
||||
EGLBoolean eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint * value)
|
||||
EGLBoolean eglSwapBuffers (EGLDisplay dpy, EGLSurface surface)
|
||||
EGLBoolean eglTerminate (EGLDisplay dpy)
|
||||
EGLBoolean eglWaitGL ( void )
|
||||
EGLBoolean eglWaitNative (EGLint engine)
|
22
auto/core/gl/EGL_VERSION_1_1
Normal file
22
auto/core/gl/EGL_VERSION_1_1
Normal file
@ -0,0 +1,22 @@
|
||||
EGL_VERSION_1_1
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_CONTEXT_LOST 0x300E
|
||||
EGL_BIND_TO_TEXTURE_RGB 0x3039
|
||||
EGL_BIND_TO_TEXTURE_RGBA 0x303A
|
||||
EGL_MIN_SWAP_INTERVAL 0x303B
|
||||
EGL_MAX_SWAP_INTERVAL 0x303C
|
||||
EGL_NO_TEXTURE 0x305C
|
||||
EGL_TEXTURE_RGB 0x305D
|
||||
EGL_TEXTURE_RGBA 0x305E
|
||||
EGL_TEXTURE_2D 0x305F
|
||||
EGL_TEXTURE_FORMAT 0x3080
|
||||
EGL_TEXTURE_TARGET 0x3081
|
||||
EGL_MIPMAP_TEXTURE 0x3082
|
||||
EGL_MIPMAP_LEVEL 0x3083
|
||||
EGL_BACK_BUFFER 0x3084
|
||||
EGLBoolean eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer)
|
||||
EGLBoolean eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer)
|
||||
EGLBoolean eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
|
||||
EGLBoolean eglSwapInterval (EGLDisplay dpy, EGLint interval)
|
38
auto/core/gl/EGL_VERSION_1_2
Normal file
38
auto/core/gl/EGL_VERSION_1_2
Normal file
@ -0,0 +1,38 @@
|
||||
EGL_VERSION_1_2
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_OPENGL_ES_BIT 0x0001
|
||||
EGL_OPENVG_BIT 0x0002
|
||||
EGL_LUMINANCE_SIZE 0x303D
|
||||
EGL_ALPHA_MASK_SIZE 0x303E
|
||||
EGL_COLOR_BUFFER_TYPE 0x303F
|
||||
EGL_RENDERABLE_TYPE 0x3040
|
||||
EGL_SINGLE_BUFFER 0x3085
|
||||
EGL_RENDER_BUFFER 0x3086
|
||||
EGL_COLORSPACE 0x3087
|
||||
EGL_ALPHA_FORMAT 0x3088
|
||||
EGL_COLORSPACE_sRGB 0x3089
|
||||
EGL_COLORSPACE_LINEAR 0x308A
|
||||
EGL_ALPHA_FORMAT_NONPRE 0x308B
|
||||
EGL_ALPHA_FORMAT_PRE 0x308C
|
||||
EGL_CLIENT_APIS 0x308D
|
||||
EGL_RGB_BUFFER 0x308E
|
||||
EGL_LUMINANCE_BUFFER 0x308F
|
||||
EGL_HORIZONTAL_RESOLUTION 0x3090
|
||||
EGL_VERTICAL_RESOLUTION 0x3091
|
||||
EGL_PIXEL_ASPECT_RATIO 0x3092
|
||||
EGL_SWAP_BEHAVIOR 0x3093
|
||||
EGL_BUFFER_PRESERVED 0x3094
|
||||
EGL_BUFFER_DESTROYED 0x3095
|
||||
EGL_OPENVG_IMAGE 0x3096
|
||||
EGL_CONTEXT_CLIENT_TYPE 0x3097
|
||||
EGL_OPENGL_ES_API 0x30A0
|
||||
EGL_OPENVG_API 0x30A1
|
||||
EGL_DISPLAY_SCALING 10000
|
||||
EGL_UNKNOWN EGL_CAST(EGLint,-1)
|
||||
EGLBoolean eglBindAPI (EGLenum api)
|
||||
EGLSurface eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list)
|
||||
EGLenum eglQueryAPI ( void )
|
||||
EGLBoolean eglReleaseThread ( void )
|
||||
EGLBoolean eglWaitClient ( void )
|
16
auto/core/gl/EGL_VERSION_1_3
Normal file
16
auto/core/gl/EGL_VERSION_1_3
Normal file
@ -0,0 +1,16 @@
|
||||
EGL_VERSION_1_3
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_OPENGL_ES2_BIT 0x0004
|
||||
EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
|
||||
EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
|
||||
EGL_MATCH_NATIVE_PIXMAP 0x3041
|
||||
EGL_CONFORMANT 0x3042
|
||||
EGL_VG_COLORSPACE 0x3087
|
||||
EGL_VG_ALPHA_FORMAT 0x3088
|
||||
EGL_VG_COLORSPACE_sRGB 0x3089
|
||||
EGL_VG_COLORSPACE_LINEAR 0x308A
|
||||
EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
|
||||
EGL_VG_ALPHA_FORMAT_PRE 0x308C
|
||||
EGL_CONTEXT_CLIENT_VERSION 0x3098
|
13
auto/core/gl/EGL_VERSION_1_4
Normal file
13
auto/core/gl/EGL_VERSION_1_4
Normal file
@ -0,0 +1,13 @@
|
||||
EGL_VERSION_1_4
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_OPENGL_BIT 0x0008
|
||||
EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
|
||||
EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
|
||||
EGL_MULTISAMPLE_RESOLVE 0x3099
|
||||
EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
|
||||
EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
|
||||
EGL_OPENGL_API 0x30A2
|
||||
EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0)
|
||||
EGLContext eglGetCurrentContext ( void )
|
59
auto/core/gl/EGL_VERSION_1_5
Normal file
59
auto/core/gl/EGL_VERSION_1_5
Normal file
@ -0,0 +1,59 @@
|
||||
EGL_VERSION_1_5
|
||||
https://www.khronos.org/registry/egl/specs/eglspec.1.5.pdf
|
||||
|
||||
|
||||
EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
|
||||
EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
|
||||
EGL_OPENGL_ES3_BIT 0x00000040
|
||||
EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
|
||||
EGL_GL_COLORSPACE_SRGB 0x3089
|
||||
EGL_GL_COLORSPACE_LINEAR 0x308A
|
||||
EGL_CONTEXT_MAJOR_VERSION 0x3098
|
||||
EGL_CL_EVENT_HANDLE 0x309C
|
||||
EGL_GL_COLORSPACE 0x309D
|
||||
EGL_GL_TEXTURE_2D 0x30B1
|
||||
EGL_GL_TEXTURE_3D 0x30B2
|
||||
EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
|
||||
EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
|
||||
EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
|
||||
EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
|
||||
EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
|
||||
EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
|
||||
EGL_GL_RENDERBUFFER 0x30B9
|
||||
EGL_GL_TEXTURE_LEVEL 0x30BC
|
||||
EGL_GL_TEXTURE_ZOFFSET 0x30BD
|
||||
EGL_IMAGE_PRESERVED 0x30D2
|
||||
EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
|
||||
EGL_SYNC_STATUS 0x30F1
|
||||
EGL_SIGNALED 0x30F2
|
||||
EGL_UNSIGNALED 0x30F3
|
||||
EGL_TIMEOUT_EXPIRED 0x30F5
|
||||
EGL_CONDITION_SATISFIED 0x30F6
|
||||
EGL_SYNC_TYPE 0x30F7
|
||||
EGL_SYNC_CONDITION 0x30F8
|
||||
EGL_SYNC_FENCE 0x30F9
|
||||
EGL_CONTEXT_MINOR_VERSION 0x30FB
|
||||
EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
|
||||
EGL_SYNC_CL_EVENT 0x30FE
|
||||
EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
|
||||
EGL_CONTEXT_OPENGL_DEBUG 0x31B0
|
||||
EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
|
||||
EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
|
||||
EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
|
||||
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
|
||||
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
|
||||
EGL_NO_RESET_NOTIFICATION 0x31BE
|
||||
EGL_LOSE_CONTEXT_ON_RESET 0x31BF
|
||||
EGL_FOREVER 0xFFFFFFFFFFFFFFFF
|
||||
EGL_NO_IMAGE EGL_CAST(EGLImage,0)
|
||||
EGL_NO_SYNC EGL_CAST(EGLSync,0)
|
||||
EGLint eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout)
|
||||
EGLImage eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list)
|
||||
EGLSurface eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list)
|
||||
EGLSurface eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list)
|
||||
EGLSync eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list)
|
||||
EGLBoolean eglDestroyImage (EGLDisplay dpy, EGLImage image)
|
||||
EGLBoolean eglDestroySync (EGLDisplay dpy, EGLSync sync)
|
||||
EGLDisplay eglGetPlatformDisplay (EGLenum platform, void * native_display, const EGLAttrib * attrib_list)
|
||||
EGLBoolean eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value)
|
||||
EGLBoolean eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags)
|
@ -1,22 +0,0 @@
|
||||
GLX_AMD_gpu_association
|
||||
http://www.opengl.org/registry/specs/AMD/glx_gpu_association.txt
|
||||
GLX_AMD_gpu_association
|
||||
GLX_GPU_VENDOR_AMD 0x1F00
|
||||
GLX_GPU_RENDERER_STRING_AMD 0x1F01
|
||||
GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
|
||||
GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
|
||||
GLX_GPU_RAM_AMD 0x21A3
|
||||
GLX_GPU_CLOCK_AMD 0x21A4
|
||||
GLX_GPU_NUM_PIPES_AMD 0x21A5
|
||||
GLX_GPU_NUM_SIMD_AMD 0x21A6
|
||||
GLX_GPU_NUM_RB_AMD 0x21A7
|
||||
GLX_GPU_NUM_SPI_AMD 0x21A8
|
||||
void glXBlitContextFramebufferAMD (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
|
||||
GLXContext glXCreateAssociatedContextAMD (unsigned int id, GLXContext share_list)
|
||||
GLXContext glXCreateAssociatedContextAttribsAMD (unsigned int id, GLXContext share_context, const int* attribList)
|
||||
Bool glXDeleteAssociatedContextAMD (GLXContext ctx)
|
||||
unsigned int glXGetContextGPUIDAMD (GLXContext ctx)
|
||||
GLXContext glXGetCurrentAssociatedContextAMD (void)
|
||||
unsigned int glXGetGPUIDsAMD (unsigned int maxCount, unsigned int* ids)
|
||||
int glXGetGPUInfoAMD (unsigned int id, int property, GLenum dataType, unsigned int size, void* data)
|
||||
Bool glXMakeAssociatedContextCurrentAMD (GLXContext ctx)
|
@ -1,4 +1,5 @@
|
||||
GLX_ARB_get_proc_address
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/ARB/get_proc_address.txt
|
||||
GLX_ARB_get_proc_address
|
||||
|
||||
extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void);
|
||||
|
@ -1,4 +1,5 @@
|
||||
GLX_ATI_pixel_format_float
|
||||
|
||||
GLX_ATI_pixel_format_float
|
||||
|
||||
GLX_RGBA_FLOAT_ATI_BIT 0x00000100
|
||||
|
@ -1,6 +1,7 @@
|
||||
GLX_ATI_render_texture
|
||||
|
||||
GLX_ATI_render_texture
|
||||
|
||||
GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
|
||||
GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
|
||||
GLX_TEXTURE_FORMAT_ATI 0x9802
|
||||
|
@ -1,4 +0,0 @@
|
||||
GLX_EXT_create_context_es2_profile
|
||||
http://www.opengl.org/registry/specs/EXT/glx_create_context_es2_profile.txt
|
||||
GLX_EXT_create_context_es2_profile
|
||||
GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
|
@ -1,4 +0,0 @@
|
||||
GLX_EXT_create_context_es_profile
|
||||
http://www.opengl.org/registry/specs/EXT/glx_create_context_es_profile.txt
|
||||
GLX_EXT_create_context_es_profile
|
||||
GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
|
@ -1,5 +0,0 @@
|
||||
GLX_EXT_fbconfig_packed_float
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_packed_float.txt
|
||||
GLX_EXT_fbconfig_packed_float
|
||||
GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
|
||||
GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
|
@ -1,4 +0,0 @@
|
||||
GLX_EXT_framebuffer_sRGB
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_sRGB.txt
|
||||
GLX_EXT_framebuffer_sRGB
|
||||
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
|
4
auto/core/gl/GLX_EXT_scene_marker
Normal file
4
auto/core/gl/GLX_EXT_scene_marker
Normal file
@ -0,0 +1,4 @@
|
||||
GLX_EXT_scene_marker
|
||||
https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_scene_marker.txt
|
||||
GLX_EXT_scene_marker
|
||||
|
@ -1,5 +0,0 @@
|
||||
GLX_MESA_swap_control
|
||||
http://cgit.freedesktop.org/mesa/mesa/plain/docs/MESA_swap_control.spec
|
||||
GLX_MESA_swap_control
|
||||
int glXGetSwapIntervalMESA (void)
|
||||
int glXSwapIntervalMESA (unsigned int interval)
|
@ -1,4 +0,0 @@
|
||||
GLX_NV_float_buffer
|
||||
http://cvs1.nvidia.com/inc/GL/glxtokens.h
|
||||
GLX_NV_float_buffer
|
||||
GLX_FLOAT_COMPONENTS_NV 0x20B0
|
@ -1,5 +1,6 @@
|
||||
GLX_NV_vertex_array_range
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_array_range.txt
|
||||
GLX_NV_vertex_array_range
|
||||
|
||||
void * glXAllocateMemoryNV (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority)
|
||||
void glXFreeMemoryNV (void *pointer)
|
||||
|
4
auto/core/gl/GLX_SGIS_color_range
Normal file
4
auto/core/gl/GLX_SGIS_color_range
Normal file
@ -0,0 +1,4 @@
|
||||
GLX_SGIS_color_range
|
||||
https://www.khronos.org/registry/OpenGL/extensions/SGIS/GLX_SGIS_color_range.txt
|
||||
GLX_SGIS_color_range
|
||||
|
@ -1,5 +0,0 @@
|
||||
GLX_SGIS_shared_multisample
|
||||
|
||||
GLX_SGIS_shared_multisample
|
||||
GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
|
||||
GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
|
@ -1,6 +1,7 @@
|
||||
GLX_SGIX_hyperpipe
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/hyperpipe_group.txt
|
||||
GLX_SGIX_hyperpipe
|
||||
|
||||
GLX_HYPERPIPE_ID_SGIX 0x8030
|
||||
GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
|
||||
GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
|
||||
|
@ -1,5 +0,0 @@
|
||||
GLX_SGIX_swap_barrier
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/swap_barrier.txt
|
||||
GLX_SGIX_swap_barrier
|
||||
void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier)
|
||||
Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max)
|
@ -1,4 +0,0 @@
|
||||
GLX_SGIX_swap_group
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/swap_group.txt
|
||||
GLX_SGIX_swap_group
|
||||
void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member)
|
@ -1,5 +0,0 @@
|
||||
GLX_SGI_video_sync
|
||||
http://www.opengl.org/registry/specs/SGI/video_sync.txt
|
||||
GLX_SGI_video_sync
|
||||
int glXGetVideoSyncSGI (unsigned int* count)
|
||||
int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int* count)
|
@ -1,6 +1,7 @@
|
||||
GLX_SUN_video_resize
|
||||
http://wwws.sun.com/software/graphics/opengl/extensions/glx_sun_video_resize.txt
|
||||
GLX_SUN_video_resize
|
||||
|
||||
GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
|
||||
GLX_VIDEO_RESIZE_SUN 0x8171
|
||||
int glXVideoResizeSUN (Display* display, GLXDrawable window, float factor)
|
||||
|
@ -1,4 +1,5 @@
|
||||
GLX_VERSION_1_2
|
||||
http://www.opengl.org/documentation/specs/glx/glx1.2.ps
|
||||
GLX_VERSION_1_2
|
||||
|
||||
Display* glXGetCurrentDisplay (void)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GLX_VERSION_1_3
|
||||
http://www.opengl.org/documentation/specs/glx/glx1.3.pdf
|
||||
GLX_VERSION_1_3
|
||||
|
||||
GLX_WINDOW_BIT 0x00000001
|
||||
GLX_PIXMAP_BIT 0x00000002
|
||||
GLX_PBUFFER_BIT 0x00000004
|
||||
|
@ -1,6 +1,7 @@
|
||||
GLX_VERSION_1_4
|
||||
http://www.opengl.org/documentation/specs/glx/glx1.4.pdf
|
||||
GLX_VERSION_1_4
|
||||
|
||||
GLX_SAMPLE_BUFFERS 100000
|
||||
GLX_SAMPLES 100001
|
||||
extern void ( * glXGetProcAddress (const GLubyte *procName)) (void);
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_APPLE_float_pixels
|
||||
http://www.opengl.org/registry/specs/APPLE/float_pixels.txt
|
||||
GL_APPLE_float_pixels
|
||||
|
||||
GL_HALF_APPLE 0x140B
|
||||
GL_COLOR_FLOAT_APPLE 0x8A0F
|
||||
GL_RGBA_FLOAT32_APPLE 0x8814
|
||||
|
@ -1,4 +1,5 @@
|
||||
GL_APPLE_pixel_buffer
|
||||
|
||||
GL_APPLE_pixel_buffer
|
||||
|
||||
GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_APPLE_texture_range
|
||||
http://www.opengl.org/registry/specs/APPLE/texture_range.txt
|
||||
GL_APPLE_texture_range
|
||||
|
||||
GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
|
||||
GL_STORAGE_PRIVATE_APPLE 0x85BD
|
||||
GL_STORAGE_CACHED_APPLE 0x85BE
|
||||
|
@ -1,3 +1,4 @@
|
||||
GL_ARB_draw_instanced
|
||||
http://www.opengl.org/registry/specs/ARB/draw_instanced.txt
|
||||
GL_ARB_draw_instanced
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_imaging
|
||||
|
||||
GL_ARB_imaging
|
||||
|
||||
GL_CONSTANT_COLOR 0x8001
|
||||
GL_ONE_MINUS_CONSTANT_COLOR 0x8002
|
||||
GL_CONSTANT_ALPHA 0x8003
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_instanced_arrays
|
||||
http://www.opengl.org/registry/specs/ARB/instanced_arrays.txt
|
||||
GL_ARB_instanced_arrays
|
||||
|
||||
GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
|
||||
void glVertexAttribDivisorARB (GLuint index, GLuint divisor)
|
||||
void glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_internalformat_query2
|
||||
http://www.opengl.org/registry/specs/ARB/internalformat_query2.txt
|
||||
GL_ARB_internalformat_query2
|
||||
|
||||
GL_INTERNALFORMAT_SUPPORTED 0x826F
|
||||
GL_INTERNALFORMAT_PREFERRED 0x8270
|
||||
GL_INTERNALFORMAT_RED_SIZE 0x8271
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_matrix_palette
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/ARB/matrix_palette.txt
|
||||
GL_ARB_matrix_palette
|
||||
|
||||
GL_MATRIX_PALETTE_ARB 0x8840
|
||||
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
|
||||
GL_MAX_PALETTE_MATRICES_ARB 0x8842
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_multitexture
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/ARB/multitexture.txt
|
||||
GL_ARB_multitexture
|
||||
|
||||
GL_TEXTURE0_ARB 0x84C0
|
||||
GL_TEXTURE1_ARB 0x84C1
|
||||
GL_TEXTURE2_ARB 0x84C2
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_robustness
|
||||
http://www.opengl.org/registry/specs/ARB/robustness.txt
|
||||
GL_ARB_robustness
|
||||
|
||||
GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
|
||||
GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
|
||||
GL_GUILTY_CONTEXT_RESET_ARB 0x8253
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_separate_shader_objects
|
||||
http://www.opengl.org/registry/specs/ARB/separate_shader_objects.txt
|
||||
GL_ARB_separate_shader_objects
|
||||
|
||||
GL_VERTEX_SHADER_BIT 0x00000001
|
||||
GL_FRAGMENT_SHADER_BIT 0x00000002
|
||||
GL_GEOMETRY_SHADER_BIT 0x00000004
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_vertex_attrib_64bit
|
||||
http://www.opengl.org/registry/specs/ARB/vertex_attrib_64bit.txt
|
||||
GL_ARB_vertex_attrib_64bit
|
||||
|
||||
void glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble* params)
|
||||
void glVertexAttribL1d (GLuint index, GLdouble x)
|
||||
void glVertexAttribL1dv (GLuint index, const GLdouble* v)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ARB_vertex_blend
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_blend.txt
|
||||
GL_ARB_vertex_blend
|
||||
|
||||
GL_MAX_VERTEX_UNITS_ARB 0x86A4
|
||||
GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
|
||||
GL_WEIGHT_SUM_UNITY_ARB 0x86A6
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATIX_point_sprites
|
||||
http://www.ati.com/developer/atiopengl.pdf
|
||||
GL_ATIX_point_sprites
|
||||
|
||||
GL_TEXTURE_POINT_MODE_ATIX 0x60B0
|
||||
GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1
|
||||
GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATIX_texture_env_combine3
|
||||
http://www.ati.com/developer/atiopengl.pdf
|
||||
GL_ATIX_texture_env_combine3
|
||||
|
||||
GL_MODULATE_ADD_ATIX 0x8744
|
||||
GL_MODULATE_SIGNED_ADD_ATIX 0x8745
|
||||
GL_MODULATE_SUBTRACT_ATIX 0x8746
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATIX_texture_env_route
|
||||
http://www.ati.com/developer/sdk/RadeonSDK/Html/Info/ATIX_texture_env_route.txt
|
||||
GL_ATIX_texture_env_route
|
||||
|
||||
GL_SECONDARY_COLOR_ATIX 0x8747
|
||||
GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748
|
||||
GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749
|
||||
|
@ -1,4 +1,5 @@
|
||||
GL_ATIX_vertex_shader_output_point_size
|
||||
http://www.ati.com/developer/atiopengl.pdf
|
||||
GL_ATIX_vertex_shader_output_point_size
|
||||
|
||||
GL_OUTPUT_POINT_SIZE_ATIX 0x610E
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATI_envmap_bumpmap
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/ATI/envmap_bumpmap.txt
|
||||
GL_ATI_envmap_bumpmap
|
||||
|
||||
GL_BUMP_ROT_MATRIX_ATI 0x8775
|
||||
GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776
|
||||
GL_BUMP_NUM_TEX_UNITS_ATI 0x8777
|
||||
|
@ -1,5 +1,6 @@
|
||||
GL_ATI_map_object_buffer
|
||||
http://www.opengl.org/registry/specs/ATI/map_object_buffer.txt
|
||||
GL_ATI_map_object_buffer
|
||||
|
||||
void * glMapObjectBufferATI (GLuint buffer)
|
||||
void glUnmapObjectBufferATI (GLuint buffer)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATI_pn_triangles
|
||||
http://www.opengl.org/registry/specs/ATI/pn_triangles.txt
|
||||
GL_ATI_pn_triangles
|
||||
|
||||
GL_PN_TRIANGLES_ATI 0x87F0
|
||||
GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
|
||||
GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATI_separate_stencil
|
||||
http://www.opengl.org/registry/specs/ATI/separate_stencil.txt
|
||||
GL_ATI_separate_stencil
|
||||
|
||||
GL_STENCIL_BACK_FUNC_ATI 0x8800
|
||||
GL_STENCIL_BACK_FAIL_ATI 0x8801
|
||||
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
|
||||
|
@ -1,3 +1,4 @@
|
||||
GL_ATI_shader_texture_lod
|
||||
|
||||
GL_ATI_shader_texture_lod
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
GL_ATI_texture_compression_3dc
|
||||
|
||||
GL_ATI_texture_compression_3dc
|
||||
|
||||
GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_ATI_vertex_streams
|
||||
http://www.opengl.org/registry/specs/ATI/vertex_streams.txt
|
||||
GL_ATI_vertex_streams
|
||||
|
||||
GL_MAX_VERTEX_STREAMS_ATI 0x876B
|
||||
GL_VERTEX_SOURCE_ATI 0x876C
|
||||
GL_VERTEX_STREAM0_ATI 0x876D
|
||||
|
@ -1,5 +1,6 @@
|
||||
GL_EXT_Cg_shader
|
||||
http://download.nvidia.com/developer/GLSL/GLSL%20Release%20Notes%20for%20Release%2060.pdf
|
||||
GL_EXT_Cg_shader
|
||||
|
||||
GL_CG_VERTEX_SHADER_EXT 0x890E
|
||||
GL_CG_FRAGMENT_SHADER_EXT 0x890F
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_bindable_uniform
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_bindable_uniform.txt
|
||||
GL_EXT_bindable_uniform
|
||||
|
||||
GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
|
||||
GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
|
||||
GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_debug_marker
|
||||
http://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_marker.txt
|
||||
GL_EXT_debug_marker
|
||||
|
||||
void glInsertEventMarkerEXT (GLsizei length, const GLchar* marker)
|
||||
void glPushGroupMarkerEXT (GLsizei length, const GLchar* marker)
|
||||
void glPopGroupMarkerEXT (void)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_depth_bounds_test
|
||||
http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_depth_bounds_test.txt
|
||||
GL_EXT_depth_bounds_test
|
||||
|
||||
GL_DEPTH_BOUNDS_TEST_EXT 0x8890
|
||||
GL_DEPTH_BOUNDS_EXT 0x8891
|
||||
void glDepthBoundsEXT (GLclampd zmin, GLclampd zmax)
|
||||
|
@ -1,5 +1,6 @@
|
||||
GL_EXT_draw_instanced
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_draw_instanced.txt
|
||||
GL_EXT_draw_instanced
|
||||
|
||||
void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount)
|
||||
void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_draw_range_elements
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/EXT/draw_range_elements.txt
|
||||
GL_EXT_draw_range_elements
|
||||
|
||||
GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8
|
||||
GL_MAX_ELEMENTS_INDICES_EXT 0x80E9
|
||||
void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices)
|
||||
|
7
auto/core/gl/GL_EXT_external_buffer
Normal file
7
auto/core/gl/GL_EXT_external_buffer
Normal file
@ -0,0 +1,7 @@
|
||||
GL_EXT_external_buffer
|
||||
http://www.opengl.org/registry/specs/EXT/external_buffer.txt
|
||||
GL_EXT_external_buffer
|
||||
|
||||
void glBufferStorageExternalEXT (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags)
|
||||
void glNamedBufferStorageExternalEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags)
|
||||
typedef void* GLeglClientBufferEXT
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_fog_coord
|
||||
http://oss.sgi.com/projects/ogl-sample/registry/EXT/fog_coord.txt
|
||||
GL_EXT_fog_coord
|
||||
|
||||
GL_FOG_COORDINATE_SOURCE_EXT 0x8450
|
||||
GL_FOG_COORDINATE_EXT 0x8451
|
||||
GL_FRAGMENT_DEPTH_EXT 0x8452
|
||||
|
@ -1,5 +1,6 @@
|
||||
GL_EXT_framebuffer_sRGB
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_sRGB.txt
|
||||
GL_EXT_framebuffer_sRGB
|
||||
|
||||
GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
|
||||
GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_geometry_shader4
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_geometry_shader4.txt
|
||||
GL_EXT_geometry_shader4
|
||||
|
||||
GL_GEOMETRY_SHADER_EXT 0x8DD9
|
||||
GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
|
||||
GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE
|
||||
|
@ -1,5 +1,6 @@
|
||||
GL_EXT_gpu_program_parameters
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_program_parameters.txt
|
||||
GL_EXT_gpu_program_parameters
|
||||
|
||||
void glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params)
|
||||
void glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params)
|
||||
|
@ -1,6 +1,7 @@
|
||||
GL_EXT_gpu_shader4
|
||||
http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_shader4.txt
|
||||
GL_EXT_gpu_shader4
|
||||
|
||||
GL_SAMPLER_1D_ARRAY_EXT 0x8DC0
|
||||
GL_SAMPLER_2D_ARRAY_EXT 0x8DC1
|
||||
GL_SAMPLER_BUFFER_EXT 0x8DC2
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user