void texture::set(const image& img) { rect = rect_xywhf(0, 0, img.get_size().x, img.get_size().y); }
texture::texture(const image& img) : rect(rect_xywhf(0, 0, img.get_size().x, img.get_size().y)), ltoa(false) {}