JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.texture.spi.awt.IIOTextureProvider Class Reference
Inheritance diagram for com.jogamp.opengl.util.texture.spi.awt.IIOTextureProvider:
Collaboration diagram for com.jogamp.opengl.util.texture.spi.awt.IIOTextureProvider:

Public Member Functions

final ImageType[] getImageTypes ()
 Returns the known supported ImageTypes, or null if unknown. More...
 
TextureData newTextureData (final GLProfile glp, final InputStream stream, final int internalFormat, final int pixelFormat, final boolean mipmap, final String fileSuffix) throws IOException
 Produces a TextureData object from a stream, or returns null if the file format was not supported by this TextureProvider. More...
 
ImageType[] getImageTypes ()
 Returns the known supported ImageTypes, or null if unknown. More...
 
TextureData newTextureData (GLProfile glp, InputStream stream, int internalFormat, int pixelFormat, boolean mipmap, String fileSuffix) throws IOException
 Produces a TextureData object from a stream, or returns null if the file format was not supported by this TextureProvider. More...
 

Detailed Description

Definition at line 57 of file IIOTextureProvider.java.

Member Function Documentation

◆ getImageTypes()

final ImageType[] com.jogamp.opengl.util.texture.spi.awt.IIOTextureProvider.getImageTypes ( )

Returns the known supported ImageTypes, or null if unknown.

Use case: Mapping of ImageTypes to TextureProvider.

Implements com.jogamp.opengl.util.texture.spi.TextureProvider.

Definition at line 61 of file IIOTextureProvider.java.

◆ newTextureData()

TextureData com.jogamp.opengl.util.texture.spi.awt.IIOTextureProvider.newTextureData ( final GLProfile  glp,
final InputStream  stream,
final int  internalFormat,
final int  pixelFormat,
final boolean  mipmap,
final String  fileSuffix 
) throws IOException

Produces a TextureData object from a stream, or returns null if the file format was not supported by this TextureProvider.

Does not do any OpenGL-related work. The resulting TextureData can be converted into an OpenGL texture in a later step.

Parameters
glpthe OpenGL Profile this texture data should be created for.
streamthe stream from which to read the texture data
internalFormatthe OpenGL internal format to be used for the texture, or 0 if it should be inferred from the file's contents
pixelFormatthe OpenGL pixel format to be used for the texture, or 0 if it should be inferred from the file's contents
mipmapwhether mipmaps should be produced for this texture either by autogenerating them or reading them from the file. Some file formats support multiple mipmaps in a single file in which case those mipmaps will be used rather than generating them.
fileSuffixthe file suffix to be used as a hint to the provider to more quickly decide whether it can handle the file, or null if the provider should infer the type from the file's contents
Exceptions
IOExceptionif an error occurred while reading the stream

Implements com.jogamp.opengl.util.texture.spi.TextureProvider.

Definition at line 66 of file IIOTextureProvider.java.


The documentation for this class was generated from the following file: