| 1234567891011121314151617181920 |
- #pragma once
- #include <string>
- namespace WallpaperEngine::Core::Objects::Effects::Constants
- {
- class CShaderConstant
- {
- public:
- CShaderConstant (std::string type);
- template<class T> const T* as () const { assert (is <T> ()); return (const T*) this; }
- template<class T> T* as () { assert (is <T> ()); return (T*) this; }
- template<class T> bool is () { return this->m_type == T::Type; }
- private:
- std::string m_type;
- };
- }
|