png支持
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user