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:
shuiyu1123 committed 2026-07-12 12:13:50 +08:00
1 parent 0669d102ce
commit 7a0533d21a
11 files changed
+707 -378

No files matched your search

+3 -3
View File
@@ -68,7 +68,7 @@ int engine_init(Engine* engine, const EngineConfig* config) {
// 初始化日志
logger_init("engine.log");
LOG_INFO("Initializing MiMo Engine ASM...");
LOG_INFO("Initializing Lity3D Engine...");
// 初始化计时器
timer_init();
@@ -124,7 +124,7 @@ int engine_init(Engine* engine, const EngineConfig* config) {
engine->running = 1;
engine->frame_count = 0;
LOG_INFO("MiMo Engine ASM initialized successfully.");
LOG_INFO("Lity3D Engine initialized successfully.");
return 1;
}
@@ -184,7 +184,7 @@ void engine_run(Engine* engine) {
void engine_shutdown(Engine* engine) {
if (!engine->initialized) return;
LOG_INFO("Shutting down MiMo Engine ASM...");
LOG_INFO("Shutting down Lity3D Engine...");
if (engine->renderer) {
renderer_destroy(engine->renderer);
+1 -1
View File
@@ -37,7 +37,7 @@ typedef struct {
// 初始化默认配置
static inline EngineConfig engine_default_config(void) {
EngineConfig config;
config.app_name = "MiMo Engine ASM";
config.app_name = "Lity3D Engine";
config.window_width = 1280;
config.window_height = 720;
config.fullscreen = 0;
+2 -2
View File
@@ -19,11 +19,11 @@ void logger_init(const char* log_file) {
if (log_file) {
g_log_file = fopen(log_file, "w");
if (g_log_file) {
fprintf(g_log_file, "=== MiMo Engine ASM Log ===\n");
fprintf(g_log_file, "=== Lity3D Engine Log ===\n");
fflush(g_log_file);
}
}
printf("=== MiMo Engine ASM Log ===\n");
printf("=== Lity3D Engine Log ===\n");
}
void logger_shutdown(void) {