VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_header.py@ 24503

Last change on this file since 24503 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 716 bytes
Line 
1# Copyright (c) 2001, Stanford University
2# All rights reserved.
3#
4# See the file LICENSE.txt for information on redistributing this software.
5
6import sys;
7import cPickle;
8import types;
9import string;
10import re;
11
12sys.path.append( "../opengl_stub" )
13
14import stub_common;
15
16parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
17gl_mapping = cPickle.load( parsed_file )
18
19stub_common.CopyrightC()
20
21print """#ifndef CR_UNPACKFUNCTIONS_H
22#define CR_UNPACKFUNCTIONS_H
23"""
24
25keys = gl_mapping.keys()
26keys.sort()
27
28for func_name in keys:
29 ( return_type, arg_names, arg_types ) = gl_mapping[func_name]
30 print 'void crUnpack%s();' %( func_name )
31print 'void crUnpackExtend();'
32print '\n#endif /* CR_UNPACKFUNCTIONS_H */'
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette