Пример #1
0
/*! **********************************************************************
 * Function: initialization(systemState *state)
 *
 * Include: Local to newmain.c
 *
 * Description: Initializes the system, turns on the sensors and checks if
 * they are ready to begin working
 *
 * Arguments: state - The current state of the system
 *
 * Returns: The next system state - At the moment always just transitions to CHECK
 *************************************************************************/
static void initialization(systemState *state)
{
    Direction dir = {0,-45};
    unsigned int i = 0;
    
    configureSerial();
    configureTracking();
    configUSER();

    move(dir);

    for (i = 0; i < 10000; i++);

    NEXT_STATE_PTR(MENU, state);   //Go to the searching state
}
Пример #2
0
void vx_ovr_namespace_::OVRHMDHandleWithDevice::initialize()
{

	// create window
	window_->create();
	window_->makeContexCurrent();

	// configure head-tracking
	configureTracking();

	// create swap texture set
	createTextureSet();

	// create mirror texture and framebuffer to display it on the window
	createMirrorTextureAndFramebuffer();
}