mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
*** 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:
parent
92c983a605
commit
f7a917ba23
1
TODO.txt
1
TODO.txt
@ -1,4 +1,3 @@
|
||||
separate building of static and shader object files
|
||||
make install relinking (Darwin)
|
||||
web page and documentation update
|
||||
web poll on separating glew, glxew and wglew
|
||||
|
@ -18,7 +18,7 @@ do 'bin/make.pl';
|
||||
sub make_pfn_info($%)
|
||||
{
|
||||
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";
|
||||
if ($extvar =~ /VERSION/)
|
||||
{
|
||||
print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extvar);\n";
|
||||
print " glewPrintExt(\"$extname\", $extvar, $extvar);\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print " glewPrintExt((const GLubyte*)\"$extname\", $extvar, $extpre" .
|
||||
"ewGetExtension((const GLubyte*)\"$extname\"));\n";
|
||||
print " glewPrintExt(\"$extname\", $extvar, $extpre" .
|
||||
"ewGetExtension(\"$extname\"));\n";
|
||||
}
|
||||
output_decls($functions, \&make_pfn_info);
|
||||
print "}\n\n";
|
||||
|
@ -47,7 +47,7 @@ foreach my $ext (sort @extlist)
|
||||
my $pextvar = prefix_varname($extvar);
|
||||
|
||||
print "#ifdef $extname\n";
|
||||
print " ctx->" . $pextvar . "= " . $extpre . "GetExtension((const GLubyte*)\"$extname\");\n";
|
||||
print " ctx->" . $pextvar . "= " . $extpre . "GetExtension(\"$extname\");\n";
|
||||
if (keys %$functions)
|
||||
{
|
||||
if ($extname =~ /WGL_.*/)
|
||||
|
@ -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;
|
||||
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");
|
||||
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, "-");
|
||||
for (i=0; i<strlen(name)+1; i++) fprintf(f, "-");
|
||||
fprintf(f, "\n");
|
||||
fflush(f);
|
||||
}
|
||||
|
||||
static void glewInfoFunc (const GLubyte* name, GLint undefined)
|
||||
static void glewInfoFunc (const char* name, GLint undefined)
|
||||
{
|
||||
unsigned int i;
|
||||
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");
|
||||
fflush(f);
|
||||
}
|
||||
@ -87,7 +87,7 @@ static void glewInfoFunc (const GLubyte* name, GLint undefined)
|
||||
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user