At the moment, the image that is obtained from OpenGL is flipped vertically. This is a feature of OpenGL rendering, so I have to fix it manually.
There are two ways to fix it that GLJPanel uses:
Software
This method requires the usual iteration over the image line by line.
In theory, this will consume huge resources.
Hardware
The most preferred way would be to use FBO/GLSL vertical flipping.
It transforms the entire image in the buffer, so the way of reading will not change much.
At the moment, the image that is obtained from OpenGL is flipped vertically. This is a feature of OpenGL rendering, so I have to fix it manually.
There are two ways to fix it that GLJPanel uses:
Software
This method requires the usual iteration over the image line by line. In theory, this will consume huge resources.
Hardware
The most preferred way would be to use FBO/GLSL vertical flipping. It transforms the entire image in the buffer, so the way of reading will not change much.