CLASS v1.8.0

Texture

kn::Texture

Declared in kraken/graphics/Texture.hpp

Reference

C++ API

Texture

function5 overloads
Texture(int width, int height, FilterMode filter=FilterMode::Default, TextureUsage usage=TextureUsage::Drawable)
Texture(const PixelArray &pixelArray, FilterMode filter=FilterMode::Default, TextureAccess access=TextureAccess::Static, TextureUsage usage=TextureUsage::Drawable)
Texture(const std::filesystem::path &filePath, FilterMode filter=FilterMode::Default, TextureAccess access=TextureAccess::Static, TextureUsage usage=TextureUsage::Drawable)
Texture(const Texture &)=delete
Texture(Texture &&) noexcept

No description in the source header.

~Texture

function
~Texture()

No description in the source header.

operator=

function2 overloads
Texture & operator=(const Texture &)=delete
Texture & operator=(Texture &&) noexcept

No description in the source header.

getWidth

function
int getWidth() const

No description in the source header.

getHeight

function
int getHeight() const

No description in the source header.

getSize

function
Vec2 getSize() const

No description in the source header.

getRect

function
Rect getRect() const

No description in the source header.

getUsage

function
TextureUsage getUsage() const

No description in the source header.

hasUsage

function
bool hasUsage(TextureUsage usage) const

No description in the source header.

getSDL

function
SDL_Texture * getSDL() const

No description in the source header.

getGPU

function
SDL_GPUTexture * getGPU() const

No description in the source header.

Find your next step

Start typing to search the manual.