Abstract interface representing a texture resource. More...
#include <Texture.h>
Inherits Raven::RefCounted.
Inherited by Raven::Texture2D.
Public Member Functions | |
| virtual | ~Texture ()=default |
| Virtual destructor. | |
| virtual void | Release ()=0 |
| Release Memory for both texture and the underlying image. | |
| virtual TextureSpecification & | GetSpecification ()=0 |
| Accesses the texture's specification. | |
| virtual const TextureSpecification & | GetSpecification () const =0 |
| Accesses the texture's specification (const version). | |
| virtual u32 | GetWidth () const =0 |
| Retrieves the width of the texture in pixels. | |
| virtual u32 | GetHeight () const =0 |
| Retrieves the height of the texture in pixels. | |
| virtual const std::string & | GetPath () const =0 |
| Retrieves the original file path the texture was loaded from. | |
| virtual Ref< Image2D > | GetImage () const =0 |
| Retrieves the underlying Image2D resource. | |
| Public Member Functions inherited from Raven::RefCounted | |
| RefCounted () | |
| virtual | ~RefCounted () |
| void | IncRefCount () |
| void | DecRefCount () |
| u32 | GetRefCount () const |
Abstract interface representing a texture resource.
Provides access to the texture specification, dimensions, source path, and underlying Image2D object. Meant to be subclassed for API-specific implementations.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Retrieves the height of the texture in pixels.
Implemented in Raven::VulkanTexture2D.
Retrieves the underlying Image2D resource.
Implemented in Raven::VulkanTexture2D.
|
pure virtual |
Retrieves the original file path the texture was loaded from.
Implemented in Raven::VulkanTexture2D.
|
pure virtual |
Accesses the texture's specification (const version).
Implemented in Raven::VulkanTexture2D.
|
pure virtual |
Accesses the texture's specification.
Implemented in Raven::VulkanTexture2D.
|
pure virtual |
Retrieves the width of the texture in pixels.
Implemented in Raven::VulkanTexture2D.
|
pure virtual |
Release Memory for both texture and the underlying image.
Implemented in Raven::VulkanTexture2D.