diff options
author | rtk0c <[email protected]> | 2022-04-18 17:54:29 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-18 17:54:29 -0700 |
commit | 7af9992ca81c699bc1cf05eb691e284bf424f050 (patch) | |
tree | 0f9bf191270791d80a28d7df1f1ffd5223158124 /source/Material.hpp | |
parent | 5424a1d5434e3ddd911a504719918c2df027e2fd (diff) |
Changeset: 9 Implement IresSpritesheet
Diffstat (limited to 'source/Material.hpp')
-rw-r--r-- | source/Material.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/Material.hpp b/source/Material.hpp index bf1c988..469cb7b 100644 --- a/source/Material.hpp +++ b/source/Material.hpp @@ -4,6 +4,7 @@ #include "RcPtr.hpp" #include "Shader.hpp" #include "Texture.hpp" +// #include "Ires.hpp" #include <glad/glad.h> #include <robin_hood.h> @@ -113,6 +114,26 @@ public: bool LoadFromFile(const std::filesystem::path& filePath); }; +// class IresMaterial : public IresObject { +// public: +// RcPtr<Material> mInstance; + +// public: +// IresMaterial() +// : IresObject(KD_Spritesheet) {} + +// bool IsValid() const; + +// Material* CreateInstance() const; +// Material* GetInstance(); +// void InvalidateInstance(); + +// void ShowEditor() override; + +// void Write(rapidjson::Value& value, rapidjson::Document& root) const override; +// void Read(const rapidjson::Value& value) override; +// }; + class MaterialManager { public: static inline MaterialManager* instance = nullptr; |