Bug 1264 - Methods to access (read, write) to pixels in TextureData
Summary: Methods to access (read, write) to pixels in TextureData
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2.4.0
Hardware: All all
: P5 normal
Assignee: Julien Gouesse
URL: http://forum.jogamp.org/Compare-two-t...
Depends on:
Blocks:
 
Reported: 2015-11-04 10:51 CET by Julien Gouesse
Modified: 2017-01-17 15:32 CET (History)
1 user (show)

See Also:
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