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 "$ret WINAPI wine_$name(";
29 # Now, get the parameters
31 @args = split /,|\)/, $args;
34 if ($_ =~ /[a-z,A-Z]/) {
35 ($a) = ($_ =~ /^\s*(.*)\s*$/);
37 ($var) = ($a =~ /\*\*(\w*)/);
38 } elsif ($a =~ /\*/) {
39 ($var) = ($a =~ /\*(\w*)/);
41 ($var) = ($a =~ /\s(\w*)/);
43 @rargs = (@rargs, $a);
45 @names = (@names, $var);
65 print " ENTER_GL();\n";
82 print " LEAVE_GL();\n";
84 print " return ret;\n";