Bug 1264

Summary: Methods to access (read, write) to pixels in TextureData
Product: [JogAmp] Jogl Reporter: Julien Gouesse <gouessej>
Component: utilAssignee: Julien Gouesse <gouessej>
Status: UNCONFIRMED ---    
Severity: normal CC: gouessej
Priority: P5    
Version: tbd   
Hardware: All   
OS: all   
URL: http://forum.jogamp.org/Compare-two-textures-pixelwise-for-test-purpose-td4035481.html
Type: FEATURE SCM Refs:
Workaround: ---

Description Julien Gouesse 2015-11-04 10:51:11 CET
There is currently no equivalent of java.awt.image.BufferedImage.getRGB() in TextureData, there are no methods to get and set the color of a pixel whereas our API is more and more used as a more cross-platform replacement of AWT.

For example, some developers would like to compare the contents of several images in their unit tests. I modify a texture at runtime by using some data on the CPU.

The following code could be moved from JogAmp's Ardor3D Continuation into JOGL:
https://github.com/gouessej/Ardor3D/commit/9b8b30718a8b82221d1a75e4dce23dea8a19836c