Kanzi 4.0.0-beta2
texture.hpp File Reference

Classes

class  kanzi::Texture
 Textures provide images that can be used with image nodes, texture brushes and materials for use in 3D rendering or material brushes. More...
 

Namespaces

namespace  kanzi
 

Functions

constexpr size_t kanzi::calculateMipmapLevelCount (size_t width, size_t height)
 Calculates number of mipmap levels for provided image size.
 
TextureSharedPtr kanzi::createTextureFromMemory (Domain *domain, size_t width, size_t height, GraphicsFormat sourceFormat, const void *data, GraphicsFormat destinationFormat, string_view name)
 Loads a new image from memory and creates a texture out of it.
 
void kanzi::swap (Texture &texture1, Texture &texture2)