VirtualBox

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

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
6from __future__ import print_function
7import sys
8
9import apiutil
10
11apiutil.CopyrightC()
12
13print("""
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
27pack_specials = []
28
29keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
30
31# make list of special functions
32for 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
39for 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
48print("""
49#endif
50""")
Note: See TracBrowser for help on using the repository browser.

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