#include "stdafx.h"

int APIENTRY _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow )
{
	Mix::ENGINE_CONFIG engineConfig;

	engineConfig.flags = Mix::EC_ALL ^ Mix::EC_MOUSE;
	engineConfig.pRootDirectoryPath = Utility::GetRootDirectoryPath();
	engineConfig.pPluginDirectoryPath = Utility::GetPluginsDirectoryPath();
	engineConfig.pUserDirectoryPath = Utility::GetUserDirectoryPath( L"Basic" );
	engineConfig.shaderModel = Mix::Graphics::SHADER_MODEL_3;
	engineConfig.pCaption = L"Basic";

	if( Mix::Initialize( engineConfig ) == True )
	{
		Mix::IEngine* pEngine = Mix::GetEnginePtr();

		while( pEngine->Update() == True )
		{
			;
		}

		Mix::Finalize();
	}

	return 0;
}
