Commit a892c99d authored by Yaroslav Halchenko's avatar Yaroslav Halchenko

Imported Upstream version 1.5.0dfsg1

parent 089be703
The OpenGL Extension Wrangler Library
Copyright (C) 2002-2007, Milan Ikits <milan ikits[]ieee org>
Copyright (C) 2002-2007, Marcelo E. Magallon <mmagallo[]debian org>
Copyright (C) 2002, Lev Povalahev
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The name of the author may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
Mesa 3-D graphics library
Version: 7.0
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2007 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
#!gmake #!gmake
## The OpenGL Extension Wrangler Library ## The OpenGL Extension Wrangler Library
## Copyright (C) 2002-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## Copyright (C) 2002-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2002, Lev Povalahev ## Copyright (C) 2002, Lev Povalahev
## All rights reserved. ## All rights reserved.
## ##
...@@ -50,14 +50,13 @@ TARBALL = ../glew_$(GLEW_VERSION).tar.gz ...@@ -50,14 +50,13 @@ TARBALL = ../glew_$(GLEW_VERSION).tar.gz
AR = ar AR = ar
INSTALL = install INSTALL = install
STRIP = strip
RM = rm -f RM = rm -f
LN = ln -sf LN = ln -sf
ifeq ($(MAKECMDGOALS), debug) ifeq ($(MAKECMDGOALS), debug)
OPT = -g OPT = -g
STRIP =
else else
OPT = $(POPT) OPT = $(POPT)
STRIP = -s
endif endif
INCLUDE = -Iinclude INCLUDE = -Iinclude
CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
...@@ -114,16 +113,12 @@ install: all ...@@ -114,16 +113,12 @@ install: all
$(INSTALL) -d -m 0755 $(LIBDIR) $(INSTALL) -d -m 0755 $(LIBDIR)
# runtime # runtime
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(BINDIR)/ $(STRIP) -x lib/$(LIB.SHARED)
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(BINDIR)/
else else
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin) $(STRIP) -x lib/$(LIB.SHARED)
strip -x lib/$(LIB.SHARED)
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/ $(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME) $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
else
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
endif
endif endif
# development files # development files
$(INSTALL) -m 0644 include/GL/wglew.h $(INCDIR)/ $(INSTALL) -m 0644 include/GL/wglew.h $(INCDIR)/
...@@ -132,14 +127,9 @@ endif ...@@ -132,14 +127,9 @@ endif
ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw) ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/ $(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
else else
ifeq ($(patsubst darwin%,darwin,$(SYSTEM)), darwin)
strip -x lib/$(LIB.STATIC) strip -x lib/$(LIB.STATIC)
$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/ $(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK) $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
else
$(INSTALL) $(STRIP) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
endif
endif endif
# utilities # utilities
$(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/ $(INSTALL) -s -m 0755 bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) $(BINDIR)/
......
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
...@@ -11,7 +11,8 @@ include ../config/version ...@@ -11,7 +11,8 @@ include ../config/version
SHELL = bash SHELL = bash
REGISTRY = registry REGISTRY = registry
REGISTRY_URL = http://oss.sgi.com/projects/ogl-sample/registry/ REGISTRY_URL = http://www.opengl.org/registry/
#http://oss.sgi.com/projects/ogl-sample/registry/
BIN = bin BIN = bin
SRC = src SRC = src
CORE = core CORE = core
...@@ -105,7 +106,8 @@ $(I.DEST)/glew.h: $(EXT)/.dummy ...@@ -105,7 +106,8 @@ $(I.DEST)/glew.h: $(EXT)/.dummy
@echo "--------------------------------------------------------------------" @echo "--------------------------------------------------------------------"
test -d $(I.DEST) || mkdir -p $(I.DEST) test -d $(I.DEST) || mkdir -p $(I.DEST)
cp -f $(SRC)/glew_license.h $@ cp -f $(SRC)/glew_license.h $@
cat $(SRC)/sgi_license.h >> $@ cat $(SRC)/mesa_license.h >> $@
cat $(SRC)/khronos_license.h >> $@
cat $(SRC)/glew_head.h >> $@ cat $(SRC)/glew_head.h >> $@
$(BIN)/make_header.pl GLAPIENTRY GL $(GL_CORE_SPEC) >> $@ $(BIN)/make_header.pl GLAPIENTRY GL $(GL_CORE_SPEC) >> $@
$(BIN)/make_header.pl GLAPIENTRY GL $(GL_EXT_SPEC) >> $@ $(BIN)/make_header.pl GLAPIENTRY GL $(GL_EXT_SPEC) >> $@
...@@ -125,6 +127,7 @@ $(I.DEST)/wglew.h: $(EXT)/.dummy ...@@ -125,6 +127,7 @@ $(I.DEST)/wglew.h: $(EXT)/.dummy
@echo "Creating wglew.h" @echo "Creating wglew.h"
@echo "--------------------------------------------------------------------" @echo "--------------------------------------------------------------------"
cp -f $(SRC)/glew_license.h $@ cp -f $(SRC)/glew_license.h $@
cat $(SRC)/khronos_license.h >> $@
cat $(SRC)/wglew_head.h >> $@ cat $(SRC)/wglew_head.h >> $@
$(BIN)/make_header.pl WINAPI WGL $(WGL_EXT_SPEC) >> $@ $(BIN)/make_header.pl WINAPI WGL $(WGL_EXT_SPEC) >> $@
echo -e "/* ------------------------------------------------------------------------- */\n\n#ifdef GLEW_MX\n#define WGLEW_EXPORT\n#else\n#define WGLEW_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n\n#ifdef GLEW_MX\nstruct WGLEWContextStruct\n{\n#endif /* GLEW_MX */" >> $@ echo -e "/* ------------------------------------------------------------------------- */\n\n#ifdef GLEW_MX\n#define WGLEW_EXPORT\n#else\n#define WGLEW_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n\n#ifdef GLEW_MX\nstruct WGLEWContextStruct\n{\n#endif /* GLEW_MX */" >> $@
...@@ -138,7 +141,8 @@ $(I.DEST)/glxew.h: $(EXT)/.dummy ...@@ -138,7 +141,8 @@ $(I.DEST)/glxew.h: $(EXT)/.dummy
@echo "Creating glxew.h" @echo "Creating glxew.h"
@echo "--------------------------------------------------------------------" @echo "--------------------------------------------------------------------"
cp -f $(SRC)/glew_license.h $@ cp -f $(SRC)/glew_license.h $@
cat $(SRC)/glx_license.h >> $@ cat $(SRC)/mesa_license.h >> $@
cat $(SRC)/khronos_license.h >> $@
cat $(SRC)/glxew_head.h >> $@ cat $(SRC)/glxew_head.h >> $@
$(BIN)/make_header.pl '' GLX $(GLX_CORE_SPEC) >> $@ $(BIN)/make_header.pl '' GLX $(GLX_CORE_SPEC) >> $@
$(BIN)/make_header.pl '' GLX $(GLX_EXT_SPEC) >> $@ $(BIN)/make_header.pl '' GLX $(GLX_EXT_SPEC) >> $@
...@@ -206,6 +210,9 @@ $(S.DEST)/glew.c: $(EXT)/.dummy ...@@ -206,6 +210,9 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
$(BIN)/make_str.pl $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@ $(BIN)/make_str.pl $(GLX_CORE_SPEC) $(GLX_EXT_SPEC) >> $@
cat $(SRC)/glew_str_tail.c >> $@ cat $(SRC)/glew_str_tail.c >> $@
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@ 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_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/\(\(glColorSubTable = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glColorSubTable = /g" -pi $@ perl -e "s/\(\(glColorSubTable = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glColorSubTable = /g" -pi $@
$(BIN)/fix_OML_sync_control.sh $@ $(BIN)/fix_OML_sync_control.sh $@
...@@ -259,6 +266,9 @@ $(S.DEST)/glew_init.c: $(EXT)/.dummy ...@@ -259,6 +266,9 @@ $(S.DEST)/glew_init.c: $(EXT)/.dummy
echo -e "\n return GLEW_OK;\n}\n\n#endif /* !__APPLE__ || GLEW_APPLE_GLX */\n" >> $@; echo -e "\n return GLEW_OK;\n}\n\n#endif /* !__APPLE__ || GLEW_APPLE_GLX */\n" >> $@;
cat $(SRC)/glew_init_tail.c >> $@ cat $(SRC)/glew_init_tail.c >> $@
perl -e "s/GLEW_VERSION_STRING/$(GLEW_VERSION)/g" -pi $@ 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_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 $@ perl -e "s/\(\(glBlendColor = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glBlendColor = /g" -pi $@
$(BIN)/fix_OML_sync_control.sh $@ $(BIN)/fix_OML_sync_control.sh $@
......
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
...@@ -10,7 +10,7 @@ my %regex = ( ...@@ -10,7 +10,7 @@ my %regex = (
extname => qr/^[A-Z][A-Za-z0-9_]+$/, extname => qr/^[A-Z][A-Za-z0-9_]+$/,
exturl => qr/^http.+$/, exturl => qr/^http.+$/,
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i, function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i,
token => qr/^([A-Z][A-Z0-9_]*)\s+((?:0x)?[0-9A-F]+|[A-Z][A-Z0-9_]*)$/, token => qr/^([A-Z][A-Z0-9_x]*)\s+((?:0x)?[0-9A-F]+|[A-Z][A-Z0-9_]*)$/,
type => qr/^typedef\s+(.+)\s+([\*A-Za-z0-9_]+)$/, type => qr/^typedef\s+(.+)\s+([\*A-Za-z0-9_]+)$/,
exact => qr/.*;$/, exact => qr/.*;$/,
); );
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
......
#!/usr/bin/perl #!/usr/bin/perl
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
...@@ -47,6 +47,8 @@ my %typemap = ( ...@@ -47,6 +47,8 @@ my %typemap = (
# ARB VBO introduces these. # ARB VBO introduces these.
sizeiptr => "GLsizeiptr",
intptr => "GLintptr",
sizeiptrARB => "GLsizeiptrARB", sizeiptrARB => "GLsizeiptrARB",
intptrARB => "GLintptrARB", intptrARB => "GLintptrARB",
...@@ -266,7 +268,8 @@ my @speclist = (); ...@@ -266,7 +268,8 @@ my @speclist = ();
my %extensions = (); my %extensions = ();
my $ext_dir = shift; my $ext_dir = shift;
my $reg_http = "http://oss.sgi.com/projects/ogl-sample/"; my $reg_http = "http://www.opengl.org/registry/specs/";
#my $reg_http = "http://oss.sgi.com/projects/ogl-sample/";
# Take command line arguments or read list from file # Take command line arguments or read list from file
if (@ARGV) if (@ARGV)
...@@ -286,7 +289,9 @@ foreach my $spec (sort @speclist) ...@@ -286,7 +289,9 @@ foreach my $spec (sort @speclist)
my $info = "$ext_dir/" . $ext; my $info = "$ext_dir/" . $ext;
open EXT, ">$info"; open EXT, ">$info";
print EXT $ext . "\n"; print EXT $ext . "\n";
print EXT $reg_http . $spec . "\n"; my $specname = $spec;
$specname =~ s/registry\///;
print EXT $reg_http . $specname . "\n";
my $prefix = $ext; my $prefix = $ext;
$prefix =~ s/^(.+?)(_.+)$/$1/; $prefix =~ s/^(.+?)(_.+)$/$1/;
......
#!/bin/bash #!/bin/bash
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
...@@ -56,8 +56,8 @@ if [ ! -d $1 ] ; then ...@@ -56,8 +56,8 @@ if [ ! -d $1 ] ; then
GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974
GL_COLOR_ALPHA_PAIRING_ATI 0x8975 GL_COLOR_ALPHA_PAIRING_ATI 0x8975
GL_SWIZZLE_STRQ_ATI 0x897A GL_SWIZZLE_STRQ_ATI 0x897A
GL_SWIZZLE_STRQ_DQ_ATI 0x897B GL_SWIZZLE_STRQ_DQ_ATI 0x897B
EOT EOT
# fix WGL_ATI_pixel_format_float # fix WGL_ATI_pixel_format_float
...@@ -66,6 +66,17 @@ EOT ...@@ -66,6 +66,17 @@ EOT
GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
EOT EOT
# fix WGL_ARB_make_current_read
cat >> $1/WGL_ARB_make_current_read <<EOT
ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
EOT
# fix WGL_EXT_make_current_read
cat >> $1/WGL_EXT_make_current_read <<EOT
ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
EOT
# add typedefs to GL_ARB_vertex_buffer_object; (from personal communication # add typedefs to GL_ARB_vertex_buffer_object; (from personal communication
# with Marco Fabbricatore). # with Marco Fabbricatore).
# #
......
#!/bin/sh #!/bin/sh
## ##
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org> ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org> ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
## ##
## This program is distributed under the terms and conditions of the GNU ## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software ## General Public License Version 2 as published by the Free Software
...@@ -18,7 +18,7 @@ wget \ ...@@ -18,7 +18,7 @@ wget \
--mirror \ --mirror \
--no-parent \ --no-parent \
--no-host-directories \ --no-host-directories \
--cut-dirs=3 \ --cut-dirs=2 \
--accept=txt,html \ --accept=txt,html \
$2 $2
...@@ -47,6 +47,8 @@ GL_VERSION_1_4 ...@@ -47,6 +47,8 @@ GL_VERSION_1_4
void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer) void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer)
void glMultiDrawArrays (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount) void glMultiDrawArrays (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount)
void glMultiDrawElements (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount) void glMultiDrawElements (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount)
void glPointParameteri (GLenum pname, GLint param)
void glPointParameteriv (GLenum pname, GLint *params)
void glPointParameterf (GLenum pname, GLfloat param) void glPointParameterf (GLenum pname, GLfloat param)
void glPointParameterfv (GLenum pname, GLfloat *params) void glPointParameterfv (GLenum pname, GLfloat *params)
void glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue) void glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue)
......
GLX_3DFX_multisample GLX_3DFX_multisample
http://oss.sgi.com/projects/ogl-sample/registry/3DFX/3dfx_multisample.txt http://www.opengl.org/registry/specs/3DFX/3dfx_multisample.txt
GLX_SAMPLE_BUFFERS_3DFX 0x8050 GLX_SAMPLE_BUFFERS_3DFX 0x8050
GLX_SAMPLES_3DFX 0x8051