sync: user's Lity3D_source.zip changes
- Engine core: improved initialization and lifecycle - Renderer: camera and rendering pipeline updates - Editor: updated editor code - Window: improved window handling - Demo/main.c: scene demo with AssetManager + scene loading - build.bat: updated build script - 11 files modified from user's manual edits
This commit is contained in:
1 parent
0669d102ce
commit
7a0533d21a
11 files changed
+707
-378
No files matched your search
@@ -8,7 +8,7 @@
|
||||
#include <string.h>
|
||||
|
||||
// 窗口类名
|
||||
static const wchar_t* WINDOW_CLASS = L"MiMoEngineWindow";
|
||||
static const wchar_t* WINDOW_CLASS = L"Lity3DEngineWindow";
|
||||
|
||||
// 全局回调
|
||||
static WindowKeyCallback g_key_callback = NULL;
|
||||
@@ -58,22 +58,28 @@ static LRESULT CALLBACK window_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
|
||||
return 0;
|
||||
|
||||
case WM_LBUTTONDOWN:
|
||||
SetCapture(hwnd);
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(0, 1);
|
||||
return 0;
|
||||
case WM_RBUTTONDOWN:
|
||||
SetCapture(hwnd);
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(1, 1);
|
||||
return 0;
|
||||
case WM_MBUTTONDOWN:
|
||||
SetCapture(hwnd);
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(2, 1);
|
||||
return 0;
|
||||
|
||||
case WM_LBUTTONUP:
|
||||
if (GetCapture() == hwnd) ReleaseCapture();
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(0, 0);
|
||||
return 0;
|
||||
case WM_RBUTTONUP:
|
||||
if (GetCapture() == hwnd) ReleaseCapture();
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(1, 0);
|
||||
return 0;
|
||||
case WM_MBUTTONUP:
|
||||
if (GetCapture() == hwnd) ReleaseCapture();
|
||||
if (g_mouse_button_callback) g_mouse_button_callback(2, 0);
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user