コード例 #1
0
ファイル: Main.cpp プロジェクト: indieknite/Super-Spray
int main (int argc, char** argv)
{
	initializeCamera();
	initializeSound();
	initializeGraphics(argc, argv);
	return 0;
}
コード例 #2
0
	CaptureThread::CaptureThread(QObject *parent)
	{
		_capturing            = false;
		_noiseReductionActive = false;

		initializeSound();
		
	//	sample = -1;	

		_logFile = SoundManager::instance()->getLogFile();
	}
コード例 #3
0
void LegacyMenu::onRaceDriversLoaded()
{
    if (_piRaceEngine->inData()->_displayMode == RM_DISP_MODE_NORMAL)
	{
        // It must be done after the cars are loaded and the track is loaded.
        // The track will be unloaded if the event ends.
        // The graphics module is kept open if more than one race is driven.

        // Initialize the graphics and sound engines.
        if (initializeGraphics() && initializeSound())
		{
            char buf[128];
            snprintf(buf, sizeof (buf), "Loading graphics for %s track ...",
                    _piRaceEngine->inData()->track->name);
            addLoadingMessage(buf);

            // Initialize the track graphics.
            loadTrackGraphics(_piRaceEngine->inData()->track);
        }
    }
}
コード例 #4
0
ファイル: Platform.cpp プロジェクト: Aliandrana/SuperPlay
bool Platform::initialize()
{
	setStoragePath();

	ms_pWindow	= Window::create();
	
	if (NULL == ms_pWindow)
	{
		return	false;
	}

	System::ms_pDisplay	= createDisplay();

	if (NULL == System::ms_pDisplay)
	{
		return	false;
	}

	ms_pTimer	= Timer::create();

	if (NULL == ms_pTimer)
	{
		return	false;
	}

	System::ms_pInput	= Input::create();

	if (NULL == System::ms_pInput)
	{
		return	false;
	}

	// Initialize sound
	if (false == initializeSound())
	{
		return	false;
	}

	return	true;
}