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