diff options
author | Kenneth Russel <[email protected]> | 2006-12-29 16:52:29 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-12-29 16:52:29 +0000 |
commit | c5bfc74a40166cac0ba4627aa6b6c28f1d248114 (patch) | |
tree | 6c0837c300a4d7acca7538b0eebf34dd55d81d3b /src/demos/applets/GearsJOALApplet.java | |
parent | 73edbcfc1bec3b6bf9f4611ef1154529ac3980f9 (diff) |
Fixed Issue 257: RFE: Texture.updateSubImage(x,y,w,h)
Changed TextureIO's BufferedImage code paths to no longer copy the
data in order to correct for the vertical flip needed between Java
2D's and OpenGL's coordinate systems, but instead to correct for this
using a flip of the texture coordinates. This was needed to change the
semantics for the BufferedImage from "by-copy" to "by-reference". Made
the custom BufferedImage copying code path occur lazily upon a call to
TextureData.getBuffer(). Added support for the GL_EXT_abgr extension
but disabled the code path currently as it appears there may be bugs
in its support on some drivers. Added computation of row width for all
BufferedImage types with help and suggestions from Chris Campbell.
Improved handling of some BufferedImage types like TYPE_INT_ARGB and
TYPE_4BYTE_ABGR. Added Texture.updateSubImage() taking a source
rectangle as well as a destination coordinate. Wrote TestSubImage test
to show use of the new API which exercises all BufferedImage types.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@192 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/applets/GearsJOALApplet.java')
0 files changed, 0 insertions, 0 deletions