コード例 #1
0
ファイル: GateDemo.cpp プロジェクト: derekqian/d3dcoder
void GateDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	HR(mFX->OnResetDevice());


	// The aspect ratio depends on the backbuffer dimensions, which can 
	// possibly change after a reset.  So rebuild the projection matrix.
	buildProjMtx();
}
コード例 #2
0
ファイル: DXMain.cpp プロジェクト: Soulrift/GSP295_Final
void Game::onResetDevice()
{
	HR(mFX->OnResetDevice());
	HR(mFont->OnResetDevice());

	gMyGameWorld->OnResetDevice();
	mSprite->OnResetDevice();

	// The aspect ratio depends on the backbuffer dimensions, which can 
	// possibly change after a reset.  So rebuild the projection matrix.
	buildProjMtx();
}
コード例 #3
0
ファイル: cube_demo.cpp プロジェクト: whateverpal/polygon
void CubeDemo::init(HWND* hWnd) {
    D3DRenderer::init(hWnd);

    mCameraRadius    = 10.0f;
    mCameraRotationY = 1.2 * D3DX_PI;
    mCameraHeight    = 5.0f;

    buildVertexBuffer();
    buildIndexBuffer();

    buildProjMtx();

    initAllVertexDeclarations();
}
コード例 #4
0
ファイル: CubeDemo.cpp プロジェクト: kasicass/introdx9
void CubeDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	buildProjMtx();
}