Package panamagl.offscreen
Class FBOReader_AWT
java.lang.Object
panamagl.offscreen.FBOReader_AWT
- All Implemented Interfaces:
panamagl.offscreen.FBOReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfromBGRABufferToImage(MemorySegment pixelsBuffer, BufferedImage out, int width, int height, int channels) Read a BGRA (GL.GL_BGRA()) pixel buffer and export its content to aBufferedImage.protected voidfromBGRABufferToImageArray(MemorySegment pixelsBuffer, BufferedImage out, int width, int height) Faster? to be evaluated Read a BGRA (GL.GL_BGRA()) pixel buffer and export its content to aBufferedImage.booleanread(panamagl.offscreen.FBO fbo, panamagl.opengl.GL gl) voidsetArrayExport(boolean arrayExport)
-
Field Details
-
arrayExport
protected boolean arrayExport -
debug
protected boolean debug
-
-
Constructor Details
-
FBOReader_AWT
public FBOReader_AWT()
-
-
Method Details
-
read
- Specified by:
readin interfacepanamagl.offscreen.FBOReader
-
isArrayExport
public boolean isArrayExport() -
setArrayExport
public void setArrayExport(boolean arrayExport) -
fromBGRABufferToImageArray
protected void fromBGRABufferToImageArray(MemorySegment pixelsBuffer, BufferedImage out, int width, int height) Faster? to be evaluated Read a BGRA (GL.GL_BGRA()) pixel buffer and export its content to aBufferedImage. Warning : flipped -
fromBGRABufferToImage
protected void fromBGRABufferToImage(MemorySegment pixelsBuffer, BufferedImage out, int width, int height, int channels) Read a BGRA (GL.GL_BGRA()) pixel buffer and export its content to aBufferedImage.- Parameters:
pixelsBuffer-out-
-