VirtualBox

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

最後變更 在這個檔案從23750是 15532,由 vboxsync 提交於 16 年 前

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 716 位元組
 
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 */'
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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