Last change
on this file since 28347 was 19099, checked in by vboxsync, 16 years ago |
crOpenGL: fix multicontext crashes (public bug #3762)
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1004 bytes
|
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 |
|
---|
11 | apiutil.CopyrightC()
|
---|
12 |
|
---|
13 | print """
|
---|
14 | #include "cr_server.h"
|
---|
15 | #include "feedbackspu.h"
|
---|
16 | #include "feedbackspu_proto.h"
|
---|
17 | """
|
---|
18 | custom = ["CreateContext", "MakeCurrent", "DestroyContext"]
|
---|
19 |
|
---|
20 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
21 |
|
---|
22 | for 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.