code: public final void paint (Surface surf) {
      if (!visible()) return;
  
      int otint = surf.combineTint(tint);
      QuadBatch obatch = surf.pushBatch(batch);
      surf.concatenate(transform(), originX(), originY());
      try {
        paintImpl(surf);
        if (DEBUG_RECTS) {
          drawDebugRect(surf);
        }
      } finally {
        surf.popBatch(obatch);
        surf.setTint(otint);
      }
    }
docs: Renders this layer to {@code surf}, including its children.