Refactor Live2D plugin and renderer for improved clarity and performance
- Updated EGL and OpenGL ES integration in gl.rs for better context management. - Simplified error handling and logging in model.rs and plugin.rs. - Enhanced texture handling and rendering logic in renderer.rs. - Added a script to find Cargo configuration files for easier debugging. - Removed unused imports and dead code to clean up the codebase.
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
//! 封装 moc3 读取 → revive → model 初始化 → 参数更新 → drawable 数据提取。
|
||||
|
||||
use super::core_ffi::{
|
||||
alloc_aligned, AlignedBuffer, CubismCore, CsmVector2, CsmVector4, CSM_ALIGNOF_MOC,
|
||||
CSM_ALIGNOF_MODEL,
|
||||
alloc_aligned, AlignedBuffer, CubismCore, CsmVector2, CSM_ALIGNOF_MOC, CSM_ALIGNOF_MODEL,
|
||||
};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use std::path::Path;
|
||||
@@ -308,9 +307,3 @@ impl CubismModel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl CubismModel {
|
||||
// 保留 CsmVector4 引用避免 unused
|
||||
#[allow(dead_code)]
|
||||
fn _ensure_v4_linked(_v: CsmVector4) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user