*** empty log message ***

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@153 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2003-10-27 03:11:08 +00:00
parent d8f5c71357
commit a17580e044
3 changed files with 16 additions and 4 deletions

View File

@ -46,7 +46,15 @@ foreach my $ext (sort @extlist)
make_separator($extname);
print "#ifdef $extname\n\n";
print "static void _glewInfo_$extname (void)\n{\n";
print " glewPrintExt(\"$extname\", $extvar, $extpre" . "ewGetExtension(\"$extname\"));\n";
if ($extvar =~ /VERSION/)
{
print " glewPrintExt(\"$extname\", $extvar, $extvar);\n";
}
else
{
print " glewPrintExt(\"$extname\", $extvar, $extpre" .
"ewGetExtension(\"$extname\"));\n";
}
output_decls($functions, \&make_pfn_info);
print "}\n\n";
print "#endif /* $extname */\n\n";

View File

@ -1,2 +1,2 @@
GL_WIN_swap_hint
void glAddSwapHintRectWin (GLint x, GLint y, GLsizei width, GLsizei height)
void glAddSwapHintRectWIN (GLint x, GLint y, GLsizei width, GLsizei height)

View File

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