Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Texture Class Referenceabstract

Abstract interface representing a texture resource. More...

#include <Texture.h>

Inheritance diagram for Raven::Texture:
Raven::Texture2D Raven::VulkanTexture2D

Public Member Functions

virtual ~Texture ()=default
 Virtual destructor.
virtual TextureSpecificationGetSpecification ()=0
 Accesses the texture's specification.
virtual const TextureSpecificationGetSpecification () 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< Image2DGetImage () const =0
 Retrieves the underlying Image2D resource.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Texture()

virtual Raven::Texture::~Texture ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ GetHeight()

virtual u32 Raven::Texture::GetHeight ( ) const
pure virtual

Retrieves the height of the texture in pixels.

Returns
Height as unsigned 32-bit integer.

Implemented in Raven::VulkanTexture2D.

◆ GetImage()

virtual Ref< Image2D > Raven::Texture::GetImage ( ) const
pure virtual

Retrieves the underlying Image2D resource.

Returns
A Ref to the Image2D object.

Implemented in Raven::VulkanTexture2D.

◆ GetPath()

virtual const std::string & Raven::Texture::GetPath ( ) const
pure virtual

Retrieves the original file path the texture was loaded from.

Returns
Reference to the path string.

Implemented in Raven::VulkanTexture2D.

◆ GetSpecification() [1/2]

virtual const TextureSpecification & Raven::Texture::GetSpecification ( ) const
pure virtual

Accesses the texture's specification (const version).

Returns
A const reference to the TextureSpecification.

Implemented in Raven::VulkanTexture2D.

◆ GetSpecification() [2/2]

virtual TextureSpecification & Raven::Texture::GetSpecification ( )
pure virtual

Accesses the texture's specification.

Returns
A modifiable reference to the TextureSpecification.

Implemented in Raven::VulkanTexture2D.

◆ GetWidth()

virtual u32 Raven::Texture::GetWidth ( ) const
pure virtual

Retrieves the width of the texture in pixels.

Returns
Width as unsigned 32-bit integer.

Implemented in Raven::VulkanTexture2D.


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