Texture Class. This class defines the basic behaves of texture. When we add an new Texture, we need inherit from this. More...
#include <Texture.h>
Public Member Functions | |
| Texture ()=default | |
| Constructor Function. | |
| Texture (const std::string &path) | |
| Constructor Function. Init class variable. Usually call it. | |
| virtual | ~Texture ()=default |
| Destructor Function. | |
| template<typename T > | |
| std::shared_ptr< T > | GetResource () |
| Get Specific resource, usually is a wrapper of VulkanImage. | |
Protected Attributes | |
| std::any | m_Resource |
| Texture's resource, coule be any kind of type. | |
| std::string | m_ResourcePath |
| Texture's path in disk. | |
Texture Class. This class defines the basic behaves of texture. When we add an new Texture, we need inherit from this.