Ejemplo n.º 1
0
/*!***************************************************************************
@function		main
@input			argc	count of args from OS
@input			argv	array of args from OS
@returns		result code to OS
@description	Main function of the program
*****************************************************************************/
int main(int argc, char **argv)
{
	PVRShellInit init;

	/*
		Create the demo, process the command line, create the OS initialiser.
	*/
	PVRShell *pDemo = NewDemo();
	if(!pDemo)
		return EXIT_ERR_CODE;

	init.Init(*pDemo);
	init.CommandLine((argc-1),&argv[1]);

	/*
		Initialise/run/shutdown
	*/
	while(init.Run());

	delete pDemo;
	return EXIT_NOERR_CODE;
}
Ejemplo n.º 2
0
int main(int argc, char *argv[])
{
	auto_ptr<Shell> shell(NewDemo());
	return shell->Run(argc, argv);
}