void 
OpenSteer::OpenSteerDemo::selectNextPlugIn (void)
{
    closeSelectedPlugIn ();
    selectedPlugIn = selectedPlugIn->next ();
    openSelectedPlugIn ();
}
void 
	OpenSteer::OpenSteerDemo::selectNextPlugIn (void)
{
	closeSelectedPlugIn ();
	OpenSteer::Plugin::selectPlugin( OpenSteer::Plugin::getSelectedPlugin()->next () );
	openSelectedPlugIn ();
}
Exemplo n.º 3
0
void 
OpenSteer::OpenSteerDemo::initialize (void)
{
//    clock.setVariableFrameRateMode(false);
//    clock.setAnimationMode(false);
//    clock.setFixedFrameRate(2);
    // select the default PlugIn
    selectDefaultPlugIn ();

    {
        // XXX this block is for debugging purposes,
        // XXX should it be replaced with something permanent?

        std::cout << std::endl << "Known plugins:" << std::endl;   // xxx?
        PlugIn::applyToAll (printPlugIn);                          // xxx?
        std::cout << std::endl;                                    // xxx?

        // identify default PlugIn
        if (!selectedPlugIn) errorExit ("no default PlugIn");
        std::cout << std::endl << "Default plugin:" << std::endl;  // xxx?
        std::cout << " " << *selectedPlugIn << std::endl;          // xxx?
        std::cout << std::endl;                                    // xxx?
    }

    // initialize the default PlugIn
    openSelectedPlugIn ();
}
void 
	OpenSteer::OpenSteerDemo::initialize (void)
{
	// select the default Plugin
	selectDefaultPlugIn ();

	{
		// XXX this block is for debugging purposes,
		// XXX should it be replaced with something permanent?

		std::cout << std::endl << "Known plugins:" << std::endl;   // xxx?
		Plugin::applyToAll (printPlugIn);                          // xxx?
		std::cout << std::endl;                                    // xxx?

		// identify default Plugin
		if (!OpenSteer::Plugin::getSelectedPlugin()) errorExit ("no default Plugin");
		std::cout << std::endl << "Default plugin:" << std::endl;  // xxx?
		std::cout << " " << *OpenSteer::Plugin::getSelectedPlugin() << std::endl;          // xxx?
		std::cout << std::endl;                                    // xxx?
	}

	// initialize the default Plugin
	openSelectedPlugIn ();
}