From 661431ee707f18dc0826410fcc71c11a0bdfeaa1 Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 3 Jan 2005 07:05:38 +0000 Subject: [PATCH] Single file now compiles with VC71. Kept multi-file split for future use. git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@331 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/Makefile | 199 ++++++++++++++---- auto/bin/make_header.pl | 12 +- auto/bin/make_html.pl | 9 +- auto/src/glew_gl_fun.c | 6 - auto/src/glew_gl_head.c | 34 --- auto/src/glew_gl_var.c | 5 - auto/src/glew_glx_fun.c | 5 - auto/src/glew_glx_head.c | 34 --- auto/src/glew_glx_tail.c | 4 - auto/src/glew_glx_var.c | 5 - auto/src/glew_head.c | 149 +++++++++++++ auto/src/glew_head.h | 60 ------ auto/src/{glew_gl_init.c => glew_init_gl.c} | 0 auto/src/{glew_glx_init.c => glew_init_glx.c} | 2 + auto/src/{glew_gl_tail.c => glew_init_tail.c} | 8 +- auto/src/{glew_wgl_init.c => glew_init_wgl.c} | 1 - auto/src/{glew_wgl_head.c => glew_license.h} | 7 +- auto/src/glew_str_head.c | 33 --- {src => auto/src}/glew_utils.c | 0 {src => auto/src}/glew_utils.h | 1 + auto/src/glew_wgl_tail.c | 2 - auto/src/glew_wgl_var.c | 5 - auto/src/glewinfo_head.c | 31 --- auto/src/glx_license.h | 19 ++ auto/src/glxew_head.h | 50 ----- auto/src/sgi_license.h | 29 +++ auto/src/template.html | 71 +++++++ auto/src/wglew_head.h | 60 ------ build/vc6/glew_shared.dsp | 14 +- build/vc6/glew_static.dsp | 14 +- 30 files changed, 443 insertions(+), 426 deletions(-) delete mode 100644 auto/src/glew_gl_fun.c delete mode 100644 auto/src/glew_gl_head.c delete mode 100644 auto/src/glew_gl_var.c delete mode 100644 auto/src/glew_glx_fun.c delete mode 100644 auto/src/glew_glx_head.c delete mode 100644 auto/src/glew_glx_tail.c delete mode 100644 auto/src/glew_glx_var.c create mode 100644 auto/src/glew_head.c rename auto/src/{glew_gl_init.c => glew_init_gl.c} (100%) rename auto/src/{glew_glx_init.c => glew_init_glx.c} (95%) rename auto/src/{glew_gl_tail.c => glew_init_tail.c} (96%) rename auto/src/{glew_wgl_init.c => glew_init_wgl.c} (99%) rename auto/src/{glew_wgl_head.c => glew_license.h} (88%) rename {src => auto/src}/glew_utils.c (100%) rename {src => auto/src}/glew_utils.h (99%) delete mode 100644 auto/src/glew_wgl_tail.c delete mode 100644 auto/src/glew_wgl_var.c create mode 100644 auto/src/glx_license.h create mode 100644 auto/src/sgi_license.h create mode 100644 auto/src/template.html diff --git a/auto/Makefile b/auto/Makefile index e5399cd..388f2eb 100644 --- a/auto/Makefile +++ b/auto/Makefile @@ -41,15 +41,33 @@ I.DEST = $(TOP)/include/GL S.DEST = $(TOP)/src D.DEST = $(TOP)/doc -TARGETS = $(I.DEST)/glew.h $(I.DEST)/wglew.h $(I.DEST)/glxew.h $(S.DEST)/glew_gl.c $(S.DEST)/glew_str.c $(S.DEST)/glew_wgl.c $(S.DEST)/glew_glx.c $(S.DEST)/glewinfo.c \ - $(D.DEST)/glew.html $(D.DEST)/wglew.html $(D.DEST)/glxew.html +I.TARGETS = \ + $(I.DEST)/glew.h \ + $(I.DEST)/wglew.h \ + $(I.DEST)/glxew.h -all custom: $(TARGETS) +S.TARGETS = \ + $(S.DEST)/glew.c \ + $(S.DEST)/glewinfo.c + +# $(S.DEST)/glew_def.c \ +# $(S.DEST)/glew_init.c \ +# $(S.DEST)/glew_str.c \ + +D.TARGETS = \ + $(D.DEST)/glew.html \ + $(D.DEST)/wglew.html \ + $(D.DEST)/glxew.html + +all custom: $(I.TARGETS) $(S.TARGETS) $(D.TARGETS) registry: $(REGISTRY)/.dummy ext: $(EXT)/.dummy $(REGISTRY)/.dummy: $(BIN)/update_registry.sh + @echo "--------------------------------------------------------------------" + @echo "Downloading registry" + @echo "--------------------------------------------------------------------" $(BIN)/update_registry.sh $(REGISTRY) $(REGISTRY_URL) head -6 $(REGISTRY)/ATI/texture_env_combine3.txt > tmp tail +7 $(REGISTRY)/ATI/texture_env_combine3.txt | \ @@ -58,6 +76,9 @@ $(REGISTRY)/.dummy: $(BIN)/update_registry.sh touch $@ $(EXT)/.dummy: $(REGISTRY)/.dummy + @echo "--------------------------------------------------------------------" + @echo "Creating descriptors" + @echo "--------------------------------------------------------------------" rm -rf $(EXT) $(BIN)/update_ext.sh $(EXT) $(REGISTRY) $(BLACKLIST) ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin) @@ -70,8 +91,13 @@ endif touch $@ $(I.DEST)/glew.h: $(EXT)/.dummy + @echo "--------------------------------------------------------------------" + @echo "Creating glew.h" + @echo "--------------------------------------------------------------------" test -d $(I.DEST) || mkdir -p $(I.DEST) - cp -f $(SRC)/glew_head.h $@ + cp -f $(SRC)/glew_license.h $@ + cat $(SRC)/sgi_license.h >> $@ + 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" >> $@ @@ -86,7 +112,11 @@ $(I.DEST)/glew.h: $(EXT)/.dummy cat $(SRC)/glew_tail.h >> $@ $(I.DEST)/wglew.h: $(EXT)/.dummy - cp -f $(SRC)/wglew_head.h $@ + @echo "--------------------------------------------------------------------" + @echo "Creating wglew.h" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/glew_license.h $@ + cat $(SRC)/wglew_head.h >> $@ $(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 */" >> $@ $(BIN)/make_struct_fun.pl WGLEW_EXPORT $(WGL_EXT_SPEC) >> $@ @@ -95,7 +125,12 @@ $(I.DEST)/wglew.h: $(EXT)/.dummy cat $(SRC)/wglew_tail.h >> $@ $(I.DEST)/glxew.h: $(EXT)/.dummy - cp -f $(SRC)/glxew_head.h $@ + @echo "--------------------------------------------------------------------" + @echo "Creating glxew.h" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/glew_license.h $@ + cat $(SRC)/glx_license.h >> $@ + cat $(SRC)/glxew_head.h >> $@ $(BIN)/make_header.pl '' GLX $(GLX_CORE_SPEC) >> $@ $(BIN)/make_header.pl '' GLX $(GLX_EXT_SPEC) >> $@ echo -e "/* ------------------------------------------------------------------------- */\n\n#ifdef GLEW_MX\n#define GLXEW_EXPORT\n#else\n#define GLXEW_EXPORT extern\n#endif /* GLEW_MX */" >> $@ @@ -107,54 +142,121 @@ $(I.DEST)/glxew.h: $(EXT)/.dummy cat $(SRC)/glxew_tail.h >> $@ $(BIN)/fix_OML_sync_control.sh $@ -$(S.DEST)/glew_gl.c: $(EXT)/.dummy - cp -f $(SRC)/glew_gl_head.c $@ +$(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) >> $@ - cat $(SRC)/glew_gl_fun.c >> $@ + 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) >> $@ - cat $(SRC)/glew_gl_var.c >> $@ + echo -e "\n#endif /* !GLEW_MX */\n" >> $@; $(BIN)/make_init.pl GL $(GL_CORE_SPEC) >> $@ $(BIN)/make_init.pl GL $(GL_EXT_SPEC) >> $@ - cat $(SRC)/glew_gl_init.c >> $@ + cat $(SRC)/glew_init_gl.c >> $@ $(BIN)/make_list.pl $(GL_CORE_SPEC) | grep -v '\"GL_VERSION' >> $@ $(BIN)/make_list.pl $(GL_EXT_SPEC) >> $@ - cat $(SRC)/glew_gl_tail.c >> $@ - perl -e "s/GLEW_VERSION_STRING/$(GLEW_MAJOR)\.$(GLEW_MINOR)\.$(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 $@ - rm -f $@.bak - -$(S.DEST)/glew_wgl.c: $(EXT)/.dummy - cp -f $(SRC)/glew_wgl_head.c $@ + echo -e "\n return GLEW_OK;\n}\n" >> $@ + echo -e "\n#if defined(_WIN32)" >> $@ + echo -e "\n#if !defined(GLEW_MX)" >> $@ $(BIN)/make_def_fun.pl WGL $(WGL_EXT_SPEC) >> $@ $(BIN)/make_def_var.pl WGL $(WGL_EXT_SPEC) >> $@ - cat $(SRC)/glew_wgl_var.c >> $@ + echo -e "\n#endif /* !GLEW_MX */\n" >> $@; $(BIN)/make_init.pl WGL $(WGL_EXT_SPEC) >> $@ - cat $(SRC)/glew_wgl_init.c >> $@ + cat $(SRC)/glew_init_wgl.c >> $@ $(BIN)/make_list.pl $(WGL_EXT_SPEC) >> $@ - cat $(SRC)/glew_wgl_tail.c >> $@ - rm -f $@.bak - -$(S.DEST)/glew_glx.c: $(EXT)/.dummy - cp -f $(SRC)/glew_glx_head.c $@ + echo -e "\n return GLEW_OK;\n}" >> $@; + echo -e "\n#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)" >> $@ $(BIN)/make_def_fun.pl GLX $(GLX_CORE_SPEC) >> $@ $(BIN)/make_def_fun.pl GLX $(GLX_EXT_SPEC) >> $@ - cat $(SRC)/glew_glx_fun.c >> $@ + 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) >> $@ - cat $(SRC)/glew_glx_var.c >> $@ + 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_glx_init.c >> $@ + 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) >> $@ - cat $(SRC)/glew_glx_tail.c >> $@ + echo -e "\n return GLEW_OK;\n}" >> $@ + echo -e "\n#endif /* !__APPLE__ || GLEW_APPLE_GLX */\n" >> $@; + cat $(SRC)/glew_init_tail.c >> $@ + 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_MAJOR)\.$(GLEW_MINOR)\.$(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 $@ + $(BIN)/fix_OML_sync_control.sh $@ + 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(__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 /* !__APPLE__ || 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_MAJOR)\.$(GLEW_MINOR)\.$(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 $@ $(BIN)/fix_OML_sync_control.sh $@ rm -f $@.bak $(S.DEST)/glew_str.c: $(EXT)/.dummy - cp -f $(SRC)/glew_str_head.c $@ + 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) >> $@ @@ -166,9 +268,12 @@ $(S.DEST)/glew_str.c: $(EXT)/.dummy # 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 - cp -f $(SRC)/glewinfo_head.c $@ + @echo "--------------------------------------------------------------------" + @echo "Creating glewinfo.c" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/glew_license.h $@ + cat $(SRC)/glewinfo_head.c >> $@ $(BIN)/make_info.pl $(GL_CORE_SPEC) >> $@ $(BIN)/make_info.pl $(GL_EXT_SPEC) >> $@ echo -e "#ifdef _WIN32\n" >> $@ @@ -190,23 +295,37 @@ $(S.DEST)/glewinfo.c: $(EXT)/.dummy $(BIN)/fix_OML_sync_control.sh $@ $(D.DEST)/glew.html: $(EXT)/.dummy - cp -f $(SRC)/glew_head.html $@ + @echo "--------------------------------------------------------------------" + @echo "Creating glew.html" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/template.html $@ + echo -e "

