Last change
on this file since 59123 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 |
|
---|
6 | import sys;
|
---|
7 | import cPickle;
|
---|
8 | import types;
|
---|
9 | import string;
|
---|
10 | import re;
|
---|
11 |
|
---|
12 | sys.path.append( "../opengl_stub" )
|
---|
13 |
|
---|
14 | import stub_common;
|
---|
15 |
|
---|
16 | parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
|
---|
17 | gl_mapping = cPickle.load( parsed_file )
|
---|
18 |
|
---|
19 | stub_common.CopyrightC()
|
---|
20 |
|
---|
21 | print """#ifndef CR_UNPACKFUNCTIONS_H
|
---|
22 | #define CR_UNPACKFUNCTIONS_H
|
---|
23 | """
|
---|
24 |
|
---|
25 | keys = gl_mapping.keys()
|
---|
26 | keys.sort()
|
---|
27 |
|
---|
28 | for func_name in keys:
|
---|
29 | ( return_type, arg_names, arg_types ) = gl_mapping[func_name]
|
---|
30 | print 'void crUnpack%s();' %( func_name )
|
---|
31 | print 'void crUnpackExtend();'
|
---|
32 | print '\n#endif /* CR_UNPACKFUNCTIONS_H */'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.