Changeset 44105 in vbox for trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
- Timestamp:
- Dec 12, 2012 11:59:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h
r43980 r44105 60 60 # define CR_STATE_SHAREDOBJ_USAGE_CLEAR(_pObj, _pCtx) (ASMBitClear((_pObj)->ctxUsage, (_pCtx)->id)) 61 61 # define CR_STATE_SHAREDOBJ_USAGE_IS_USED(_pObj) (ASMBitFirstSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3) >= 0) 62 # define CR_STATE_SHAREDOBJ_USAGE_GET_FIRST_USED_IDX(_pObj) (ASMBitFirstSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3)) 63 # define CR_STATE_SHAREDOBJ_USAGE_GET_NEXT_USED_IDX(_pObj, _i) (ASMBitNextSet((_pObj)->ctxUsage, sizeof ((_pObj)->ctxUsage)<<3, (_i))) 62 64 #else 63 65 # define CR_STATE_SHAREDOBJ_USAGE_INIT(_pObj) do {} while (0) … … 65 67 # define CR_STATE_SHAREDOBJ_USAGE_CLEAR(_pObj, _pCtx) do {} while (0) 66 68 # define CR_STATE_SHAREDOBJ_USAGE_IS_USED(_pObj) (GL_FALSE) 67 #endif 69 # define CR_STATE_SHAREDOBJ_USAGE_GET_FIRST_USED_IDX(_pObj) (-1) 70 # define CR_STATE_SHAREDOBJ_USAGE_GET_NEXT_USED_IDX(_pObj, _i) (-1) 71 #endif 72 # define CR_STATE_SHAREDOBJ_USAGE_FOREACH_USED_IDX(_pObj, _i) for (((int)(_i)) = CR_STATE_SHAREDOBJ_USAGE_GET_FIRST_USED_IDX(_pObj); ((int)(_i)) >= 0; ((int)(_i)) = CR_STATE_SHAREDOBJ_USAGE_GET_NEXT_USED_IDX((_pObj), ((int)(_i)))) 68 73 69 74 #define CR_MAX_EXTENTS 256 … … 241 246 typedef FNCRSTATE_CONTEXT_GET *PFNCRSTATE_CONTEXT_GET; 242 247 DECLEXPORT(int32_t) crStateLoadContext(CRContext *pContext, CRHashTable * pCtxTable, PFNCRSTATE_CONTEXT_GET pfnCtxGet, PSSMHANDLE pSSM, uint32_t u32Version); 243 DECLEXPORT(void) crStateFreeShared(CRContext *pContext, CRSharedState *s);244 248 DECLEXPORT(void) crStateFreeShared(CRContext *pContext, CRSharedState *s); 245 249 #endif
Note:
See TracChangeset
for help on using the changeset viewer.