本文整理汇总了C++中LPD3DXSPRITE::Release方法的典型用法代码示例。如果您正苦于以下问题:C++ LPD3DXSPRITE::Release方法的具体用法?C++ LPD3DXSPRITE::Release怎么用?C++ LPD3DXSPRITE::Release使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPD3DXSPRITE
的用法示例。
在下文中一共展示了LPD3DXSPRITE::Release方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Direct3D_Shutdown
void Direct3D_Shutdown()
{
if (spriteobj) spriteobj->Release();
if (d3ddev) d3ddev->Release();
if (d3d) d3d->Release();
}
示例2: dx9vid_shutdown
void dx9vid_shutdown()
{
g_screenSprite->Release(); // release the screen sprite
g_screenTex->Release(); // release the screen texture
d3ddev->Release(); // close and release the 3D device
d3d->Release(); // close and release Direct3D
}
示例3: resetAdditions
static void resetAdditions()
{
if(imagetex)
imagetex->Release();
imagetex = NULL;
if(sprite)
sprite->Release();
sprite = NULL;
}
示例4: ShutdownGraphics
void ShutdownGraphics() {
if(spriteHandler) {
spriteHandler->Release();
}
if(device) {
device->Release();
}
if(d3d) {
d3d->Release();
}
}
示例5: Cleanup
//-----------------------------------------------------------------------------
// Name: Cleanup()
// Desc: Releases all previously initialized objects
//-----------------------------------------------------------------------------
VOID Cleanup()
{
if (sprite != NULL)
sprite->Release();
if( renderDevice != NULL )
renderDevice->Release();
if( g_pD3D != NULL )
g_pD3D->Release();
if( bg != NULL)
delete bg;
}
示例6: Render
void TextBox::Render()
{
LPD3DXSPRITE sprite;
D3DXCreateSprite(device, &sprite);
sprite->Begin(0);
if (!masked) font->DrawText(sprite, (label + text).c_str(), -1, &surface, DT_LEFT|DT_NOCLIP, color);
else
{
std::string mask = "";
for(unsigned int i = 0; i < text.length(); ++i)
mask.push_back('*');
font->DrawText(sprite, (label + mask).c_str(), -1, &surface, DT_LEFT|DT_NOCLIP, color);
}
sprite->End();
sprite->Release();
}