本文整理汇总了C++中CR_DDI_PROLOGUE函数的典型用法代码示例。如果您正苦于以下问题:C++ CR_DDI_PROLOGUE函数的具体用法?C++ CR_DDI_PROLOGUE怎么用?C++ CR_DDI_PROLOGUE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CR_DDI_PROLOGUE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wglDescribeLayerPlane_prox
BOOL WINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane,
UINT nBytes, LPLAYERPLANEDESCRIPTOR lpd )
{
CR_DDI_PROLOGUE();
crWarning( "wglDescribeLayerPlane: unimplemented" );
return 0;
}
示例2: DrvSetContext
//we're not going to change icdTable at runtime, so callback is unused
PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback)
{
ContextInfo *pContext;
WindowInfo *pWindowInfo;
BOOL ret = false;
CR_DDI_PROLOGUE();
(void) (callback);
crHashtableLock(stub.windowTable);
crHashtableLock(stub.contextTable);
pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc);
if (pContext)
{
pWindowInfo = stubGetWindowInfo(hdc);
if (pWindowInfo)
ret = stubMakeCurrent(pWindowInfo, pContext);
else
crError("no window info available.");
}
else
crError("No context found.");
crHashtableUnlock(stub.contextTable);
crHashtableUnlock(stub.windowTable);
return ret ? &icdTable : NULL;
}
示例3: DECLEXPORT
DECLEXPORT(GLint) WINAPI VBoxGetWindowId( HDC hdc )
{
WindowInfo *window;
GLint winid = 0;
CR_DDI_PROLOGUE();
crHashtableLock(stub.windowTable);
window = stubGetWindowInfo(hdc);
if (!window)
{
crWarning("stubGetWindowInfo: window not found!");
goto end;
}
if (!window->spuWindow)
{
crWarning("stubGetWindowInfo: window is null!");
goto end;
}
winid = window->spuWindow;
end:
crHashtableUnlock(stub.windowTable);
return winid;
}
示例4: DrvCreateContext
HGLRC APIENTRY DrvCreateContext(HDC hdc)
{
char dpyName[MAX_DPY_NAME];
ContextInfo *context;
CR_DDI_PROLOGUE();
crDebug( "DrvCreateContext(0x%x) called.", hdc);
stubInit();
CRASSERT(stub.contextTable);
sprintf(dpyName, "%d", hdc);
#ifndef VBOX_CROGL_USE_VBITS_SUPERSET
if (stub.haveNativeOpenGL)
desiredVisual |= ComputeVisBits( hdc );
#endif
context = stubNewContext(dpyName, desiredVisual, UNDECIDED, 0
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
, NULL
#endif
);
if (!context)
return 0;
return (HGLRC) context->id;
}
示例5: wglGetLayerPaletteEntries_prox
int WINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,
int entries, COLORREF *cr )
{
CR_DDI_PROLOGUE();
crWarning( "wglGetLayerPaletteEntries: unsupported" );
return 0;
}
示例6: wglCreateLayerContext_prox
HGLRC WINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane )
{
CR_DDI_PROLOGUE();
stubInit();
crWarning( "wglCreateLayerContext: unsupported" );
return 0;
}
示例7: DrvDeleteContext
BOOL APIENTRY DrvDeleteContext(HGLRC hglrc)
{
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
ContextInfo *pContext;
PVBOXUHGSMI pHgsmi = NULL;
#endif
CR_DDI_PROLOGUE();
crDebug( "DrvDeleteContext(0x%x) called", hglrc );
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
crHashtableLock(stub.contextTable);
pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc);
if (pContext)
pHgsmi = pContext->pHgsmi;
crHashtableUnlock(stub.contextTable);
#endif
stubDestroyContext( (unsigned long) hglrc );
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
if (pHgsmi)
VBoxCrHgsmiDestroy(pHgsmi);
#endif
return true;
}
示例8: DrvDeleteContext
BOOL APIENTRY DrvDeleteContext(HGLRC hglrc)
{
CR_DDI_PROLOGUE();
/*crDebug( "DrvDeleteContext(0x%x) called", hglrc );*/
stubDestroyContext( (unsigned long) hglrc );
return 1;
}
示例9: wglGetExtensionsStringARB_prox
const GLubyte * WINAPI wglGetExtensionsStringARB_prox(HDC hdc)
{
CR_DDI_PROLOGUE();
(void) hdc;
return gsz_wgl_extensions;
}
示例10: wglMakeCurrent_prox
BOOL WINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc )
{
ContextInfo *context;
WindowInfo *window;
BOOL ret;
CR_DDI_PROLOGUE();
crHashtableLock(stub.windowTable);
crHashtableLock(stub.contextTable);
context = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc);
window = stubGetWindowInfo(hdc);
if (hglrc!=0 && !context)
{
crWarning("wglMakeCurrent got unexpected hglrc 0x%x", hglrc);
}
ret = stubMakeCurrent( window, context );
crHashtableUnlock(stub.contextTable);
crHashtableUnlock(stub.windowTable);
return ret;
}
示例11: wglUseFontOutlinesW_prox
BOOL WINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,
FLOAT deviation, FLOAT extrusion, int format,
LPGLYPHMETRICSFLOAT gmf )
{
CR_DDI_PROLOGUE();
crWarning( "wglUseFontOutlinesW: unsupported" );
return 0;
}
示例12: wglSwapBuffers_prox
BOOL WINAPI
wglSwapBuffers_prox( HDC hdc )
{
WindowInfo *window = stubGetWindowInfo(hdc);
CR_DDI_PROLOGUE();
stubSwapBuffers( window, 0 );
return 1;
}
示例13: DrvSetLayerPaletteEntries
int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
int iStart, int cEntries,
CONST COLORREF *pcr)
{
CR_DDI_PROLOGUE();
crWarning( "DrvSetLayerPaletteEntries: unsupported" );
return 0;
}
示例14: wglGetCurrentDC_prox
HDC WINAPI wglGetCurrentDC_prox( void )
{
ContextInfo *context = stubGetCurrentContext();
CR_DDI_PROLOGUE();
if (context && context->currentDrawable)
return (HDC) context->currentDrawable->drawable;
else
return (HDC) NULL;
}
示例15: DrvDescribeLayerPlane
BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat,
int iLayerPlane, UINT nBytes,
LPLAYERPLANEDESCRIPTOR plpd)
{
CR_DDI_PROLOGUE();
crWarning( "DrvDescribeLayerPlane: unimplemented" );
CRASSERT(false);
return 0;
}