Between 3.0 and 3.1, the format of readFrameBuffer from BGRA8 to RGB8 ?
In 3.0 readFrameBuffer:
Reads the pixels currently stored in the specified framebuffer
into the given ByteBuffer object.
Only color pixels are transferred, the format is BGRA with 8 bits
per component. The given byte buffer should have at least
fb.getWidth() * fb.getHeight() * 4 bytes remaining.
In 3.1Renderer.java:
* Reads the pixels currently stored in the specified framebuffer
* into the given ByteBuffer object.
* Only color pixels are transferred, the format is RGBA with 8 bits
* per component. The given byte buffer should have at least
* fb.getWidth() * fb.getHeight() * 4 bytes remaining.
This breaking change introduce an additionnal conversion in JME3-JFX when jme is embedded into JavaFX (Javafx accept bgra as input but not rgba).
Will you accept a PR with a configurable readFrameBuffer (where we can specify the format) ?
EDIT: the PR is to add an other readFrameBuffer with addtionnal parameter or made public the underlying method with all parameter. And to keep the existing readFrameBuffer as is.