Supported OpenGL Extensions

\n" >> $@ $(BIN)/make_html.pl $(GL_EXT_SPEC) >> $@ - cat $(SRC)/glew_tail.html >> $@ + echo -e "\n\n\n" >> $@ $(D.DEST)/wglew.html: $(EXT)/.dummy - cp -f $(SRC)/wglew_head.html $@ + @echo "--------------------------------------------------------------------" + @echo "Creating wglew.html" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/template.html $@ + echo -e "

Supported WGL Extensions

\n" >> $@ $(BIN)/make_html.pl $(WGL_EXT_SPEC) >> $@ - cat $(SRC)/glew_tail.html >> $@ + echo -e "\n\n\n" >> $@ $(D.DEST)/glxew.html: $(EXT)/.dummy - cp -f $(SRC)/glxew_head.html $@ + @echo "--------------------------------------------------------------------" + @echo "Creating glxew.html" + @echo "--------------------------------------------------------------------" + cp -f $(SRC)/template.html $@ + echo -e "

Supported GLX Extensions

\n" >> $@ $(BIN)/make_html.pl $(GLX_EXT_SPEC) >> $@ - cat $(SRC)/glew_tail.html >> $@ + echo -e "\n\n\n" >> $@ clean: - rm -rf $(TARGETS) - rm -rf $(EXT) + rm -rf $(I.TARGETS) $(S.TARGETS) $(D.TARGETS) clobber: clean + rm -rf $(EXT) + +destroy: clobber rm -rf $(REGISTRY) diff --git a/auto/bin/make_header.pl b/auto/bin/make_header.pl index 5b7d2f4..a92b0bd 100755 --- a/auto/bin/make_header.pl +++ b/auto/bin/make_header.pl @@ -49,10 +49,7 @@ our $type = shift; if (@ARGV) { @extlist = @ARGV; -my $extstr = $extlist[0]; -printf STDERR "FASZI: $extstr \n"; -#if (length($extstr) > 1) -{ + foreach my $ext (sort @extlist) { my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext); @@ -72,10 +69,3 @@ printf STDERR "FASZI: $extstr \n"; print "\n#endif /* $extname */\n\n"; } } -} - -#} else { -# local $/; -# @extlist = split "\n", (<>); -#} - diff --git a/auto/bin/make_html.pl b/auto/bin/make_html.pl index 2a93827..497dba4 100755 --- a/auto/bin/make_html.pl +++ b/auto/bin/make_html.pl @@ -35,16 +35,19 @@ if (@ARGV) $extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/; if ($cur_group ne $group) { + if ($group ne "") + { + print "
\n"; + } $group = $cur_group; - print "
\n"; } if ($exturl) { - print "$extname
\n"; + print "        $extname
\n"; } else { - print "$extname
\n"; + print "        $extname
\n"; } } } diff --git a/auto/src/glew_gl_fun.c b/auto/src/glew_gl_fun.c deleted file mode 100644 index 2fbdc77..0000000 --- a/auto/src/glew_gl_fun.c +++ /dev/null @@ -1,6 +0,0 @@ - -#endif /* !WIN32 || !GLEW_MX */ - -#if !defined(GLEW_MX) - -GLboolean __GLEW_VERSION_1_1 = GL_FALSE; diff --git a/auto/src/glew_gl_head.c b/auto/src/glew_gl_head.c deleted file mode 100644 index e2756ff..0000000 --- a/auto/src/glew_gl_head.c +++ /dev/null @@ -1,34 +0,0 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -#include "glew_utils.h" - -#if !defined(_WIN32) || !defined(GLEW_MX) diff --git a/auto/src/glew_gl_var.c b/auto/src/glew_gl_var.c deleted file mode 100644 index b6ae68d..0000000 --- a/auto/src/glew_gl_var.c +++ /dev/null @@ -1,5 +0,0 @@ - -#endif /* !GLEW_MX */ - -/* ------------------------------------------------------------------------- */ - diff --git a/auto/src/glew_glx_fun.c b/auto/src/glew_glx_fun.c deleted file mode 100644 index 1b880e2..0000000 --- a/auto/src/glew_glx_fun.c +++ /dev/null @@ -1,5 +0,0 @@ - -#if !defined(GLEW_MX) - -GLboolean __GLXEW_VERSION_1_0 = GL_FALSE; -GLboolean __GLXEW_VERSION_1_1 = GL_FALSE; diff --git a/auto/src/glew_glx_head.c b/auto/src/glew_glx_head.c deleted file mode 100644 index 9aeed61..0000000 --- a/auto/src/glew_glx_head.c +++ /dev/null @@ -1,34 +0,0 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -#include "glew_utils.h" - -#if !defined(__APPLE__) || defined(GLEW_APPLE_GLX) diff --git a/auto/src/glew_glx_tail.c b/auto/src/glew_glx_tail.c deleted file mode 100644 index 5838920..0000000 --- a/auto/src/glew_glx_tail.c +++ /dev/null @@ -1,4 +0,0 @@ - return GLEW_OK; -} - -#endif /* !__APPLE__ || GLEW_APPLE_GLX */ diff --git a/auto/src/glew_glx_var.c b/auto/src/glew_glx_var.c deleted file mode 100644 index b6ae68d..0000000 --- a/auto/src/glew_glx_var.c +++ /dev/null @@ -1,5 +0,0 @@ - -#endif /* !GLEW_MX */ - -/* ------------------------------------------------------------------------- */ - diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c new file mode 100644 index 0000000..e15b040 --- /dev/null +++ b/auto/src/glew_head.c @@ -0,0 +1,149 @@ +#include +#if defined(_WIN32) +# include +#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) +# include +#endif + +/* + * Define glewGetContext and related helper macros. + */ +#ifdef GLEW_MX +# define glewGetContext() ctx +# ifdef _WIN32 +# define GLEW_CONTEXT_ARG_DEF_INIT GLEWContext* ctx +# define GLEW_CONTEXT_ARG_VAR_INIT ctx +# define wglewGetContext() ctx +# define WGLEW_CONTEXT_ARG_DEF_INIT WGLEWContext* ctx +# define WGLEW_CONTEXT_ARG_DEF_LIST WGLEWContext* ctx +# else /* _WIN32 */ +# define GLEW_CONTEXT_ARG_DEF_INIT void +# define GLEW_CONTEXT_ARG_VAR_INIT +# define glxewGetContext() ctx +# define GLXEW_CONTEXT_ARG_DEF_INIT void +# define GLXEW_CONTEXT_ARG_DEF_LIST GLXEWContext* ctx +# endif /* _WIN32 */ +# define GLEW_CONTEXT_ARG_DEF_LIST GLEWContext* ctx +#else /* GLEW_MX */ +# define GLEW_CONTEXT_ARG_DEF_INIT void +# define GLEW_CONTEXT_ARG_VAR_INIT +# define GLEW_CONTEXT_ARG_DEF_LIST void +# define WGLEW_CONTEXT_ARG_DEF_INIT void +# define WGLEW_CONTEXT_ARG_DEF_LIST void +# define GLXEW_CONTEXT_ARG_DEF_INIT void +# define GLXEW_CONTEXT_ARG_DEF_LIST void +#endif /* GLEW_MX */ + +#if defined(__APPLE__) +#include +#include +#include + +void* NSGLGetProcAddress (const GLubyte *name) +{ + NSSymbol symbol; + char* symbolName; + /* prepend a '_' for the Unix C symbol mangling convention */ + symbolName = malloc(strlen((const char*)name) + 2); + strcpy(symbolName+1, (const char*)name); + symbolName[0] = '_'; + symbol = NULL; + if (NSIsSymbolNameDefined(symbolName)) + symbol = NSLookupAndBindSymbol(symbolName); + free(symbolName); + return symbol ? NSAddressOfSymbol(symbol) : NULL; +} +#endif /* __APPLE__ */ + +#if defined(__sgi) || defined (__sun) +#include +#include +#include + +void* dlGetProcAddress (const GLubyte* name) +{ + static void* h = NULL; + static void* gpa; + + if (h == NULL) + { + if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL; + gpa = dlsym(h, "glXGetProcAddress"); + } + + if (gpa != NULL) + return ((void*(*)(const GLubyte*))gpa)(name); + else + return dlsym(h, (const char*)name); +} +#endif /* __sgi || __sun */ + +/* + * Define glewGetProcAddress. + */ +#if defined(_WIN32) +# define glewGetProcAddress(name) wglGetProcAddress((LPCSTR)name) +#else +# if defined(__APPLE__) +# define glewGetProcAddress(name) NSGLGetProcAddress(name) +# else +# if defined(__sgi) || defined(__sun) +# define glewGetProcAddress(name) dlGetProcAddress(name) +# else /* __linux */ +# define glewGetProcAddress(name) (*glXGetProcAddressARB)(name) +# endif +# endif +#endif + +/* + * GLEW, just like OpenGL or GLU, does not rely on the standard C library. + * These functions implement the functionality required in this file. + */ + +GLuint _glewStrLen (const GLubyte* s) +{ + GLuint i=0; + while (s+i != NULL && s[i] != '\0') i++; + return i; +} + +GLuint _glewStrCLen (const GLubyte* s, GLubyte c) +{ + GLuint i=0; + while (s+i != NULL && s[i] != '\0' && s[i] != c) i++; + return i; +} + +GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n) +{ + GLuint i=0; + while (i < n && a+i != NULL && b+i != NULL && a[i] == b[i]) i++; + return i == n ? GL_TRUE : GL_FALSE; +} + +GLboolean _glewStrSame2 (const GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb) +{ + if(*na >= nb) + { + GLuint i=0; + while (i < nb && *a+i != NULL && b+i != NULL && *a[i] == b[i]) i++; + if(i == nb) + { + *a = *a + nb; + *na = *na - nb; + return GL_TRUE; + } + } + return GL_FALSE; +} + +GLboolean _glewStrSame3 (const GLubyte* a, GLuint na, const GLubyte* b, GLuint nb) +{ + if(na == nb) + { + GLuint i=0; + while (i < nb && a+i != NULL && b+i != NULL && a[i] == b[i]) i++; + return i == nb ? GL_TRUE : GL_FALSE; + } + return GL_FALSE; +} diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h index fe0c8ca..b66a398 100644 --- a/auto/src/glew_head.h +++ b/auto/src/glew_head.h @@ -1,63 +1,3 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -/* -** License Applicability. Except to the extent portions of this file are -** made subject to an alternative license as permitted in the SGI Free -** Software License B, Version 1.1 (the "License"), the contents of this -** file are subject only to the provisions of the License. You may not use -** this file except in compliance with the License. You may obtain a copy -** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 -** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: -** -** http://oss.sgi.com/projects/FreeB -** -** Note that, as provided in the License, the Software is distributed on an -** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS -** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND -** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A -** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. -** -** Original Code. The Original Code is: OpenGL Sample Implementation, -** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, -** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. -** Copyright in any portions created by third parties is as indicated -** elsewhere herein. All Rights Reserved. -** -** Additional Notice Provisions: This software was created using the -** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has -** not been independently verified as being compliant with the OpenGL(R) -** version 1.2.1 Specification. -*/ - #ifndef __glew_h__ #define __glew_h__ #define __GLEW_H__ diff --git a/auto/src/glew_gl_init.c b/auto/src/glew_init_gl.c similarity index 100% rename from auto/src/glew_gl_init.c rename to auto/src/glew_init_gl.c diff --git a/auto/src/glew_glx_init.c b/auto/src/glew_init_glx.c similarity index 95% rename from auto/src/glew_glx_init.c rename to auto/src/glew_init_glx.c index 5f527dd..3556466 100644 --- a/auto/src/glew_glx_init.c +++ b/auto/src/glew_init_glx.c @@ -1,3 +1,5 @@ +/* ------------------------------------------------------------------------ */ + GLboolean glxewGetExtension (const char* name) { GLubyte* p; diff --git a/auto/src/glew_gl_tail.c b/auto/src/glew_init_tail.c similarity index 96% rename from auto/src/glew_gl_tail.c rename to auto/src/glew_init_tail.c index 865dcd5..2d5f2ee 100644 --- a/auto/src/glew_gl_tail.c +++ b/auto/src/glew_init_tail.c @@ -1,6 +1,3 @@ - return GLEW_OK; -} - /* ------------------------------------------------------------------------ */ const GLubyte* glewGetErrorString (GLenum error) @@ -32,7 +29,7 @@ const GLubyte* glewGetString (GLenum name) GLboolean glewExperimental = GL_FALSE; -#ifndef GLEW_MX +#if !defined(GLEW_MX) #if defined(_WIN32) extern GLenum wglewContextInit (void); @@ -53,5 +50,4 @@ GLenum glewInit () #endif /* _WIN32 */ } -#endif - +#endif /* !GLEW_MX */ diff --git a/auto/src/glew_wgl_init.c b/auto/src/glew_init_wgl.c similarity index 99% rename from auto/src/glew_wgl_init.c rename to auto/src/glew_init_wgl.c index 029abd5..e7659f1 100644 --- a/auto/src/glew_wgl_init.c +++ b/auto/src/glew_init_wgl.c @@ -1,4 +1,3 @@ - /* ------------------------------------------------------------------------- */ static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL; diff --git a/auto/src/glew_wgl_head.c b/auto/src/glew_license.h similarity index 88% rename from auto/src/glew_wgl_head.c rename to auto/src/glew_license.h index afca06b..23dec60 100644 --- a/auto/src/glew_wgl_head.c +++ b/auto/src/glew_license.h @@ -1,7 +1,7 @@ /* ** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon +** Copyright (C) 2002-2005, Milan Ikits +** Copyright (C) 2002-2005, Marcelo E. Magallon ** Copyright (C) 2002, Lev Povalahev ** All rights reserved. ** @@ -29,6 +29,3 @@ ** THE POSSIBILITY OF SUCH DAMAGE. */ -#include "glew_utils.h" - -#if !defined(GLEW_MX) diff --git a/auto/src/glew_str_head.c b/auto/src/glew_str_head.c index 6489f95..5596954 100644 --- a/auto/src/glew_str_head.c +++ b/auto/src/glew_str_head.c @@ -1,36 +1,3 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -#include "glew_utils.h" - #ifdef GLEW_MX GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name) #else diff --git a/src/glew_utils.c b/auto/src/glew_utils.c similarity index 100% rename from src/glew_utils.c rename to auto/src/glew_utils.c diff --git a/src/glew_utils.h b/auto/src/glew_utils.h similarity index 99% rename from src/glew_utils.h rename to auto/src/glew_utils.h index 01fe502..e7f95ff 100644 --- a/src/glew_utils.h +++ b/auto/src/glew_utils.h @@ -96,4 +96,5 @@ extern GLuint _glewStrCLen (const GLubyte* s, GLubyte c); extern GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n); extern GLboolean _glewStrSame2 (const GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb); extern GLboolean _glewStrSame3 (const GLubyte* a, GLuint na, const GLubyte* b, GLuint nb); + #endif /* __glew_utils_h__ */ diff --git a/auto/src/glew_wgl_tail.c b/auto/src/glew_wgl_tail.c deleted file mode 100644 index a6c603a..0000000 --- a/auto/src/glew_wgl_tail.c +++ /dev/null @@ -1,2 +0,0 @@ - return GLEW_OK; -} diff --git a/auto/src/glew_wgl_var.c b/auto/src/glew_wgl_var.c deleted file mode 100644 index b6ae68d..0000000 --- a/auto/src/glew_wgl_var.c +++ /dev/null @@ -1,5 +0,0 @@ - -#endif /* !GLEW_MX */ - -/* ------------------------------------------------------------------------- */ - diff --git a/auto/src/glewinfo_head.c b/auto/src/glewinfo_head.c index 2d50d08..584122e 100644 --- a/auto/src/glewinfo_head.c +++ b/auto/src/glewinfo_head.c @@ -1,34 +1,3 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - #include #include #include diff --git a/auto/src/glx_license.h b/auto/src/glx_license.h new file mode 100644 index 0000000..538fe96 --- /dev/null +++ b/auto/src/glx_license.h @@ -0,0 +1,19 @@ +/* +** The contents of this file are subject to the GLX Public License Version 1.0 +** (the "License"). You may not use this file except in compliance with the +** License. You may obtain a copy of the License at Silicon Graphics, Inc., +** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043 +** or at http://www.sgi.com/software/opensource/glx/license.html. +** +** Software distributed under the License is distributed on an "AS IS" +** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY +** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR +** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific +** language governing rights and limitations under the License. +** +** The Original Software is GLX version 1.2 source code, released February, +** 1999. The developer of the Original Software is Silicon Graphics, Inc. +** Those portions of the Subject Software created by Silicon Graphics, Inc. +** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved. +*/ + diff --git a/auto/src/glxew_head.h b/auto/src/glxew_head.h index e2ac528..e87c746 100644 --- a/auto/src/glxew_head.h +++ b/auto/src/glxew_head.h @@ -1,53 +1,3 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -/* -** The contents of this file are subject to the GLX Public License Version 1.0 -** (the "License"). You may not use this file except in compliance with the -** License. You may obtain a copy of the License at Silicon Graphics, Inc., -** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043 -** or at http://www.sgi.com/software/opensource/glx/license.html. -** -** Software distributed under the License is distributed on an "AS IS" -** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY -** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR -** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific -** language governing rights and limitations under the License. -** -** The Original Software is GLX version 1.2 source code, released February, -** 1999. The developer of the Original Software is Silicon Graphics, Inc. -** Those portions of the Subject Software created by Silicon Graphics, Inc. -** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved. -*/ - #ifndef __glxew_h__ #define __glxew_h__ #define __GLXEW_H__ diff --git a/auto/src/sgi_license.h b/auto/src/sgi_license.h new file mode 100644 index 0000000..eb57660 --- /dev/null +++ b/auto/src/sgi_license.h @@ -0,0 +1,29 @@ +/* +** License Applicability. Except to the extent portions of this file are +** made subject to an alternative license as permitted in the SGI Free +** Software License B, Version 1.1 (the "License"), the contents of this +** file are subject only to the provisions of the License. You may not use +** this file except in compliance with the License. You may obtain a copy +** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 +** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: +** +** http://oss.sgi.com/projects/FreeB +** +** Note that, as provided in the License, the Software is distributed on an +** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS +** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND +** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A +** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. +** +** Original Code. The Original Code is: OpenGL Sample Implementation, +** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, +** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. +** Copyright in any portions created by third parties is as indicated +** elsewhere herein. All Rights Reserved. +** +** Additional Notice Provisions: This software was created using the +** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has +** not been independently verified as being compliant with the OpenGL(R) +** version 1.2.1 Specification. +*/ + diff --git a/auto/src/template.html b/auto/src/template.html new file mode 100644 index 0000000..328fc26 --- /dev/null +++ b/auto/src/template.html @@ -0,0 +1,71 @@ + + + + + + +GLEW: The OpenGL Extension Wrangler Library + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + +
Latest Release: 1.3.0

