Changeset 78384 in vbox
- Timestamp:
- May 6, 2019 10:09:57 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback.py
r78375 r78384 33 33 print('\tfeedback_spu.super.%s(%s);' % ( func_name, apiutil.MakeCallString(params) )) 34 34 print('}') 35 print('') 36 print('static %s FEEDBACKSPU_APIENTRY feedbackspu_FeedbackWrap%s(%s)' % ( return_type, func_name, apiutil.MakeDeclarationString(params) )) 37 print('{') 38 if len(params) == 0: 39 print('\tcrStateFeedback%s(&feedback_spu.StateTracker);' % ( func_name, )) 40 else: 41 print('\tcrStateFeedback%s(&feedback_spu.StateTracker, %s);' % ( func_name, apiutil.MakeCallString(params) )) 42 print('}') 43 if apiutil.FindSpecial( "select", func_name ): 44 print('static %s FEEDBACKSPU_APIENTRY feedbackspu_SelectWrap%s(%s)' % ( return_type, func_name, apiutil.MakeDeclarationString(params) )) 45 print('{') 46 if len(params) == 0: 47 print('\tcrStateSelect%s(&feedback_spu.StateTracker);' % ( func_name, )) 48 else: 49 print('\tcrStateSelect%s(&feedback_spu.StateTracker, %s);' % ( func_name, apiutil.MakeCallString(params) )) 50 print('}') 35 51 36 52 … … 38 54 print(""" 39 55 #define CHANGE(name, func) crSPUChangeInterface((void *)&(feedback_spu.self), (void *)feedback_spu.self.name, (void *)((SPUGenericFunction) func)) 40 #define CHANGESWAP(name, swapfunc, regfunc) crSPUChangeInterface( (void *)&(feedback_spu.self), (void *)feedback_spu.self.name, (void *)((SPUGenericFunction) (feedback_spu.swap ? swapfunc: regfunc )))41 56 42 57 static void __loadFeedbackAPI( void ) … … 47 62 params = apiutil.Parameters(func_name) 48 63 if apiutil.FindSpecial( "feedback", func_name ): 49 print('\tCHANGE(%s, crStateFeedback%s);' % (func_name, func_name ))64 print('\tCHANGE(%s, feedbackspu_FeedbackWrap%s);' % (func_name, func_name )) 50 65 print(""" 51 66 } … … 56 71 for func_name in keys: 57 72 if apiutil.FindSpecial( "select", func_name ): 58 print('\tCHANGE(%s, crStateSelect%s);' % (func_name, func_name ))73 print('\tCHANGE(%s, feedbackspu_SelectWrap%s);' % (func_name, func_name )) 59 74 elif apiutil.FindSpecial( "feedback", func_name ): 60 75 print('\tCHANGE(%s, feedbackspu_%s);' % (func_name, func_name ))
Note:
See TracChangeset
for help on using the changeset viewer.