VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/pack/packspu_flush.py@ 16684

Last change on this file since 16684 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 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
6import sys
7
8import apiutil
9
10
11apiutil.CopyrightC()
12
13print """
14/* DO NOT EDIT - this file generated by packspu_flush.py script */
15
16/* These are otherwise ordinary functions which require that the buffer be
17 * flushed immediately after packing the function.
18 */
19#include "cr_glstate.h"
20#include "cr_packfunctions.h"
21#include "packspu.h"
22#include "packspu_proto.h"
23"""
24
25keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
26
27for func_name in apiutil.AllSpecials( "packspu_flush" ):
28 params = apiutil.Parameters(func_name)
29 print 'void PACKSPU_APIENTRY packspu_%s( %s )' % ( func_name, apiutil.MakeDeclarationString(params))
30 print '{'
31 print '\tGET_THREAD(thread);'
32 print '\tif (pack_spu.swap)'
33 print '\t{'
34 print '\t\tcrPack%sSWAP( %s );' % ( func_name, apiutil.MakeCallString( params ) )
35 print '\t}'
36 print '\telse'
37 print '\t{'
38 print '\t\tcrPack%s( %s );' % ( func_name, apiutil.MakeCallString( params ) )
39 print '\t}'
40 print '\tpackspuFlush( (void *) thread );'
41 print '}\n'
Note: See TracBrowser for help on using the repository browser.

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