const std::filesystem::path m_ImagePath
uint32_t GetRuntimeID() const
constexpr bool operator==(const Descriptor &other) const
constexpr Descriptor(std::string name, std::filesystem::path imagePath)
Constructs a descriptor.
A regular 2D texture with 1 layer.
static std::shared_ptr< Texture2D > Create(const std::shared_ptr< Image > &image)
Creates a Texture2D from the Image.
Abstract class for textures.
virtual ~Texture()=default
virtual void Bind(uint32_t slot) const =0
Binds the texture to the slot.
virtual uint32_t GetHeight() const =0
Gives the texture height.
AssetStatus GetStatus() const
virtual bool HasSemiTransparency() const =0
Checks if texture has semi transparency.
Filter
Available filtering options.
virtual uint32_t GetWidth() const =0
Gives the texture width.
std::size_t operator()(const Descriptor &descriptor) const
Params to use when creating a texture.
int32_t m_UnpackAlignment
Generally you want to leave this by default if you're creating a texture from an image,...
PixelFormat m_PixelFormat
bool m_HasSemiTransparency
Whether or no to flag the texture as semi transparent.