| Modifier and Type | Class and Description |
|---|---|
| public static enum | Texture.
A hint indicating whether the contents of the texture will be changing frequently (DYNAMIC) or mostly stable for the lifetime of the texture (STATIC). |
| public static enum | Texture.
Specifies the behavior when texels are accessed outside the physical bounds of the texture. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public int | Returns: the content height of this texture, in pixelsReturns the content height of this texture, in pixels. |
| public int | Returns: the content width of this texture, in pixelsReturns the content width of this texture, in pixels. |
| public int | Returns: the content x-origin of this textureReturns the content x-origin of this texture relative to the upper-left corner, in pixels. |
| public int | Returns: the content y-origin of this textureReturns the content y-origin of this texture relative to the upper-left corner, in pixels. |
| public int | |
| public boolean | Returns: whether linear filtering will be used for this textureReturns whether linear (smooth) filtering will be used when rendering this texture. |
| public int | |
| public int | Returns: the max content height of this texture, in pixelsReturns the max content height of this texture, in pixels. |
| public int | Returns: the max content width of this texture, in pixelsReturns the max content width of this texture, in pixels. |
| public int | Returns: the physical height of this texture, in pixelsReturns the physical height of this texture, in pixels. |
| public int | Returns: the physical width of this texture, in pixelsReturns the physical width of this texture, in pixels. |
| public PixelFormat | |
| public Texture | getSharedTexture(Texture.
Constructs an alternate version of this |
| public boolean | Returns: theuseMipmap flag for this textureReturns the true if mipmapping is used for this texture. |
| public Texture. | |
| public boolean | |
| public boolean | Returns: True if the backing surface of this RTTexture is gone and the image is therefore no longer usable. False if it is still OK.Called by code wanting to know if the RTTexture's surface is lost. |
| public void | |
| public void | |
| public void | setContentHeight(int
The actual new height of user pixels. contentHeight)Allows the content height, which is the current height of the actual content in pixels, to be adjusted. |
| public void | setContentWidth(int
The actual new width of user pixels. contentWidth)Allows the content width, which is the current width of the actual content in pixels, to be adjusted. |
| public void | |
| public void | setLinearFiltering(boolean
if true, enables linear filtering; if false, enables
nearest neighbor filtering linear)Sets whether linear filtering will be used when rendering this texture. |
| public void | |
| public void | |
| public void | update(Image
the image data to be uploaded to this texture img, int the x-offset of the image data, in pixels, relative to the
contentX of this texture dstx, int the y-offset of the image data, in pixels, relative to the
contentY of this texture dsty)Updates this texture using the contents of the given |
| public void | update(Image
the image data to be uploaded to this texture img, int the x-offset of the image data, in pixels, relative to the
contentX of this texture dstx, int the y-offset of the image data, in pixels, relative to the
contentY of this texture dsty, int the width of the pixel region from the source image srcw, int the height of the pixel region from the source image srch)Updates this texture using the contents of the given |
| public void | update(Image
the image data to be uploaded to this texture img, int the x-offset of the image data, in pixels, relative to the
contentX of this texture dstx, int the y-offset of the image data, in pixels, relative to the
contentY of this texture dsty, int the width of the pixel region from the source image srcw, int the height of the pixel region from the source image srch, boolean if true, the vertex buffer will not be flushed skipFlush)Updates this texture using the contents of the given |
| public void | update(Buffer buffer, PixelFormat
the format of the data contained in the pixel buffer format, int the x-offset of the image data, in pixels, relative to the
contentX of this texture dstx, int the y-offset of the image data, in pixels, relative to the
contentY of this texture dsty, int the x-offset into the source buffer, in pixels srcx, int the y-offset into the source buffer, in pixels srcy, int the width of the pixel region from the source buffer srcw, int the height of the pixel region from the source buffer srch, int the scanline stride of the source buffer, in bytes srcscan, boolean if true, the vertex buffer will not be flushed skipFlush)Updates this texture using the contents of the given |
| public void | update(MediaFrame
the source video buffer to update the texture data from frame, boolean if true, the vertex buffer will not be flushed skipFlush)Updates this texture using the contents of the provided
|
| assertLocked | back to summary |
|---|---|
| public void assertLocked() | |
| contentsNotUseful | back to summary |
|---|---|
| public void contentsNotUseful() | |
| contentsUseful | back to summary |
|---|---|
| public void contentsUseful() | |
| getContentHeight | back to summary |
|---|---|
| public int getContentHeight() Returns the content height of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content height will be less than or equal to the content height. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.
| |
| getContentWidth | back to summary |
|---|---|
| public int getContentWidth() Returns the content width of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content width will be less than or equal to the content width. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.
| |
| getContentX | back to summary |
|---|---|
| public int getContentX() Returns the content x-origin of this texture relative to the upper-left corner, in pixels. This value will be greater than equal to zero.
| |
| getContentY | back to summary |
|---|---|
| public int getContentY() Returns the content y-origin of this texture relative to the upper-left corner, in pixels. This value will be greater than equal to zero.
| |
| getLastImageSerial | back to summary |
|---|---|
| public int getLastImageSerial() | |
| getLinearFiltering | back to summary |
|---|---|
| public boolean getLinearFiltering() Returns whether linear (smooth) filtering will be used when rendering this texture. If false, a simple nearest neighbor algorithm will be used.
| |
| getLockCount | back to summary |
|---|---|
| public int getLockCount() | |
| getMaxContentHeight | back to summary |
|---|---|
| public int getMaxContentHeight() Returns the max content height of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content height will be less than or equal to the max content height. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256 and the max content dimensions will be 512x256 minus any padding needed by the implementation to simulate edge conditions., but the content dimensions will be 400x200.
| |
| getMaxContentWidth | back to summary |
|---|---|
| public int getMaxContentWidth() Returns the max content width of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content width will be less than or equal to the max content width. For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256 and the max content dimensions will be 512x256 minus any padding needed by the implementation to simulate edge conditions., but the content dimensions will be 400x200.
| |
| getPhysicalHeight | back to summary |
|---|---|
| public int getPhysicalHeight() Returns the physical height of this texture, in pixels. Note that the physical size of a texture may be larger than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The physical height will be greater than or equal to the content height.
| |
| getPhysicalWidth | back to summary |
|---|---|
| public int getPhysicalWidth() Returns the physical width of this texture, in pixels. Note that the physical size of a texture may be larger than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The physical width will be greater than or equal to the content width.
| |
| getPixelFormat | back to summary |
|---|---|
| public PixelFormat getPixelFormat() Returns the
| |
| getSharedTexture | back to summary |
|---|---|
| public Texture getSharedTexture(Texture. Constructs an alternate version of this | |
| getUseMipmap | back to summary |
|---|---|
| public boolean getUseMipmap() Returns the true if mipmapping is used for this texture.
| |
| getWrapMode | back to summary |
|---|---|
| public Texture. Returns the | |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() | |
| isSurfaceLost | back to summary |
|---|---|
| public boolean isSurfaceLost() Called by code wanting to know if the RTTexture's surface is lost. This happens in some cases (mostly on Windows) when, for example, the user presses Ctrl+Alt+Delete, or the system goes to sleep.
| |
| lock | back to summary |
|---|---|
| public void lock() | |
| makePermanent | back to summary |
|---|---|
| public void makePermanent() | |
| setContentHeight | back to summary |
|---|---|
| public void setContentHeight(int contentHeight) Allows the content height, which is the current height of the actual content in pixels, to be adjusted. The height must be between 0 and maxContentHeight . *
| |
| setContentWidth | back to summary |
|---|---|
| public void setContentWidth(int contentWidth) Allows the content width, which is the current width of the actual content in pixels, to be adjusted. The height must be between 0 and maxContentHeight
| |
| setLastImageSerial | back to summary |
|---|---|
| public void setLastImageSerial(int serial) | |
| setLinearFiltering | back to summary |
|---|---|
| public void setLinearFiltering(boolean linear) Sets whether linear filtering will be used when rendering this texture.
| |
| unlock | back to summary |
|---|---|
| public void unlock() | |
| update | back to summary |
|---|---|
| public void update(Image img) Updates this texture using the contents of the given
This is equivalent to calling:
| |
| update | back to summary |
|---|---|
| public void update(Image img, int dstx, int dsty) Updates this texture using the contents of the given
This is equivalent to calling:
| |
| update | back to summary |
|---|---|
| public void update(Image img, int dstx, int dsty, int srcw, int srch) Updates this texture using the contents of the given
This is equivalent to calling:
| |
| update | back to summary |
|---|---|
| public void update(Image img, int dstx, int dsty, int srcw, int srch, boolean skipFlush) Updates this texture using the contents of the given
This is equivalent to calling:
| |
| update | back to summary |
|---|---|
| public void update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush) Updates this texture using the contents of the given
| |
| update | back to summary |
|---|---|
| public void update(MediaFrame frame, boolean skipFlush) Updates this texture using the contents of the provided
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Texture. | |
| public static final Texture. | |
| public static final Texture. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Texture. | |
| public static Texture. |
| DEFAULT | back to summary |
|---|---|
| public static final Texture. | |
| DYNAMIC | back to summary |
|---|---|
| public static final Texture. | |
| STATIC | back to summary |
|---|---|
| public static final Texture. | |
| Usage | back to summary |
|---|---|
| private Usage() | |
| valueOf | back to summary |
|---|---|
| public static Texture. | |
| values | back to summary |
|---|---|
| public static Texture. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Texture. | CLAMP_NOT_NEEDED
CLAMP_NOT_NEEDED is used for applications where the caller knows that the texture will never be sampled outside the center of the first and last pixels in the content area of the texture. |
| public static final Texture. | CLAMP_TO_EDGE
CLAMP_TO_EDGE is used for applications where the area outside of the defined pixels should be clamped to the value of (the center of) the edge pixels. |
| public static final Texture. | CLAMP_TO_EDGE_SIMULATED
This value can be returned from the |
| public static final Texture. | CLAMP_TO_ZERO
CLAMP_TO_ZERO is used for applications where the area outside of the defined pixels should interpolate from the edge pixel values at the center of those edge pixels to fully transparent at the center of the pixels just outside the content area, and then remain fully transparent out to +/- infinity. |
| public static final Texture. | CLAMP_TO_ZERO_SIMULATED
This value can be returned from the |
| public static final Texture. | REPEAT
REPEAT is used for applications where the pixels should be repeated from edge to edge as per the GL_REPEAT mode. |
| public static final Texture. | REPEAT_SIMULATED
This value can be returned from the |
| private Texture. | |
| private Texture. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Texture. | |
| public static Texture. | |
| public static Texture. |
| CLAMP_NOT_NEEDED | back to summary |
|---|---|
| public static final Texture. CLAMP_NOT_NEEDED is used for applications where the caller knows that the texture will never be sampled outside the center of the first and last pixels in the content area of the texture. For this mode the fitting of the pixels to the physical area and the hardware wrapping or clamping modes will not come into play. The most typical case for this is a back buffer or device-pixel cache where the texture will always be rendered 1:1 on top of pixels in the destination, but any case where the caller knows that the samples will be limited to the "safe area" as described can use this mode. | |
| CLAMP_TO_EDGE | back to summary |
|---|---|
| public static final Texture. CLAMP_TO_EDGE is used for applications where the area outside of the defined pixels should be clamped to the value of (the center of) the edge pixels. This is commonly used for rendering images in an ImageView or for storing the colors of a NO_CYCLE gradient. | |
| CLAMP_TO_EDGE_SIMULATED | back to summary |
|---|---|
| public static final Texture. This value can be returned from the | |
| CLAMP_TO_ZERO | back to summary |
|---|---|
| public static final Texture. CLAMP_TO_ZERO is used for applications where the area outside of the defined pixels should interpolate from the edge pixel values at the center of those edge pixels to fully transparent at the center of the pixels just outside the content area, and then remain fully transparent out to +/- infinity. The most common uses will be cached renderings that might be stretched, scaled, rotated, or otherwise be subjected to situations where samples may be taken outside the "safe area" as described for the CLAMP_NOT_NEEDED mode and those samples should fade to zero (for instance, effect inputs and results). | |
| CLAMP_TO_ZERO_SIMULATED | back to summary |
|---|---|
| public static final Texture. This value can be returned from the | |
| REPEAT | back to summary |
|---|---|
| public static final Texture. REPEAT is used for applications where the pixels should be repeated from edge to edge as per the GL_REPEAT mode. This is typically used for ImagePattern, though it could be used for REPEAT or REFLECT gradients with a properly initialized color texture and with the caveat that the GL_REPEAT type of math does not exactly match the Gradient REPEAT/REFLECT math. | |
| REPEAT_SIMULATED | back to summary |
|---|---|
| public static final Texture. This value can be returned from the | |
| simulatedBy | back to summary |
|---|---|
| private Texture. | |
| simulates | back to summary |
|---|---|
| private Texture. | |
| WrapMode | back to summary |
|---|---|
| private WrapMode(Texture. | |
| WrapMode | back to summary |
|---|---|
| private WrapMode() | |
| isCompatibleWith | back to summary |
|---|---|
| public boolean isCompatibleWith(Texture. | |
| simulatedVersion | back to summary |
|---|---|
| public Texture. | |
| valueOf | back to summary |
|---|---|
| public static Texture. | |
| values | back to summary |
|---|---|
| public static Texture. | |