Package panamagl.offscreen
Class FBOReader_SWT
java.lang.Object
panamagl.offscreen.FBOReader_SWT
- All Implemented Interfaces:
panamagl.offscreen.FBOReader
Reads FBO pixels and produces an SWT
ImageData wrapped in a SWTImage.
The FBO provides BGRA bytes. On little-endian systems, reading as int[] yields
ARGB-packed integers (0xAARRGGBB), the same format used by FBOReader_AWT.
We then use ImageData.setPixel(int, int, int) / ImageData.setAlpha(int, int, int) which handle
the internal byte layout regardless of platform.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
debug
protected boolean debug -
imageData
protected org.eclipse.swt.graphics.ImageData imageData
-
-
Constructor Details
-
FBOReader_SWT
public FBOReader_SWT()
-
-
Method Details
-
read
- Specified by:
readin interfacepanamagl.offscreen.FBOReader
-