SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::Texture Class Reference

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>

Inheritance diagram for Spices::Texture:
Spices::Texture2D Spices::Texture2DArray Spices::Texture2DCube

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.
 

Detailed Description

Texture Class. This class defines the basic behaves of texture. When we add an new Texture, we need inherit from this.

Definition at line 32 of file Texture.h.


The documentation for this class was generated from the following file: