bool load(const std::string &file)
Load a texture from vfs.
Texture2D & operator=(Texture2D &&)
Move assignment operator.
bool load_mem(std::span< std::uint8_t > buffer)
Loads texture from memory.
void save(std::string_view file)
Saves texture to file on disk.
void recreate()
Deletes texture data and configuration in OpenGL and creates new texture handle.