Last change
on this file since 41971 was 20083, checked in by vboxsync, 16 years ago |
crOpenGL: tabs to spaces
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
1.2 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 | import sys
|
---|
7 |
|
---|
8 | import apiutil
|
---|
9 |
|
---|
10 | apiutil.CopyrightC()
|
---|
11 |
|
---|
12 | print """
|
---|
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 |
|
---|
26 | pack_specials = []
|
---|
27 |
|
---|
28 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
29 |
|
---|
30 | # make list of special functions
|
---|
31 | for 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 |
|
---|
38 | for 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 |
|
---|
47 | print """
|
---|
48 | #endif
|
---|
49 | """
|
---|
Note:
See
TracBrowser
for help on using the repository browser.