Exemplo n.º 1
0
extern "C" void WinMainCRTStartup()
{
	//Sleep(15000);
	
	HDC hDC;
	HGLRC context;
	CreateGLWindow(&hDC, &context);
	Demo demo;
	demo.Init();

	MusicInit(music);
	sndPlaySoundA((const char*)&music, SND_ASYNC|SND_MEMORY|SND_LOOP);
    
    do
    {
		demo.Step();
		demo.RenderFrame();
		
		SwapBuffers(hDC);
		AppProcessMessages();
	}
	while(!GetAsyncKeyState(VK_ESCAPE));

    ExitProcess(0);
}