Bug 1264 - Methods to access (read, write) to pixels in TextureData
: Methods to access (read, write) to pixels in TextureData
Status: UNCONFIRMED
: None
: Jogl
: JogAmp
: util (show other bugs)
: tbd
: All all
: P5 normal
: Julien Gouesse
: http://forum.jogamp.org/Compare-two-t...
:
:
 
Reported: 2015-11-04 10:51 CET by Julien Gouesse
Modified: 2019-03-29 13:58 CET (History)
1 user (show)

:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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