本文整理汇总了C++中CEngine::End方法的典型用法代码示例。如果您正苦于以下问题:C++ CEngine::End方法的具体用法?C++ CEngine::End怎么用?C++ CEngine::End使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEngine
的用法示例。
在下文中一共展示了CEngine::End方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: graphics
DWORD WINAPI graphics(LPVOID Param)
{
Params* params = (Params*)Param;
CEngine* engine = (params->engine);
float index = 0.0f;
engine->SetPerspective(D3DX_PI/4,1.0f,100.0f);
D3DXMatrixLookAtLH(&(engine->matView),
&D3DXVECTOR3 (0.0f, 0.0f, -10.0f), // eye
&D3DXVECTOR3 (0.0f, 0.0f, 0.0f), // at
&D3DXVECTOR3 (0.0f, 1.0f, 0.0f)); // up
engine->d3ddev->SetTransform(D3DTS_VIEW, &(engine->matView));
while (params->notQuit) {
engine->Clear();
engine->Begin();
for(list<CObject*>::iterator it = params->scene->lstChilds.begin(); it != params->scene->lstChilds.end(); ++it)
{
(*it)->update();
//cout << "posX: " << (*it)->vehicle.getPos().x << "posY: " << (*it)->vehicle->getPos().y << "posZ: " << (*it)->vehicle->getPos().z << endl;
}
engine->End();
}
return 0;
}