VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_proto.py@ 61547

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

crOpenGL: tabs to spaces

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.2 KB
 
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
7
8import apiutil
9
10apiutil.CopyrightC()
11
12print """
13/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY packspu_proto.py SCRIPT */
14
15#ifndef PACKSPU_FUNCTIONS_H
16#define PACKSPU_FUNCTIONS_H 1
17
18#include <stdio.h>
19#include "cr_string.h"
20#include "cr_spu.h"
21#include "packspu.h"
22#include "cr_packfunctions.h"
23"""
24
25
26pack_specials = []
27
28keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
29
30# make list of special functions
31for func_name in keys:
32 if ("get" in apiutil.Properties(func_name) or
33 apiutil.FindSpecial( "packspu", func_name ) or
34 apiutil.FindSpecial( "packspu_flush", func_name ) or
35 apiutil.FindSpecial( "packspu_vertex", func_name )):
36 pack_specials.append( func_name )
37
38for func_name in keys:
39 if apiutil.FindSpecial( "packspu_unimplemented", func_name ):
40 continue
41 if func_name in pack_specials:
42 return_type = apiutil.ReturnType(func_name)
43 params = apiutil.Parameters(func_name)
44 print 'extern %s PACKSPU_APIENTRY packspu_%s( %s );' % ( return_type, func_name, apiutil.MakeDeclarationString(params) )
45
46
47print """
48#endif
49"""
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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