|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Classes | |
| class | Header |
Public Member Functions | |
| void | write (final String filename, final boolean flipVertically) throws IOException |
| Writes this SGIImage to the specified file name. More... | |
| void | write (final File file, final boolean flipVertically) throws IOException |
| Writes this SGIImage to the specified file. More... | |
| int | getWidth () |
| Returns the width of the image. More... | |
| int | getHeight () |
| Returns the height of the image. More... | |
| int | getFormat () |
| Returns the OpenGL format for this texture; e.g. More... | |
| byte[] | getData () |
| Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. More... | |
| String | toString () |
Static Public Member Functions | |
| static SGIImage | read (final String filename) throws IOException |
| Reads an SGI image from the specified file. More... | |
| static SGIImage | read (final InputStream in) throws IOException |
| Reads an SGI image from the specified InputStream. More... | |
| static SGIImage | createFromData (final int width, final int height, final boolean hasAlpha, final byte[] data) |
| Creates an SGIImage from the specified data in either RGB or RGBA format. More... | |
Reads and writes SGI RGB/RGBA images.
Written from Paul Bourke's adaptation of the SGI specification.
Definition at line 57 of file SGIImage.java.
|
static |
Creates an SGIImage from the specified data in either RGB or RGBA format.
Definition at line 181 of file SGIImage.java.
| byte[] com.jogamp.opengl.util.texture.spi.SGIImage.getData | ( | ) |
Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D.
Definition at line 211 of file SGIImage.java.
| int com.jogamp.opengl.util.texture.spi.SGIImage.getFormat | ( | ) |
Returns the OpenGL format for this texture; e.g.
GL.GL_RGB or GL.GL_RGBA.
Definition at line 205 of file SGIImage.java.
| int com.jogamp.opengl.util.texture.spi.SGIImage.getHeight | ( | ) |
Returns the height of the image.
Definition at line 200 of file SGIImage.java.
| int com.jogamp.opengl.util.texture.spi.SGIImage.getWidth | ( | ) |
Returns the width of the image.
Definition at line 195 of file SGIImage.java.
|
static |
Reads an SGI image from the specified InputStream.
Definition at line 156 of file SGIImage.java.
|
static |
Reads an SGI image from the specified file.
Definition at line 151 of file SGIImage.java.
| String com.jogamp.opengl.util.texture.spi.SGIImage.toString | ( | ) |
Definition at line 214 of file SGIImage.java.
| void com.jogamp.opengl.util.texture.spi.SGIImage.write | ( | final File | file, |
| final boolean | flipVertically | ||
| ) | throws IOException |
Writes this SGIImage to the specified file.
If flipVertically is set, outputs the scanlines from top to bottom rather than the default bottom to top order.
Definition at line 175 of file SGIImage.java.
| void com.jogamp.opengl.util.texture.spi.SGIImage.write | ( | final String | filename, |
| final boolean | flipVertically | ||
| ) | throws IOException |
Writes this SGIImage to the specified file name.
If flipVertically is set, outputs the scanlines from top to bottom rather than the default bottom to top order.
Definition at line 168 of file SGIImage.java.