26 std::memcpy(texture_.data(), begin, std::distance(begin, end));
Texture in two dimension.
Definition: texture_2d.hpp:17
Texture base.
Definition: texture.hpp:21
static auto load(const std::string &path, bool color_data=true, bool generate_mipmaps=true, const Filter &filter=Filter::Linear, const Wrap &wrap=Wrap::Repeat) -> Texture_2D
Create from file.