本文整理汇总了C++中Origin::draw方法的典型用法代码示例。如果您正苦于以下问题:C++ Origin::draw方法的具体用法?C++ Origin::draw怎么用?C++ Origin::draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Origin
的用法示例。
在下文中一共展示了Origin::draw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawScene
void ColoredCubeApp::drawScene()
{
D3DApp::drawScene();
// Restore default states, input layout and primitive topology
// because mFont->DrawText changes them. Note that we can
// restore the default states by passing null.
md3dDevice->OMSetDepthStencilState(0, 0);
float blendFactors[] = {0.0f, 0.0f, 0.0f, 0.0f};
md3dDevice->OMSetBlendState(0, blendFactors, 0xffffffff);
md3dDevice->IASetInputLayout(mVertexLayout);
// set some variables for the shader
int foo[1];
foo[0] = 0;
// set the point to the shader technique
D3D10_TECHNIQUE_DESC techDesc;
mTech->GetDesc(&techDesc);
//setting the color flip variable in the shader
mfxFLIPVar->SetRawValue(&foo[0], 0, sizeof(int));
rightWall.draw(mView, mProj, mTech);
//floor.draw(mView, mProj, mTech);
leftWall.draw(mView, mProj, mTech);
//ceiling.draw(mView, mProj, mTech);
shootCube.draw(mView, mProj, mTech);
hitCubes->draw(mView,mProj,mTech);
avoidCubes->draw(mView,mProj,mTech);
//for(int i = 0; i < 20; i++)
//{
// tiles[i].draw(mView, mProj, mTech);
// //wall[i].draw(mView,mProj,mTech);
//}
//draw the origin
origin.draw(mView, mProj, mTech);
// We specify DT_NOCLIP, so we do not care about width/height of the rect.
RECT R = {5, 5, 0, 0};
mFont->DrawText(0, mTimer.c_str(), -1, &R, DT_NOCLIP, BLUE);
mSwapChain->Present(0, 0);
}