| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private BufferedImage | |
| private static final ColorModel | |
| private static final ColorModel |
| Access | Constructor and Description |
|---|---|
| public | AWTTextureData(final GLProfile
the OpenGL Profile this texture data should be
created for. glp, final int the OpenGL internal format for the
resulting texture; may be 0, in which case
it is inferred from the image's type internalFormat, final int the OpenGL internal format for the
resulting texture; may be 0, in which case
it is inferred from the image's type (note:
this argument is currently always ignored) pixelFormat, final boolean indicates whether mipmaps should be
autogenerated (using GLU) for the resulting
texture mipmap, final BufferedImage the image containing the texture data image)Constructs a new TextureData object with the specified parameters and data contained in the given BufferedImage. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| public Buffer | getBuffer()
Overrides com. |
| public GLPixelBuffer. | getPixelAttributes()
Overrides com. GLPixelAttributes of the texture data, i.e. format and type.
|
| public int | getPixelFormat()
Overrides com. getPixelAttributes().
|
| public int | getPixelType()
Overrides com. getPixelAttributes().
|
| private boolean | |
| private void | |
| private void | |
| private void | |
| private Buffer |
| expectingEXTABGR | back to summary |
|---|---|
| private boolean expectingEXTABGR | |
| expectingGL12 | back to summary |
|---|---|
| private boolean expectingGL12 | |
| imageForLazyCustomConversion | back to summary |
|---|---|
| private BufferedImage imageForLazyCustomConversion | |
| rgbaColorModel | back to summary |
|---|---|
| private static final ColorModel rgbaColorModel | |
| rgbColorModel | back to summary |
|---|---|
| private static final ColorModel rgbColorModel | |
| AWTTextureData | back to summary |
|---|---|
| public AWTTextureData(final GLProfile glp, final int internalFormat, final int pixelFormat, final boolean mipmap, final BufferedImage image) Constructs a new TextureData object with the specified parameters and data contained in the given BufferedImage. The resulting TextureData "wraps" the contents of the BufferedImage, so if a modification is made to the BufferedImage between the time the TextureData is constructed and when a Texture is made from the TextureData, that modification will be visible in the resulting Texture.
| |
| createFromCustom | back to summary |
|---|---|
| private void createFromCustom(final BufferedImage image) | |
| createFromImage | back to summary |
|---|---|
| private void createFromImage(final GLProfile glp, final BufferedImage image) | |
| createNIOBufferFromImage | back to summary |
|---|---|
| private void createNIOBufferFromImage(final BufferedImage image) | |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Overrides com. Doc from com. Returns the texture data, or null if it is specified as a set of mipmaps.
| |
| getPixelAttributes | back to summary |
|---|---|
| public GLPixelBuffer. Overrides com. Doc from com. Returns the intended OpenGL
| |
| getPixelFormat | back to summary |
|---|---|
| public int getPixelFormat() Overrides com. Doc from com. Returns the intended OpenGL pixel format of the texture data using
| |
| getPixelType | back to summary |
|---|---|
| public int getPixelType() Overrides com. Doc from com. Returns the intended OpenGL pixel type of the texture data using
| |
| isPackedInt | back to summary |
|---|---|
| private boolean isPackedInt(final BufferedImage image) | |
| revertPixelAttributes | back to summary |
|---|---|
| private void revertPixelAttributes() | |
| setupLazyCustomConversion | back to summary |
|---|---|
| private void setupLazyCustomConversion(final BufferedImage image) | |
| validatePixelAttributes | back to summary |
|---|---|
| private void validatePixelAttributes() | |
| wrapImageDataBuffer | back to summary |
|---|---|
| private Buffer wrapImageDataBuffer(final BufferedImage image) | |