예제 #1
0
 @Override
 public Surface drawImage(
     Image image, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh) {
   bindFramebuffer();
   ((ImageGL) image).draw(shader, topTransform(), dx, dy, dw, dh, sx, sy, sw, sh, tint);
   return this;
 }
예제 #2
0
 @Override
 public Surface drawImage(Image image, float x, float y, float dw, float dh) {
   bindFramebuffer();
   ((ImageGL) image)
       .draw(shader, topTransform(), x, y, dw, dh, 0, 0, image.width(), image.height(), tint);
   return this;
 }