*** empty log message ***

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@223 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-02-02 03:03:13 +00:00
parent 92c983a605
commit f7a917ba23
4 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,3 @@
separate building of static and shader object files separate building of static and shader object files
make install relinking (Darwin)
web page and documentation update web page and documentation update
web poll on separating glew, glxew and wglew web poll on separating glew, glxew and wglew

View File

@ -18,7 +18,7 @@ do 'bin/make.pl';
sub make_pfn_info($%) sub make_pfn_info($%)
{ {
my $name = $_[0]; my $name = $_[0];
return " glewInfoFunc((const GLubyte*)\"$_[0]\", $name == NULL);"; return " glewInfoFunc(\"$_[0]\", $name == NULL);";
} }
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
@ -48,12 +48,12 @@ foreach my $ext (sort @extlist)
print "static void _glewInfo_$extname (void)\n{\n"; print "static void _glewInfo_$extname (void)\n{\n";
if ($extvar =~ /VERSION/) if ($extvar =~ /VERSION/)
{ {
print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extvar);\n"; print " glewPrintExt(\"$extname\", $extvar, $extvar);\n";
} }
else else
{ {
print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extpre" . print " glewPrintExt(\"$extname\", $extvar, $extpre" .
"ewGetExtension((const GLubyte*)\"$extname\"));\n"; "ewGetExtension(\"$extname\"));\n";
} }
output_decls($functions, \&make_pfn_info); output_decls($functions, \&make_pfn_info);
print "}\n\n"; print "}\n\n";

View File

@ -47,7 +47,7 @@ foreach my $ext (sort @extlist)
my $pextvar = prefix_varname($extvar); my $pextvar = prefix_varname($extvar);
print "#ifdef $extname\n"; print "#ifdef $extname\n";
print " ctx->" . $pextvar . "= " . $extpre . "GetExtension((const GLubyte*)\"$extname\");\n"; print " ctx->" . $pextvar . "= " . $extpre . "GetExtension(\"$extname\");\n";
if (keys %$functions) if (keys %$functions)
{ {
if ($extname =~ /WGL_.*/) if ($extname =~ /WGL_.*/)

View File

@ -57,26 +57,26 @@ void glewDestroyContext ();
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
static void glewPrintExt (const GLubyte* name, GLint def1, GLint def2) static void glewPrintExt (const char* name, GLint def1, GLint def2)
{ {
unsigned int i; unsigned int i;
fprintf(f, "\n%s:", name); fprintf(f, "\n%s:", name);
for (i=0; i<62-strlen((const char*)name); i++) fprintf(f, " "); for (i=0; i<62-strlen(name); i++) fprintf(f, " ");
fprintf(f, "%s ", def1 ? "OK" : "MISSING"); fprintf(f, "%s ", def1 ? "OK" : "MISSING");
if (def1 != def2) if (def1 != def2)
fprintf(f, "[%s]\n", def2 ? "OK" : "MISSING"); fprintf(f, "[%s]\n", def2 ? "OK" : "MISSING");
else else
fprintf(f, "\n"); fprintf(f, "\n");
for (i=0; i<strlen((const char*)name)+1; i++) fprintf(f, "-"); for (i=0; i<strlen(name)+1; i++) fprintf(f, "-");
fprintf(f, "\n"); fprintf(f, "\n");
fflush(f); fflush(f);
} }
static void glewInfoFunc (const GLubyte* name, GLint undefined) static void glewInfoFunc (const char* name, GLint undefined)
{ {
unsigned int i; unsigned int i;
fprintf(f, " %s:", name); fprintf(f, " %s:", name);
for (i=0; i<60-strlen((const char*)name); i++) fprintf(f, " "); for (i=0; i<60-strlen(name); i++) fprintf(f, " ");
fprintf(f, "%s\n", undefined ? "MISSING" : "OK"); fprintf(f, "%s\n", undefined ? "MISSING" : "OK");
fflush(f); fflush(f);
} }
@ -87,7 +87,7 @@ static void glewInfoFunc (const GLubyte* name, GLint undefined)
static void _glewInfo_GL_VERSION_1_1 (void) static void _glewInfo_GL_VERSION_1_1 (void)
{ {
glewPrintExt((const GLubyte*)"GL_VERSION_1_1", GLEW_VERSION_1_1, GLEW_VERSION_1_1); glewPrintExt("GL_VERSION_1_1", GLEW_VERSION_1_1, GLEW_VERSION_1_1);
} }
#endif /* GL_VERSION_1_1 */ #endif /* GL_VERSION_1_1 */