4 /* Auto-generated file... Do not edit ! */
13 # Now, the functions from the include file
15 open(INC, "/usr/X11R6/include/GL/gl.h") || die "Could not open GL/gl.h";
16 while ($line = <INC>) {
17 if ($line =~ /GLAPI.*GLAPIENTRY/) {
18 # Start of a function declaration
19 ($ret, $name, $args) = ($line =~ /GLAPI (.*) GLAPIENTRY *(.*)\((.*)/);
21 # Remove all extensions except the multitexture one (see OpenGL ABI)
22 if (($name !~ /(MESA|PGI|ARB|EXT)/) ||
23 ($name =~ /MultiTexCoord/) ||
24 ($name =~ /ActiveTextureARB/)) {
25 print "/***********************************************************************\n";
26 print " *\t\t$name\n";
28 print "$ret WINAPI wine_$name(";
32 # Now, get the parameters
34 @args = split /,|\)/, $args;
37 if ($_ =~ /[a-z,A-Z]/) {
38 ($a) = ($_ =~ /^\s*(.*)\s*$/);
40 ($var) = ($a =~ /\*\*(\w*)/);
41 } elsif ($a =~ /\*/) {
42 ($var) = ($a =~ /\*(\w*)/);
44 ($var) = ($a =~ /\s(\w*)/);
46 @rargs = (@rargs, $a);
48 @names = (@names, $var);
68 print " ENTER_GL();\n";
85 print " LEAVE_GL();\n";
87 print " return ret;\n";