Advertisement

UE-引擎入口点和主循环

阅读量:

【在Windows操作系统环境下,应用程序的启动入口函数被定义为WinMain
该函数所处的源代码文件路径为:

Engine/Source/Launch/Private/Windows/LaunchWindows.cpp

复制代码
    int32 WINAPI WinMain(_In_ HINSTANCE hInInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ char* pCmdLine, _In_ int32 nCmdShow)
    {
    	int32 Result = LaunchWindowsStartup(hInInstance, hPrevInstance, pCmdLine, nCmdShow, nullptr);
    	LaunchWindowsShutdown();
    	return Result;
    }
    
    
      
      
      
      
      
      
    

LaunchWindowsStartup函数内部,通过调用GuardedMainWrapper实现对GuardedMain的触发,从而进入引擎整体的执行流程:

复制代码
    int32 GuardedMain( c

全部评论 (0)

还没有任何评论哟~