The reshape() - method in ScreenShotAppState (here looks like this:
public void reshape(ViewPort vp, int w, int h) {
outBuf = BufferUtils.createByteBuffer(wh4);
awtImage = new BufferedImage(w, h, BufferedImage.TYPE_4BYTE_ABGR);
Why does it take a ViewPort as a parameter, since it does not use it?

Because the signature is defined in the interface for the callback?

Oh, alright, got it :slight_smile: