本文整理汇总了C++中LPDIRECT3DDEVICE::Present方法的典型用法代码示例。如果您正苦于以下问题:C++ LPDIRECT3DDEVICE::Present方法的具体用法?C++ LPDIRECT3DDEVICE::Present怎么用?C++ LPDIRECT3DDEVICE::Present使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPDIRECT3DDEVICE
的用法示例。
在下文中一共展示了LPDIRECT3DDEVICE::Present方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: d3d_swap
bool d3d_swap(void *data, LPDIRECT3DDEVICE dev)
{
#if defined(_XBOX1)
D3DDevice_Swap(0);
#elif defined(_XBOX360)
D3DDevice_Present(dev);
#elif defined(HAVE_D3D9) && !defined(__cplusplus)
if (IDirect3DDevice9_Present(dev, NULL, NULL, NULL, NULL) == D3DERR_DEVICE_LOST)
return false;
#else
if (dev->Present(NULL, NULL, NULL, NULL) != D3D_OK)
return false;
#endif
return true;
}
示例2: d3d_swap
bool d3d_swap(void *data, LPDIRECT3DDEVICE dev)
{
#if defined(_XBOX1)
D3DDevice_Swap(0);
#elif defined(_XBOX360)
D3DDevice_Present(dev);
#else
if (dev->Present(NULL, NULL, NULL, NULL) != D3D_OK)
{
RARCH_ERR("[D3D]: Present() failed.\n");
return false;
}
#endif
return true;
}
示例3: d3d_swap
void d3d_swap(void *data, LPDIRECT3DDEVICE dev)
{
d3d_video_t *d3d = (d3d_video_t*)data;
if (!d3d)
return;
#if defined(_XBOX1)
D3DDevice_Swap(0);
#elif defined(_XBOX360)
D3DDevice_Present(dev);
#else
if (dev->Present(NULL, NULL, NULL, NULL) != D3D_OK)
{
RARCH_ERR("[D3D]: Present() failed.\n");
d3d->needs_restore = true;
}
#endif
}