本文整理汇总了C++中CObjectManager::DrawTextHeader方法的典型用法代码示例。如果您正苦于以下问题:C++ CObjectManager::DrawTextHeader方法的具体用法?C++ CObjectManager::DrawTextHeader怎么用?C++ CObjectManager::DrawTextHeader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CObjectManager
的用法示例。
在下文中一共展示了CObjectManager::DrawTextHeader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ComposeFrame
void CGameRenderer::ComposeFrame(){
m_d3ddevice->Clear(0L, NULL, D3DCLEAR_TARGET, 0xFFFFFF, 1.0f, 0L); //clear render buffer
if(SUCCEEDED(m_d3ddevice->BeginScene())){ //can start rendering
//move objects
g_cObjectManager.move();
//set camera location
float x, y; //plane's current location
g_cObjectManager.GetPlayerLocation(x, y); //get plane's lcoation
if(m_bCameraDefaultMode)
SetViewMatrix(x+500, y, -350.0f);
else SetViewMatrix(x + g_nScreenWidth/2.0f, 1000.0f, -5000.0f);
//draw background
DrawBackground(x + g_nScreenWidth/2);
//draw objects
g_cObjectManager.draw();
if(currentKey > 4){
//while(VFrameCount < 6){
//for(VFrameCount = 0; VFrameCount < 6; VFrameCount++){
g_cObjectManager.draw2(currentKey-4);
// VFrameCount++;
//}
//}
if(AttackCount)
currentKey = currentKey - 4;
VFrameCount = 0;
}else{
AttackCount = FALSE;
g_cObjectManager.draw(currentKey);
}
//draw text on the HUD
g_cObjectManager.DrawTextHeader();
m_d3ddevice->EndScene(); //done rendering
}
} //ComposeFrame