Changeset 31808 in vbox for trunk/src/VBox/GuestHost/OpenGL/include
- Timestamp:
- Aug 20, 2010 9:40:40 AM (14 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/chromium.h
r27889 r31808 684 684 #define GL_REAL_RENDERER 0x8B25 685 685 #define GL_REAL_EXTENSIONS 0x8B26 686 687 /*Global resource ids sharing*/ 688 #define GL_SHARE_CONTEXT_RESOURCES_CR 0x8B27 686 689 #endif 687 690 -
trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
r29930 r31808 98 98 CRHashTable *textureTable; /* all texture objects */ 99 99 CRHashTable *dlistTable; /* all display lists */ 100 CRHashTable *buffersTable; /* vbo/pbo */ 101 CRHashTable *fbTable; /* frame buffers */ 102 CRHashTable *rbTable; /* render buffers */ 103 100 104 GLint refCount; 105 GLint id; /*unique shared state id, it's not always matching some existing context id!*/ 106 GLint saveCount; 101 107 } CRSharedState; 102 108 … … 196 202 #ifndef IN_GUEST 197 203 DECLEXPORT(int32_t) crStateSaveContext(CRContext *pContext, PSSMHANDLE pSSM); 198 DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, PSSMHANDLE pSSM); 204 DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, CRHashTable * pCtxTable, PSSMHANDLE pSSM); 205 DECLEXPORT(void) crStateFreeShared(CRSharedState *s); 199 206 #endif 200 207 … … 219 226 GLenum format, GLenum type, GLvoid *pixels ); 220 227 228 DECLEXPORT(void) STATE_APIENTRY crStateShareContext(GLboolean value); 221 229 #ifdef __cplusplus 222 230 } -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h
r27091 r31808 10 10 #include "cr_hash.h" 11 11 #include "state/cr_statetypes.h" 12 #include "state/cr_statefuncs.h" 12 13 13 14 #ifdef __cplusplus … … 30 31 typedef struct { 31 32 GLuint refCount; 32 GLuint name; 33 GLuint id; 34 GLuint hwid; 33 35 GLenum usage; 34 36 GLenum access; … … 51 53 CRBufferObject *nullBuffer; /* name = 0 */ 52 54 53 CRHashTable *buffers;54 55 55 GLboolean bResyncNeeded; 56 56 } CRBufferObjectState; … … 59 59 DECLEXPORT(GLboolean) crStateIsBufferBound(GLenum target); 60 60 61 DECLEXPORT(GLuint) STATE_APIENTRY crStateBufferHWIDtoID(GLuint hwid); 62 DECLEXPORT(GLuint) STATE_APIENTRY crStateGetBufferHWID(GLuint id); 63 61 64 #ifdef __cplusplus 62 65 } -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_framebuffer.h
r28800 r31808 62 62 CRFramebufferObject *readFB, *drawFB; 63 63 CRRenderbufferObject *renderbuffer; 64 CRHashTable *framebuffers;65 CRHashTable *renderbuffers;66 64 67 65 /* Indicates that we have to resend FBO data to GPU on first glMakeCurrent call with owning context */ -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h
r27091 r31808 61 61 typedef struct { 62 62 GLenum target; 63 GLuint name; 63 GLuint id; 64 GLuint hwid; 64 65 65 66 /* The mipmap levels */ … … 237 238 DECLEXPORT(void) crStateDeleteTextureObject(CRTextureObj *tobj); 238 239 240 DECLEXPORT(GLuint) STATE_APIENTRY crStateTextureHWIDtoID(GLuint hwid); 241 DECLEXPORT(GLuint) STATE_APIENTRY crStateGetTextureHWID(GLuint id); 242 DECLEXPORT(GLuint) STATE_APIENTRY crStateGetTextureObjHWID(CRTextureObj *tobj); 239 243 240 244 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.