candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
candlewick::Texture Class Reference

#include <candlewick/core/Texture.h>

Public Member Functions

 Texture (NoInitT)
 
 Texture (const Device &device, SDL_GPUTextureCreateInfo texture_desc, const char *name=nullptr)
 
 Texture (const Texture &)=delete
 
Textureoperator= (const Texture &)=delete
 
 Texture (Texture &&other) noexcept
 
Textureoperator= (Texture &&other) noexcept
 
 operator SDL_GPUTexture * () const noexcept
 
bool hasValue () const
 
const auto & description () const
 
SDL_GPUTextureType type () const
 
SDL_GPUTextureFormat format () const
 
SDL_GPUTextureUsageFlags usage () const
 
Uint32 width () const
 
Uint32 height () const
 
Uint32 depth () const
 
Uint32 layerCount () const
 
SDL_GPUBlitRegion blitRegion (Uint32 offset_x, Uint32 y_offset, Uint32 layer_or_depth_plane=0) const
 
Uint32 textureSize () const
 
void destroy () noexcept
 
 ~Texture () noexcept
 

Constructor & Destructor Documentation

◆ Texture() [1/4]

candlewick::Texture::Texture ( NoInitT )
inline

◆ Texture() [2/4]

candlewick::Texture::Texture ( const Device & device,
SDL_GPUTextureCreateInfo texture_desc,
const char * name = nullptr )

◆ Texture() [3/4]

candlewick::Texture::Texture ( const Texture & )
delete

◆ Texture() [4/4]

candlewick::Texture::Texture ( Texture && other)
noexcept

◆ ~Texture()

candlewick::Texture::~Texture ( )
inlinenoexcept

Member Function Documentation

◆ blitRegion()

SDL_GPUBlitRegion candlewick::Texture::blitRegion ( Uint32 offset_x,
Uint32 y_offset,
Uint32 layer_or_depth_plane = 0 ) const

◆ depth()

Uint32 candlewick::Texture::depth ( ) const
inline

◆ description()

const auto & candlewick::Texture::description ( ) const
inline

◆ destroy()

void candlewick::Texture::destroy ( )
noexcept

◆ format()

SDL_GPUTextureFormat candlewick::Texture::format ( ) const
inline

◆ hasValue()

bool candlewick::Texture::hasValue ( ) const
inline

◆ height()

Uint32 candlewick::Texture::height ( ) const
inline

◆ layerCount()

Uint32 candlewick::Texture::layerCount ( ) const
inline

◆ operator SDL_GPUTexture *()

candlewick::Texture::operator SDL_GPUTexture * ( ) const
inlinenoexcept

◆ operator=() [1/2]

Texture & candlewick::Texture::operator= ( const Texture & )
delete

◆ operator=() [2/2]

Texture & candlewick::Texture::operator= ( Texture && other)
noexcept

◆ textureSize()

Uint32 candlewick::Texture::textureSize ( ) const

◆ type()

SDL_GPUTextureType candlewick::Texture::type ( ) const
inline

◆ usage()

SDL_GPUTextureUsageFlags candlewick::Texture::usage ( ) const
inline

◆ width()

Uint32 candlewick::Texture::width ( ) const
inline

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