We are planning to update to PlayN2.x, but tripleplay.util.Layers.capture() in 1.x is still not provided in 2.x. Image capturing is one of important features of our project and we cannot live without it.Would you please give me some clue about how to implement it in 2.x?
It seems that glReadPixels reads data much slower than using glGetBufferSubData in conjunction with PBO, as discussed as in http://stackoverflow.com/questions/25127751/opengl-read-pixels-faster-than-glreadpixels
But some constants mentioned in the above link are not defined in GL20.java, such as GL_PIXEL_PACK_BUFFER. Is it safe to pass the constant value directly to the api call?
I don't have any GL experiences, any suggestions are welcome :)
Thanks
It seems that glReadPixels reads data much slower than using glGetBufferSubData in conjunction with PBO, as discussed as in http://stackoverflow.com/questions/25127751/opengl-read-pixels-faster-than-glreadpixels