Texture
kn::Texture Declared in kraken/graphics/Texture.hpp
At a glance
11 membersReference
C++ APITexture(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)No description in the source header.
~Texture
function~Texture()No description in the source header.
No description in the source header.
getWidth
functionint getWidth() constNo description in the source header.
getHeight
functionint getHeight() constNo description in the source header.
getSize
functionVec2 getSize() constNo description in the source header.
getRect
functionRect getRect() constNo description in the source header.
getUsage
functionTextureUsage getUsage() constNo description in the source header.
hasUsage
functionbool hasUsage(TextureUsage usage) constNo description in the source header.
getSDL
functionSDL_Texture * getSDL() constNo description in the source header.
getGPU
functionSDL_GPUTexture * getGPU() constNo description in the source header.