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