Ejemplo n.º 1
0
int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nShowCmd )
{
	WSIZE wSize = { 100, 100, 350, 320 };
	IWindow *WndInterface = GetInterface();

	if(WndInterface)
	{
		WndInterface->CreateWnd(L"Test Title", wSize );
		WndInterface->Run();
		WndInterface->Release();
		UnregisterClass(L"Main_ClAsS", hInstance);
	}

	return TRUE;
}
Ejemplo n.º 2
0
// Entry point into the application
int WINAPI WinMain (HINSTANCE hInstance, 
					HINSTANCE hPrevInstance,
                    PSTR szCmdLine, 
					int nCmdShow)	
{
	g_app_instance = hInstance;

	//use the factory to create our objects.
	IGame * game = get_game();
	IWindow * window = get_game_window( game );
	g_input = get_game_input();

	window->Run();			// Run the application

	// Cleanup our objects.
	release_game_input(&g_input);
	release_game_window( &window );
	release_game( &game );

	return 0;
}