VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_state.py@ 42500

Last change on this file since 42500 was 42499, checked in by vboxsync, 12 years ago

crOgl/wddm: per-context connections

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 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#include "cr_server.h"
15#include "feedbackspu.h"
16#include "feedbackspu_proto.h"
17"""
18custom = ["CreateContext", "VBoxCreateContext", "MakeCurrent", "DestroyContext"]
19
20keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
21
22for func_name in keys:
23 if apiutil.FindSpecial( "feedback_state", func_name ):
24 if func_name in custom:
25 continue
26 return_type = apiutil.ReturnType(func_name)
27 params = apiutil.Parameters(func_name)
28 print '%s FEEDBACKSPU_APIENTRY feedbackspu_%s( %s )' % (return_type, func_name, apiutil.MakeDeclarationString(params))
29 print '{'
30 print '\tcrState%s( %s );' % (func_name, apiutil.MakeCallString(params))
31 print ''
32 print '\tfeedback_spu.super.%s( %s );' % (func_name, apiutil.MakeCallString(params))
33 print '}'
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