diff options
author | hnOsmium0001 <[email protected]> | 2022-04-18 17:54:29 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-18 17:54:29 -0700 |
commit | 4b57fe1fb1401bab9439a639bd842ca61386fe22 (patch) | |
tree | ce06c1fc38b65e8f74acf36d1e3ecfa7e56b367a /source/Material.hpp | |
parent | d43508ba4843801cbbf1f42a27af260d4eef5701 (diff) |
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; |