Changeset 40691 in vbox for trunk/src/VBox/GuestHost/OpenGL/include
- Timestamp:
- Mar 28, 2012 3:48:51 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77147
- Location:
- trunk/src/VBox/GuestHost/OpenGL/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
r40431 r40691 207 207 DECLEXPORT(CRContext *) crStateGetCurrent(void); 208 208 DECLEXPORT(void) crStateDestroyContext(CRContext *ctx); 209 DECLEXPORT(GLboolean) crStateEnableDiffOnMakeCurrent(GLboolean fEnable); 209 210 210 211 CRContext * crStateSwichPrepare(CRContext *toCtx); … … 227 228 #ifndef IN_GUEST 228 229 DECLEXPORT(int32_t) crStateSaveContext(CRContext *pContext, PSSMHANDLE pSSM); 229 DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, CRHashTable * pCtxTable, PSSMHANDLE pSSM); 230 typedef DECLCALLBACK(CRContext*) FNCRSTATE_CONTEXT_GET(void*); 231 typedef FNCRSTATE_CONTEXT_GET *PFNCRSTATE_CONTEXT_GET; 232 DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, CRHashTable * pCtxTable, PFNCRSTATE_CONTEXT_GET pfnCtxGet, PSSMHANDLE pSSM); 230 233 DECLEXPORT(void) crStateFreeShared(CRSharedState *s); 231 234 #endif -
trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h
r39603 r40691 104 104 } CRMuralInfo; 105 105 106 typedef struct { 107 char *pszDpyName; 108 GLint visualBits; 109 int32_t internalID; 110 } CRCreateInfo_t; 111 112 typedef struct { 113 CRContext *pContext; 114 int SpuContext; 115 CRCreateInfo_t CreateInfo; 116 } CRContextInfo; 117 106 118 /** 107 119 * A client is basically an upstream Cr Node (connected via mothership) … … 113 125 uint64_t pid; /*guest pid*/ 114 126 GLint currentContextNumber; 115 CRContext *currentCtx;127 CRContextInfo *currentCtxInfo; 116 128 GLint currentWindow; 117 129 CRMuralInfo *currentMural; … … 173 185 GLboolean bIsInLoadingState; /* Indicates if we're in process of loading VM snapshot */ 174 186 GLboolean bIsInSavingState; /* Indicates if we're in process of saving VM snapshot */ 187 CRContextInfo *currentCtxInfo; 175 188 GLint currentWindow; 176 189 GLint currentNativeWindow; … … 195 208 CRLimitsState limits; /**< GL limits for any contexts we create */ 196 209 197 int SpuContext; /**< Rendering context for the head SPU */ 198 int SpuContextVisBits; /**< Context's visual attributes */ 199 char *SpuContextDpyName; /**< Context's dpyName */ 210 CRContextInfo MainContextInfo; 200 211 201 212 CRHashTable *contextTable; /**< hash table for rendering contexts */ 202 CRHashTable *pContextCreateInfoTable; /**< hash table with contexts creation info */203 CRContext *DummyContext; /**< used when no other bound context */204 213 205 214 CRHashTable *programTable; /**< for vertex programs */ … … 267 276 GLboolean bUseOutputRedirect; /* Whether the output redirect was set. */ 268 277 CROutputRedirect outputRedirect; 278 279 GLboolean bUseMultipleContexts; 269 280 } CRServer; 270 281 -
trunk/src/VBox/GuestHost/OpenGL/include/cr_spu.h
r36231 r40691 137 137 typedef HGLRC (WGL_APIENTRY *wglCreateContextFunc_t)(HDC); 138 138 typedef void (WGL_APIENTRY *wglDeleteContextFunc_t)(HGLRC); 139 typedef BOOL (WGL_APIENTRY *wglShareListsFunc_t)(HGLRC,HGLRC); 139 140 typedef BOOL (WGL_APIENTRY *wglMakeCurrentFunc_t)(HDC,HGLRC); 140 141 typedef BOOL (WGL_APIENTRY *wglSwapBuffersFunc_t)(HDC); … … 315 316 wglCreateContextFunc_t wglCreateContext; 316 317 wglDeleteContextFunc_t wglDeleteContext; 318 wglShareListsFunc_t wglShareLists; 317 319 wglMakeCurrentFunc_t wglMakeCurrent; 318 320 wglSwapBuffersFunc_t wglSwapBuffers;
Note:
See TracChangeset
for help on using the changeset viewer.