| Modifier and Type | Class and Description |
|---|---|
| public static enum | TextureData.
ColorSpace of pixel data. |
| public static interface | TextureData.
Defines a callback mechanism to allow the user to explicitly deallocate native resources (memory-mapped files, etc.) associated with a particular TextureData. |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| private int | |
| protected Buffer | |
| private boolean | |
| protected int | |
| private TextureData. | |
| protected GLProfile | |
| protected boolean | |
| protected boolean | |
| protected int | |
| protected int | |
| protected boolean | |
| private Buffer[] | |
| protected boolean | |
| protected GLPixelBuffer. | |
| protected TextureData. | |
| protected int | |
| pack-priv ImageType | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public | TextureData(final GLProfile
the OpenGL Profile this texture data should be
created for. glp, final int the OpenGL internal format for the
resulting texture; must be specified, may
not be 0 internalFormat, final int the width in pixels of the texture width, final int the height in pixels of the texture height, final int the number of pixels of border this texture
data has (0 or 1) border, final int the OpenGL pixel format for the
resulting texture; must be specified, may
not be 0 pixelFormat, final int the OpenGL type of the pixels of the texture pixelType, final boolean indicates whether mipmaps should be
autogenerated (using GLU) for the resulting
texture. Currently if mipmap is true then
dataIsCompressed may not be true. mipmap, final boolean indicates whether the texture data is in
compressed form
(e.g. GL_COMPRESSED_RGB_S3TC_DXT1_EXT) dataIsCompressed, final boolean indicates whether the texture
coordinates must be flipped vertically
in order to properly display the
texture mustFlipVertically, final Buffer the buffer containing the texture data buffer, final TextureData.optional flusher to perform cleanup tasks
upon call to flush() flusherConstructs a new TextureData object with the specified parameters and data contained in the given Buffer. |
| public | TextureData(final GLProfile
the OpenGL Profile this texture data should be
created for. glp, final int the OpenGL internal format for the
resulting texture; must be specified, may
not be 0 internalFormat, final int the width in pixels of the texture width, final int the height in pixels of the texture height, final int the number of pixels of border this texture
data has (0 or 1) border, final GLPixelBuffer.the OpenGL pixel format and type for the
resulting texture; must be specified, may
not be 0 pixelAttributes,indicates whether mipmaps should be
autogenerated (using GLU) for the resulting
texture. Currently if mipmap is true then
dataIsCompressed may not be true. mipmap, final boolean indicates whether the texture data is in
compressed form
(e.g. GL_COMPRESSED_RGB_S3TC_DXT1_EXT) dataIsCompressed, final boolean indicates whether the texture
coordinates must be flipped vertically
in order to properly display the
texture mustFlipVertically, final Buffer the buffer containing the texture data buffer, final TextureData.optional flusher to perform cleanup tasks
upon call to flush() flusherConstructs a new TextureData object with the specified parameters and data contained in the given Buffer. |
| public | TextureData(final GLProfile
the OpenGL Profile this texture data should be
created for. glp, final int the OpenGL internal format for the
resulting texture; must be specified, may
not be 0 internalFormat, final int the width in pixels of the topmost mipmap
level of the texture width, final int the height in pixels of the topmost mipmap
level of the texture height, final int the number of pixels of border this texture
data has (0 or 1) border, final int the OpenGL pixel format for the
resulting texture; must be specified, may
not be 0 pixelFormat, final int the OpenGL type of the pixels of the texture pixelType, final boolean indicates whether the texture data is in
compressed form
(e.g. GL_COMPRESSED_RGB_S3TC_DXT1_EXT) dataIsCompressed, final boolean indicates whether the texture
coordinates must be flipped vertically
in order to properly display the
texture mustFlipVertically, final Buffer[] the buffers containing all mipmap levels
of the texture's data mipmapData, final TextureData.optional flusher to perform cleanup tasks
upon call to flush() flusherConstructs a new TextureData object with the specified parameters and data for multiple mipmap levels contained in the given array of Buffers. |
| public | TextureData(final GLProfile
the OpenGL Profile this texture data should be
created for. glp, final int the OpenGL internal format for the
resulting texture; must be specified, may
not be 0 internalFormat, final int the width in pixels of the topmost mipmap
level of the texture width, final int the height in pixels of the topmost mipmap
level of the texture height, final int the number of pixels of border this texture
data has (0 or 1) border, final GLPixelBuffer.the OpenGL pixel format and type for the
resulting texture; must be specified, may
not be 0 pixelAttributes,indicates whether the texture data is in
compressed form
(e.g. GL_COMPRESSED_RGB_S3TC_DXT1_EXT) dataIsCompressed, final boolean indicates whether the texture
coordinates must be flipped vertically
in order to properly display the
texture mustFlipVertically, final Buffer[] the buffers containing all mipmap levels
of the texture's data mipmapData, final TextureData.optional flusher to perform cleanup tasks
upon call to flush() flusherConstructs a new TextureData object with the specified parameters and data for multiple mipmap levels contained in the given array of Buffers. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected static int | |
| public void | |
| public int | |
| public int | |
| public Buffer | |
| public TextureData. | |
| public int | getEstimatedMemorySize()
Returns an estimate of the amount of memory in bytes this TextureData will consume once uploaded to the graphics card. |
| public GLProfile | |
| public int | |
| public int | |
| public boolean | |
| public Buffer[] | getMipmapData()
Returns all mipmap levels for the texture data, or null if it is specified as a single image. |
| public boolean | getMustFlipVertically()
Indicates whether the texture coordinates must be flipped vertically for proper display. |
| public GLPixelBuffer. | getPixelAttributes()
Returns the intended OpenGL |
| public int | getPixelFormat()
Returns the intended OpenGL pixel format of the texture data using |
| public int | getPixelType()
Returns the intended OpenGL pixel type of the texture data using |
| public int | |
| public final ImageType | |
| public int | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | setColorSpace(final TextureData.
Set the color space of the pixel data, which defaults to |
| public void | setHaveEXTABGR(final boolean haveEXTABGR)
Indicates to this TextureData whether the GL_EXT_abgr extension is available. |
| public void | setHaveGL12(final boolean haveGL12)
Indicates to this TextureData whether OpenGL version 1.2 is available. |
| public void | |
| public void | setInternalFormat(final int internalFormat)
Sets the intended OpenGL internal format of the texture data. |
| public void | |
| public void | |
| public void | setMustFlipVertically(final boolean mustFlipVertically)
Sets whether the texture coordinates must be flipped vertically for proper display. |
| public void | setPixelAttributes(final GLPixelBuffer.
Sets the intended OpenGL pixel format of the texture data. |
| public void | setPixelFormat(final int pixelFormat)
Sets the intended OpenGL pixel format component of |
| public void | setPixelType(final int pixelType)
Sets the intended OpenGL pixel type component of |
| public void | setRowLength(final int rowLength)
Sets the row length needed for correct GL_UNPACK_ROW_LENGTH specification. |
| public void | |
| public String |
| alignment | back to summary |
|---|---|
| protected int alignment | |
| border | back to summary |
|---|---|
| private int border | |
| buffer | back to summary |
|---|---|
| protected Buffer buffer | |
| dataIsCompressed | back to summary |
|---|---|
| private boolean dataIsCompressed | |
| estimatedMemorySize | back to summary |
|---|---|
| protected int estimatedMemorySize | |
| flusher | back to summary |
|---|---|
| private TextureData. | |
| glProfile | back to summary |
|---|---|
| protected GLProfile glProfile | |
| haveEXTABGR | back to summary |
|---|---|
| protected boolean haveEXTABGR | |
| haveGL12 | back to summary |
|---|---|
| protected boolean haveGL12 | |
| height | back to summary |
|---|---|
| protected int height | |
| internalFormat | back to summary |
|---|---|
| protected int internalFormat | |
| mipmap | back to summary |
|---|---|
| protected boolean mipmap | |
| mipmapData | back to summary |
|---|---|
| private Buffer[] mipmapData | |
| mustFlipVertically | back to summary |
|---|---|
| protected boolean mustFlipVertically | |
| pixelAttributes | back to summary |
|---|---|
| protected GLPixelBuffer. | |
| pixelCS | back to summary |
|---|---|
| protected TextureData. | |
| rowLength | back to summary |
|---|---|
| protected int rowLength | |
| srcImageType | back to summary |
|---|---|
| pack-priv ImageType srcImageType | |
| width | back to summary |
|---|---|
| protected int width | |
| TextureData | back to summary |
|---|---|
| public TextureData(final GLProfile glp, final int internalFormat, final int width, final int height, final int border, final int pixelFormat, final int pixelType, final boolean mipmap, final boolean dataIsCompressed, final boolean mustFlipVertically, final Buffer buffer, final TextureData. Constructs a new TextureData object with the specified parameters and data contained in the given Buffer. The optional Flusher can be used to clean up native resources associated with this TextureData when processing is complete; for example, closing of memory-mapped files that might otherwise require a garbage collection to reclaim and close.
| |
| TextureData | back to summary |
|---|---|
| public TextureData(final GLProfile glp, final int internalFormat, final int width, final int height, final int border, final GLPixelBuffer. Constructs a new TextureData object with the specified parameters and data contained in the given Buffer. The optional Flusher can be used to clean up native resources associated with this TextureData when processing is complete; for example, closing of memory-mapped files that might otherwise require a garbage collection to reclaim and close.
| |
| TextureData | back to summary |
|---|---|
| public TextureData(final GLProfile glp, final int internalFormat, final int width, final int height, final int border, final int pixelFormat, final int pixelType, final boolean dataIsCompressed, final boolean mustFlipVertically, final Buffer[] mipmapData, final TextureData. Constructs a new TextureData object with the specified parameters and data for multiple mipmap levels contained in the given array of Buffers. The optional Flusher can be used to clean up native resources associated with this TextureData when processing is complete; for example, closing of memory-mapped files that might otherwise require a garbage collection to reclaim and close.
| |
| TextureData | back to summary |
|---|---|
| public TextureData(final GLProfile glp, final int internalFormat, final int width, final int height, final int border, final GLPixelBuffer. Constructs a new TextureData object with the specified parameters and data for multiple mipmap levels contained in the given array of Buffers. The optional Flusher can be used to clean up native resources associated with this TextureData when processing is complete; for example, closing of memory-mapped files that might otherwise require a garbage collection to reclaim and close.
| |
| TextureData | back to summary |
|---|---|
| protected TextureData(final GLProfile glp) Used only by subclasses | |
| destroy | back to summary |
|---|---|
| public void destroy() Calls flush()
| |
| estimatedMemorySize | back to summary |
|---|---|
| protected static int estimatedMemorySize(final Buffer buffer) | |
| flush | back to summary |
|---|---|
| public void flush() Flushes resources associated with this TextureData by calling Flusher.flush(). | |
| getAlignment | back to summary |
|---|---|
| public int getAlignment() Returns the required byte alignment for the texture data. | |
| getBorder | back to summary |
|---|---|
| public int getBorder() Returns the border in pixels of the texture data. | |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Returns the texture data, or null if it is specified as a set of mipmaps. | |
| getColorSpace | back to summary |
|---|---|
| public TextureData. Returns the color space of the pixel data.
| |
| getEstimatedMemorySize | back to summary |
|---|---|
| public int getEstimatedMemorySize() Returns an estimate of the amount of memory in bytes this TextureData will consume once uploaded to the graphics card. It should only be treated as an estimate; most applications should not need to query this but instead let the OpenGL implementation page textures in and out as necessary. | |
| getGLProfile | back to summary |
|---|---|
| public GLProfile getGLProfile() Returns the GLProfile this texture data is intended and created for. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Returns the height in pixels of the texture data. | |
| getInternalFormat | back to summary |
|---|---|
| public int getInternalFormat() Returns the intended OpenGL internal format of the texture data. | |
| getMipmap | back to summary |
|---|---|
| public boolean getMipmap() Returns whether mipmaps should be generated for the texture data. | |
| getMipmapData | back to summary |
|---|---|
| public Buffer[] getMipmapData() Returns all mipmap levels for the texture data, or null if it is specified as a single image. | |
| getMustFlipVertically | back to summary |
|---|---|
| public boolean getMustFlipVertically() Indicates whether the texture coordinates must be flipped vertically for proper display. | |
| getPixelAttributes | back to summary |
|---|---|
| public GLPixelBuffer. Returns the intended OpenGL | |
| getPixelFormat | back to summary |
|---|---|
| public int getPixelFormat() Returns the intended OpenGL pixel format of the texture data using | |
| getPixelType | back to summary |
|---|---|
| public int getPixelType() Returns the intended OpenGL pixel type of the texture data using | |
| getRowLength | back to summary |
|---|---|
| public int getRowLength() Returns the row length needed for correct GL_UNPACK_ROW_LENGTH specification. This is currently only supported for non-mipmapped, non-compressed textures. | |
| getSourceImageType | back to summary |
|---|---|
| public final ImageType getSourceImageType() Returns the source
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Returns the width in pixels of the texture data. | |
| isDataCompressed | back to summary |
|---|---|
| public boolean isDataCompressed() Indicates whether the texture data is in compressed form. | |
| setAlignment | back to summary |
|---|---|
| public void setAlignment(final int alignment) Sets the required byte alignment for the texture data. | |
| setBorder | back to summary |
|---|---|
| public void setBorder(final int border) Sets the border in pixels of the texture data. | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(final Buffer buffer) Sets the texture data. | |
| setColorSpace | back to summary |
|---|---|
| public void setColorSpace(final TextureData. Set the color space of the pixel data, which defaults to
| |
| setHaveEXTABGR | back to summary |
|---|---|
| public void setHaveEXTABGR(final boolean haveEXTABGR) Indicates to this TextureData whether the GL_EXT_abgr extension is available. Used for optimization along some code paths to avoid data copies. | |
| setHaveGL12 | back to summary |
|---|---|
| public void setHaveGL12(final boolean haveGL12) Indicates to this TextureData whether OpenGL version 1.2 is available. If not, falls back to relatively inefficient code paths for several input data types (several kinds of packed pixel formats, in particular). | |
| setHeight | back to summary |
|---|---|
| public void setHeight(final int height) Sets the height in pixels of the texture data. | |
| setInternalFormat | back to summary |
|---|---|
| public void setInternalFormat(final int internalFormat) Sets the intended OpenGL internal format of the texture data. | |
| setIsDataCompressed | back to summary |
|---|---|
| public void setIsDataCompressed(final boolean compressed) Sets whether the texture data is in compressed form. | |
| setMipmap | back to summary |
|---|---|
| public void setMipmap(final boolean mipmap) Sets whether mipmaps should be generated for the texture data. | |
| setMustFlipVertically | back to summary |
|---|---|
| public void setMustFlipVertically(final boolean mustFlipVertically) Sets whether the texture coordinates must be flipped vertically for proper display. | |
| setPixelAttributes | back to summary |
|---|---|
| public void setPixelAttributes(final GLPixelBuffer. Sets the intended OpenGL pixel format of the texture data. | |
| setPixelFormat | back to summary |
|---|---|
| public void setPixelFormat(final int pixelFormat) Sets the intended OpenGL pixel format component of
Use | |
| setPixelType | back to summary |
|---|---|
| public void setPixelType(final int pixelType) Sets the intended OpenGL pixel type component of
Use | |
| setRowLength | back to summary |
|---|---|
| public void setRowLength(final int rowLength) Sets the row length needed for correct GL_UNPACK_ROW_LENGTH specification. This is currently only supported for non-mipmapped, non-compressed textures. | |
| setWidth | back to summary |
|---|---|
| public void setWidth(final int width) Sets the width in pixels of the texture data. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TextureData. | |
| public static final TextureData. | |
| public static final TextureData. | |
| public static final TextureData. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TextureData. | |
| public static TextureData. |
| CMYK | back to summary |
|---|---|
| public static final TextureData. | |
| RGB | back to summary |
|---|---|
| public static final TextureData. | |
| YCbCr | back to summary |
|---|---|
| public static final TextureData. | |
| YCCK | back to summary |
|---|---|
| public static final TextureData. | |
| ColorSpace | back to summary |
|---|---|
| private ColorSpace() | |
| valueOf | back to summary |
|---|---|
| public static TextureData. | |
| values | back to summary |
|---|---|
| public static TextureData. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| flush | back to summary |
|---|---|
| public void flush() Flushes any native resources associated with this TextureData. | |