You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1KB

  1. #!/usr/bin/perl
  2. ##
  3. ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  4. ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ##
  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.
  9. use strict;
  10. use warnings;
  11. use lib '.';
  12. do 'bin/make.pl';
  13. ## Output declarations for the _glewInit_[extension] functions defined
  14. ## by make_init.pl script. These are necessary for for initializers to
  15. ## call each other, such as a core GL 3 context that depends on certain
  16. ## extensions.
  17. #-------------------------------------------------------------------------------
  18. my @extlist = ();
  19. my %extensions = ();
  20. our $type = shift;
  21. if (@ARGV)
  22. {
  23. @extlist = @ARGV;
  24. foreach my $ext (sort @extlist)
  25. {
  26. my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
  27. parse_ext($ext);
  28. #print "#ifdef $extname\n\n";
  29. if (keys %$functions)
  30. {
  31. print "static GLboolean _glewInit_$extname ();\n";
  32. }
  33. #print "#endif /* $extname */\n\n";
  34. }
  35. }