Bug 303 - Add GL_BGRA code path to Screenshot
Summary: Add GL_BGRA code path to Screenshot
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL: http://www.javagaming.org/forums/inde...
Depends on:
Blocks:
 
Reported: 2007-05-29 11:13 CEST by Sven Gothel
Modified: 2010-11-19 01:11 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:50:38 CET


---- Reported by kbr 2007-05-29 11:13:20 ----

It would be better to use a GL_BGRA and GL_UNSIGNED_INT_8_8_8_8_REV pixel format
and type in conjunction with a TYPE_INT_ARGB BufferedImage in the Screenshot
class if OpenGL 1.2 is available. This is a more optimized code path through
most vendors' OpenGL drivers. See the above forum posting.



--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 303 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=303
Comment 1 Sven Gothel 2010-11-19 01:11:21 CET
Look at src/junit/com/jogamp/test/junit/jogl/offscreen/Surface2File.java,

which uses offscreen/pbuffer rendering,
reads pixel to a texture and uses TextureIO to save it to a file.

The user is free to handle it the way she wants.