Changeset 20147 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- May 29, 2009 11:21:57 AM (16 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r17254 r20147 126 126 crserverlib/server_winpos.c \ 127 127 crserverlib/server_writeback.c \ 128 crserverlib/server_getshaders.c \ 128 129 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \ 129 130 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \ -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch.py
r15532 r20147 25 25 26 26 27 def GetTestWrapper(func_name):28 """Return a C preprocessor token to test in order to wrap code.29 This handles extensions.30 Example: GetTestWrapper("glActiveTextureARB") = "CR_multitexture"31 Example: GetTestWrapper("glBegin") = ""32 """33 cat = apiutil.Category(func_name)34 if (cat == "1.0" or35 cat == "1.1" or36 cat == "1.2" or37 cat == "Chromium" or38 cat == "GL_chromium"):39 return ''40 elif cat[0] =='1':41 # i.e. OpenGL 1.3 or 1.4 or 1.542 return "OPENGL_VERSION_" + string.replace(cat, ".", "_")43 else:44 assert cat != ''45 return string.replace(cat, "GL_", "")46 47 48 49 27 for func_name in apiutil.AllSpecials( sys.argv[1]+"/../state_tracker/state" ): 50 28 params = apiutil.Parameters(func_name) … … 53 31 continue 54 32 55 wrap = GetTestWrapper(func_name)33 wrap = apiutil.GetCategoryWrapper(func_name) 56 34 if wrap: 57 35 print '#if defined(CR_%s)' % wrap … … 140 118 apiutil.FindSpecial( sys.argv[1]+"/../state_tracker/state", func_name )): 141 119 142 wrap = GetTestWrapper(func_name)120 wrap = apiutil.GetCategoryWrapper(func_name) 143 121 if wrap: 144 122 print '#if defined(CR_%s)' % wrap -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_get.py
r15532 r20147 70 70 'GetQueryObjectivARB' : 1, 71 71 'GetQueryObjectuivARB' : 1, 72 'GetQueryivARB' : 1 72 'GetQueryivARB' : 1, 73 'GetProgramiv' : 1, 74 'GetShaderiv' : 1 73 75 } 74 76 … … 85 87 'GetProgramEnvParameterfvARB', 86 88 'GetProgramivARB', 87 'AreProgramsResidentNV' 89 'AreProgramsResidentNV', 90 'GetProgramiv', 91 'GetShaderiv' 88 92 ]; 89 93 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_special
r15532 r20147 181 181 WindowPos3sARB 182 182 WindowPos3svARB 183 GetActiveAttrib 184 GetActiveUniform 185 GetAttachedShaders 186 GetShaderInfoLog 187 GetProgramInfoLog 188 GetShaderSource 189 GetUniformfv 190 GetUniformiv
Note:
See TracChangeset
for help on using the changeset viewer.