GLEW Logo

+ + + + + + + + + +
Download
Installation
Basic Usage
Advanced Usage
Credits & Copyright
Change Log
Project Page
Bug Tracker
+

+
+ + + + +
Last Update: 01-03-05
+ OpenGL Logo + SourceForge Logo +
+
+
+ +

The OpenGL Extension Wrangler Library

+ diff --git a/auto/src/wglew_head.h b/auto/src/wglew_head.h index ede192b..eb4e986 100644 --- a/auto/src/wglew_head.h +++ b/auto/src/wglew_head.h @@ -1,63 +1,3 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2004, 2003, 2002, Milan Ikits -** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon -** 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. -*/ - -/* -** License Applicability. Except to the extent portions of this file are -** made subject to an alternative license as permitted in the SGI Free -** Software License B, Version 1.1 (the "License"), the contents of this -** file are subject only to the provisions of the License. You may not use -** this file except in compliance with the License. You may obtain a copy -** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 -** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: -** -** http://oss.sgi.com/projects/FreeB -** -** Note that, as provided in the License, the Software is distributed on an -** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS -** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND -** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A -** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. -** -** Original Code. The Original Code is: OpenGL Sample Implementation, -** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, -** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. -** Copyright in any portions created by third parties is as indicated -** elsewhere herein. All Rights Reserved. -** -** Additional Notice Provisions: This software was created using the -** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has -** not been independently verified as being compliant with the OpenGL(R) -** version 1.2.1 Specification. -*/ - #ifndef __wglew_h__ #define __wglew_h__ #define __WGLEW_H__ diff --git a/build/vc6/glew_shared.dsp b/build/vc6/glew_shared.dsp index d6928e1..876af0b 100644 --- a/build/vc6/glew_shared.dsp +++ b/build/vc6/glew_shared.dsp @@ -153,19 +153,7 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=..\..\src\glew_gl.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_wgl.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_str.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_utils.c +SOURCE=..\..\src\glew.c # End Source File # End Group # Begin Group "Header Files" diff --git a/build/vc6/glew_static.dsp b/build/vc6/glew_static.dsp index 0de0d28..190f671 100644 --- a/build/vc6/glew_static.dsp +++ b/build/vc6/glew_static.dsp @@ -135,19 +135,7 @@ LIB32=link.exe -lib # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=..\..\src\glew_gl.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_wgl.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_str.c -# End Source File -# Begin Source File - -SOURCE=..\..\src\glew_utils.c +SOURCE=..\..\src\glew.c # End Source File # End Group # Begin Group "Header Files"