3
## Copyright (C) 2003-2005, Marcelo E. Magallon <mmagallo[]debian org>
4
## Copyright (C) 2003-2005, Milan Ikits <milan ikits[]ieee org>
6
## This program is distributed under the terms and conditions of the GNU
7
## General Public License Version 2 as published by the Free Software
8
## Foundation or, at your option, any later version.
15
#---------------------------------------------------------------------------------------
17
# function pointer definition
20
return "PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . " = NULL;";
23
# function pointer definition
24
sub make_init_call($%)
26
my $name = prefixname($_[0]);
27
return " r = r || (" . $name . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress((const GLubyte*)\"" . $name . "\")) == NULL;";
30
#---------------------------------------------------------------------------------------
39
foreach my $ext (sort @extlist)
41
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
43
print "#ifdef $extname\n";
44
print " _glewInfo_$extname();\n";
45
print "#endif /* $extname */\n";