MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / CreateMainWindow

Function CreateMainWindow

samples/application/chat/main.cpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75skr_vfs_t* resource_vfs;
76
77int CreateMainWindow()
78{
79#if SKR_PLAT_WINDOWS
80 ::SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
81#endif
82 if (SDL_Init(SDL_INIT_EVERYTHING) != 0) return -1;
83 auto window_desc = make_zeroed<SWindowDescroptor>();
84 window_desc.flags = SKR_WINDOW_CENTERED | SKR_WINDOW_RESIZABLE;
85 window_desc.height = BACK_BUFFER_HEIGHT;
86 window_desc.width = BACK_BUFFER_WIDTH;
87 mainWindow = skr_create_window("AAA", &window_desc);
88 return 0;
89}
90
91int CreateRenderer(SWindowHandle window)
92{

Callers 2

initializeFunction · 0.85
InitializeMethod · 0.85

Calls 1

skr_create_windowFunction · 0.85

Tested by

no test coverage detected