![]() |
Raven Engine v0.1
|
Abstract interface representing a texture resource. More...
#include <Texture.h>
Public Member Functions | |
| virtual | ~Texture ()=default |
| Virtual destructor. | |
| 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. | |
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.