An image on the GPU, ready to be drawn.
Definition texture.hpp:26
static Texture load(const std::filesystem::path &path)
Reads an image file and sends it to the GPU.
Texture & operator=(const Texture &)=delete
Texture(const Image &image)
Sends an image to the GPU.
Texture(Texture &&other) noexcept
Takes over the texture of other, which becomes empty.
Texture(const Texture &)=delete
TextureSize size() const noexcept
Size of the image.
Texture & operator=(Texture &&other) noexcept
Deletes this texture and takes over the texture of other.
Width and height of a texture, in pixels.
Definition renderer.hpp:38