示例#1
0
void InitializeHUD()
{
	bHardwareScene = (gScene->getSimType() == NX_SIMULATION_HW);

	hud.Clear();

	// Add hardware/software to HUD
	if (bHardwareScene)
	    hud.AddDisplayString("Hardware Scene", 0.74f, 0.92f);
	else
		hud.AddDisplayString("Software Scene", 0.74f, 0.92f);

	// Add pause to HUD
	if (bPause)  
		hud.AddDisplayString("Paused - Hit \"p\" to Unpause", 0.3f, 0.55f);
	else
		hud.AddDisplayString("", 0.0f, 0.0f);

	if (gbThreadScheduler)
	{
		hud.AddDisplayString("Simulation threads custom scheduler", 0.01f, 0.92f);
	}
	else if (gbThreadPolling)
	{
		hud.AddDisplayString("Simulation threads polling", 0.01f, 0.92f);
	}
	else if (gbThreadSDKManage)
	{
		hud.AddDisplayString("Simulation threads managed by SDK", 0.01f, 0.92);
	}
	else if (gbNoThread)
	{
		hud.AddDisplayString("No simulation threads", 0.01f, 0.92f);
	}
	else
		assert(0);
}
示例#2
0
void InitializeHUD()
{
	bHardwareScene = (gScene->getSimType() == NX_SIMULATION_HW);

	hud.Clear();

	// Add hardware/software to HUD
	if (bHardwareScene)
	    hud.AddDisplayString("Hardware Scene", 0.74f, 0.92f);
	else
		hud.AddDisplayString("Software Scene", 0.74f, 0.92f);

	if (gHardwareCloth)
	    hud.AddDisplayString("Hardware Cloth", 0.74f, 0.87f);
	else
		hud.AddDisplayString("Software Cloth", 0.74f, 0.87f);

	// Add pause to HUD
	if (bPause)  
		hud.AddDisplayString("Paused - Hit \"p\" to Unpause", 0.3f, 0.55f);
	else
		hud.AddDisplayString("", 0.0f, 0.0f);
}