| Modifier and Type | Class and Description |
|---|---|
| public static interface | TextureProvider.
Optional additional interface for |
| Modifier and Type | Method and Description |
|---|---|
| public TextureData | newTextureData(GLProfile
the OpenGL Profile this texture data should be
created for. glp, File the file from which to read the texture data file, int the OpenGL internal format to be used for
the texture, or 0 if it should be inferred
from the file's contents internalFormat, int the OpenGL pixel format to be used for
the texture, or 0 if it should be inferred
from the file's contents pixelFormat, boolean whether 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. mipmap, String the 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 fileSuffix)
Deprecated
Use {@link #newTextureData(GLProfile, InputStream, int, int, boolean, String)
Produces a TextureData object from a file, or returns null if the
file format was not supported by this TextureProvider.
|
| public TextureData | newTextureData(GLProfile
the OpenGL Profile this texture data should be
created for. glp, InputStream the stream from which to read the texture data stream, int the OpenGL internal format to be used for
the texture, or 0 if it should be inferred
from the file's contents internalFormat, int the OpenGL pixel format to be used for
the texture, or 0 if it should be inferred
from the file's contents pixelFormat, boolean whether 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. mipmap, String the 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 fileSuffix)Produces a TextureData object from a stream, or returns null if the file format was not supported by this TextureProvider. |
| public TextureData | newTextureData(GLProfile
the OpenGL Profile this texture data should be
created for. glp, URL the URL from which to read the texture data url, int the OpenGL internal format to be used for
the texture, or 0 if it should be inferred
from the file's contents internalFormat, int the OpenGL pixel format to be used for
the texture, or 0 if it should be inferred
from the file's contents pixelFormat, boolean whether 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. mipmap, String the 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 fileSuffix)
Deprecated
Use {@link #newTextureData(GLProfile, InputStream, int, int, boolean, String)
Produces a TextureData object from a URL, or returns null if the
file format was not supported by this TextureProvider.
|
| newTextureData | back to summary |
|---|---|
| public TextureData newTextureData(GLProfile glp, File file, int internalFormat, int pixelFormat, boolean mipmap, String fileSuffix) throws IOException
Deprecated Use {@link #newTextureData(GLProfile, InputStream, int, int, boolean, String) Produces a TextureData object from a file, 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.
| |
| newTextureData | back to summary |
|---|---|
| public 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. Does not do any OpenGL-related work. The resulting TextureData can be converted into an OpenGL texture in a later step.
| |
| newTextureData | back to summary |
|---|---|
| public TextureData newTextureData(GLProfile glp, URL url, int internalFormat, int pixelFormat, boolean mipmap, String fileSuffix) throws IOException
Deprecated Use {@link #newTextureData(GLProfile, InputStream, int, int, boolean, String) Produces a TextureData object from a URL, 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.
| |
TextureProvider implementation
exposing the supported ImageTypes.
Use case: Mapping of ImageTypes to TextureProvider.
| Modifier and Type | Method and Description |
|---|---|
| public ImageType[] |
| getImageTypes | back to summary |
|---|---|
| public ImageType[] getImageTypes() Returns the supported | |