Last change
on this file since 78376 was 69310, checked in by vboxsync, 7 years ago |
common/crOpenGL: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.3 KB
|
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 | from __future__ import print_function
|
---|
7 | import sys
|
---|
8 |
|
---|
9 | import apiutil
|
---|
10 |
|
---|
11 | apiutil.CopyrightC()
|
---|
12 |
|
---|
13 | print("""
|
---|
14 | /* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY packspu_proto.py SCRIPT */
|
---|
15 |
|
---|
16 | #ifndef PACKSPU_FUNCTIONS_H
|
---|
17 | #define PACKSPU_FUNCTIONS_H 1
|
---|
18 |
|
---|
19 | #include <stdio.h>
|
---|
20 | #include "cr_string.h"
|
---|
21 | #include "cr_spu.h"
|
---|
22 | #include "packspu.h"
|
---|
23 | #include "cr_packfunctions.h"
|
---|
24 | """)
|
---|
25 |
|
---|
26 |
|
---|
27 | pack_specials = []
|
---|
28 |
|
---|
29 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
30 |
|
---|
31 | # make list of special functions
|
---|
32 | for func_name in keys:
|
---|
33 | if ("get" in apiutil.Properties(func_name) or
|
---|
34 | apiutil.FindSpecial( "packspu", func_name ) or
|
---|
35 | apiutil.FindSpecial( "packspu_flush", func_name ) or
|
---|
36 | apiutil.FindSpecial( "packspu_vertex", func_name )):
|
---|
37 | pack_specials.append( func_name )
|
---|
38 |
|
---|
39 | for func_name in keys:
|
---|
40 | if apiutil.FindSpecial( "packspu_unimplemented", func_name ):
|
---|
41 | continue
|
---|
42 | if func_name in pack_specials:
|
---|
43 | return_type = apiutil.ReturnType(func_name)
|
---|
44 | params = apiutil.Parameters(func_name)
|
---|
45 | print('extern %s PACKSPU_APIENTRY packspu_%s(%s);' % ( return_type, func_name, apiutil.MakeDeclarationString(params) ))
|
---|
46 |
|
---|
47 |
|
---|
48 | print("""
|
---|
49 | #endif
|
---|
50 | """)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.