png支持

This commit is contained in:
ArchZer0
2026-08-17 10:26:27 +08:00
parent 07aeced2e4
commit 63d97f058a
25 changed files with 893 additions and 261 deletions
+11
View File
@@ -15,6 +15,7 @@ struct WindowConfig {
struct MeshConfig {
std::string shape = "quad";
std::string texture;
std::array<float, 4> color{0.5F, 0.5F, 0.5F, 1.0F};
};
@@ -33,9 +34,19 @@ struct InputBindingConfig {
std::vector<int> mouse_buttons;
};
struct SceneConfig {
std::string name;
std::string path;
std::vector<ActorConfig> actors;
};
struct GameConfig {
WindowConfig window;
std::vector<InputBindingConfig> input_bindings;
std::vector<SceneConfig> scenes;
std::string start_scene;
// 兼容旧的单场景写法:直接写在游戏配置里的 actors。
std::vector<ActorConfig> actors;
};