Exemplo n.º 1
0
void FixedFunctions::Reset()
{
	ResetRenderStates();
	SetColor();
	ResetTransformStates();
	ResetTextureStageStates();
	ResetMaterialStates();
	ResetLights();
	SetClipPlaneEnabled();
	SetClipPlane();
	SetVertexBuffer();
}
Exemplo n.º 2
0
	//=============================================================================================================
	void CGame10::Run()
	{
		bool success = Initialize();
		dassert(, "CGame10::Run(): Initialization failed", success);

		success = LoadContent();
		dassert(, "CGame10::Run(): Content creation failed", success);

		dsad("Most of the features are not yet implemented");
		ResetRenderStates();

		Sync.Timer().Start();
		Application.Show();

		valid = false;

		while( Application.Run() )
		{
			if( Application.Active() )
			{
				if( !valid )
				{
					valid = Validate();
				}
				else
				{
					if( fixedtimestep )
						Sync.Update();
					else
						Update();

					Draw();
				}
			}
			else
			{
				valid = false;
				Sleep(100);
			}
		}

		UnloadContent();
	}