Пример #1
0
void InitializeHUD()
{
	hud.Clear();
	if (0 != gScene)
	{
		if (NX_SIMULATION_HW == gScene->getSimType())
			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);
}
Пример #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);

	// Add pause to HUD
	if (bPause)  
		hud.AddDisplayString("Paused - Hit \"p\" to Unpause", 0.3f, 0.55f);
	else
		hud.AddDisplayString("", 0.0f, 0.0f);
}
Пример #3
0
///
/// Initialise HUD with default display strings for simulation type and a pause message.
///
void InitHUD()
{
	hud.Clear();
	
	hud.AddDisplayString("Lives:", 0.76f, 0.93f);		
		

	//pause message
	hud.AddDisplayString("", 0.3f, 0.55f);

	//restart message
	hud.AddDisplayString("", 0.3f, 0.55f);	

	//score: hud
	hud.AddDisplayString("Score:", 0.04f, 0.93);

	//score dislayer
	hud.AddDisplayInt(score, 0.14f, 1.93f);

	//final score report
	hud.AddDisplayInt(score, 0.3f, 1.55f);
	
	//lives
	hud.AddDisplayInt(lives, 0.86f, 1.93f);

	//level
	hud.AddDisplayString("Level:", 0.42f, 0.93f);

	//levelnum
	hud.AddDisplayInt(currentLevel, 0.52f, 0.93f);

	for (int i = 0; i < 10; i++)
	{
		hud.AddDisplayInt(0, -100, -100);
		hud.AddDisplayString("", -100, -100);
	}

	hud.AddDisplayInt(0, 0.25f, 0.01f);
	hud.AddDisplayInt(0, 0.35f, 0.01f);
	hud.AddDisplayString("Playtime:      :", 0.10f, 0.01f);
	
}
Пример #4
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);
}