void Image::drawFrame(const Sheet& sheet, int f, int x, int y, Screen& dest) { dest.bindImage(*this); dest.applyTransform(); drawFrameRaw(sheet, f, x, y, dest); dest.unbindImage(); }
void Image::drawFrame(const Sheet& sheet, int f, int x, int y, const Transform& transform, Screen& dest) { dest.bindImage(*this); dest.applyTransform(transform, x, y, sheet.getWidth(), sheet.getHeight()); drawFrameRaw(sheet, f, 0, 0, dest); dest.unbindImage(); }
void Image::draw(int x, int y, const Transform& transform, Screen& dest) { dest.bindImage(*this); dest.applyTransform(transform, x, y, impl->canvas.getWidth(), impl->canvas.getHeight()); drawRaw(0, 0, dest); dest.unbindImage(); }