Extract UI state and Win32 window shell
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "platform_windows/windows_bootstrap_helpers.h"
|
||||
#include "platform_windows/windows_window_shell.h"
|
||||
|
||||
#include "app.h"
|
||||
#include "legacy_gl_runtime_dispatch.h"
|
||||
@@ -15,8 +16,6 @@
|
||||
#define USE_RENDERDOC
|
||||
#endif
|
||||
|
||||
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp);
|
||||
|
||||
namespace pp::platform::windows {
|
||||
void set_async_render_context(HDC hdc, HGLRC hrc);
|
||||
}
|
||||
@@ -113,7 +112,7 @@ MainWindowStartupState initialize_main_window_startup_state()
|
||||
const auto className = L"EngineMain";
|
||||
|
||||
startup.window_class.hInstance = hInst;
|
||||
startup.window_class.lpfnWndProc = (WNDPROC)WndProc;
|
||||
startup.window_class.lpfnWndProc = (WNDPROC)main_window_proc;
|
||||
startup.window_class.lpszClassName = className;
|
||||
startup.window_class.hbrBackground = (HBRUSH)COLOR_WINDOW;
|
||||
startup.window_class.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
|
||||
Reference in New Issue
Block a user