示例#1
0
void StencilMirrorDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	HR(mFX->OnResetDevice());

	buildProjMtx();
}
示例#2
0
void XFileDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	HR(mFX->OnResetDevice());

	buildProjMtx();
}
示例#3
0
void AmbientDiffuseDemo::onResetDevice()
{
    mGfxStats->onResetDevice();
    HR(mFX->OnResetDevice());

    buildProjMtx();
}
示例#4
0
void Evolution::onResetDevice()
{
    mGfxStats->onResetDevice();
    HR(mFont->OnResetDevice());

    HR(mFX->OnResetDevice());

    buildProjMtx();
}
示例#5
0
void SolarSysDemo::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();
}
示例#6
0
void CameraDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	mTerrain->onResetDevice();


	// The aspect ratio depends on the backbuffer dimensions, which can 
	// possibly change after a reset.  So rebuild the projection matrix.
	float w = (float)md3dPP.BackBufferWidth;
	float h = (float)md3dPP.BackBufferHeight;
	gCamera->setLens(D3DX_PI * 0.25f, w/h, 1.0f, 5000.0f);
}
示例#7
0
void GfxStatsDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
}
示例#8
0
void CubeDemo::onResetDevice()
{
	mGfxStats->onResetDevice();
	buildProjMtx();
}