| Modifier and Type | Field and Description |
|---|---|
| private PixelFormat | |
| private int | |
| private int | |
| private boolean | |
| private final ArrayList | |
| private int | |
| private Texture. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public int | getContentHeight()
Implements com. Returns the content height of this texture, in pixels. |
| public int | getContentWidth()
Implements com. Returns the content width of this texture, in pixels. |
| public int | getContentX()
Implements com. Returns the content x-origin of this texture relative to the upper-left corner, in pixels. |
| public int | getContentY()
Implements com. Returns the content y-origin of this texture relative to the upper-left corner, in pixels. |
| public int | |
| public boolean | getLinearFiltering()
Implements com. Returns whether linear (smooth) filtering will be used when rendering this texture. |
| public int | |
| public int | getMaxContentHeight()
Implements com. Returns the max content height of this texture, in pixels. |
| public int | getMaxContentWidth()
Implements com. Returns the max content width of this texture, in pixels. |
| public int | getPhysicalHeight()
Implements com. Returns the physical height of this texture, in pixels. |
| public int | getPhysicalWidth()
Implements com. Returns the physical width of this texture, in pixels. |
| public PixelFormat | getPixelFormat()
Implements com. Returns the |
| public Texture | getSharedTexture(Texture.
Implements com. Constructs an alternate version of this |
| public Texture | |
| public Texture[] | |
| public boolean | getUseMipmap()
Implements com. Returns the true if mipmapping is used for this texture. |
| public Texture. | |
| public boolean | |
| public boolean | isSurfaceLost()
Implements com. Called by code wanting to know if the RTTexture's surface is lost. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setContentHeight(int contentHeight)
Implements com. Allows the content height, which is the current height of the actual content in pixels, to be adjusted. |
| public void | setContentWidth(int contentWidth)
Implements com. Allows the content width, which is the current width of the actual content in pixels, to be adjusted. |
| public void | |
| public void | setLinearFiltering(boolean linear)
Implements com. Sets whether linear filtering will be used when rendering this texture. |
| public void | |
| public int | |
| public void | |
| public void | update(Image img)
Implements com. Updates this texture using the contents of the given |
| public void | update(Image img, int dstx, int dsty)
Implements com. Updates this texture using the contents of the given |
| public void | update(Image img, int dstx, int dsty, int srcw, int srch)
Implements com. Updates this texture using the contents of the given |
| public void | update(Image img, int dstx, int dsty, int srcw, int srch, boolean skipFlush)
Implements com. Updates this texture using the contents of the given |
| public void | update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)
Implements com. Updates this texture using the contents of the given |
| public void | update(MediaFrame frame, boolean skipFlush)
Implements com. Updates this texture using the contents of the provided
|
| format | back to summary |
|---|---|
| private PixelFormat format | |
| height | back to summary |
|---|---|
| private int height | |
| lastImageSerial | back to summary |
|---|---|
| private int lastImageSerial | |
| linearFiltering | back to summary |
|---|---|
| private boolean linearFiltering | |
| textures | back to summary |
|---|---|
| private final ArrayList<Texture> textures | |
| width | back to summary |
|---|---|
| private int width | |
| wrapMode | back to summary |
|---|---|
| private Texture. | |
| MultiTexture | back to summary |
|---|---|
| public MultiTexture(PixelFormat format, Texture. | |
| MultiTexture | back to summary |
|---|---|
| private MultiTexture(MultiTexture sharedTex, Texture. | |
| assertLocked | back to summary |
|---|---|
| public void assertLocked() Implements com.
| |
| contentsNotUseful | back to summary |
|---|---|
| public void contentsNotUseful() Implements com.
| |
| contentsUseful | back to summary |
|---|---|
| public void contentsUseful() Implements com.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com.
| |
| getContentHeight | back to summary |
|---|---|
| public int getContentHeight() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com.
| |
| getLinearFiltering | back to summary |
|---|---|
| public boolean getLinearFiltering() Implements com. Doc from com. 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() Implements com.
| |
| getMaxContentHeight | back to summary |
|---|---|
| public int getMaxContentHeight() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com. Doc from com. 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() Implements com. Doc from com. Returns the
| |
| getSharedTexture | back to summary |
|---|---|
| public Texture getSharedTexture(Texture. Implements com. Doc from com. Constructs an alternate version of this
| |
| getTexture | back to summary |
|---|---|
| public Texture getTexture(int index) | |
| getTextures | back to summary |
|---|---|
| public Texture[] getTextures() | |
| getUseMipmap | back to summary |
|---|---|
| public boolean getUseMipmap() Implements com. Doc from com. Returns the true if mipmapping is used for this texture.
| |
| getWrapMode | back to summary |
|---|---|
| public Texture. Implements com. Doc from com. Returns the
| |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() Implements com.
| |
| isSurfaceLost | back to summary |
|---|---|
| public boolean isSurfaceLost() Implements com. Doc from com. 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() Implements com.
| |
| makePermanent | back to summary |
|---|---|
| public void makePermanent() Implements com.
| |
| removeTexture | back to summary |
|---|---|
| public void removeTexture(Texture tex) | |
| removeTexture | back to summary |
|---|---|
| public void removeTexture(int index) | |
| setContentHeight | back to summary |
|---|---|
| public void setContentHeight(int contentHeight) Implements com. Doc from com. 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) Implements com. Doc from com. 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) Implements com.
| |
| setLinearFiltering | back to summary |
|---|---|
| public void setLinearFiltering(boolean linear) Implements com. Doc from com. Sets whether linear filtering will be used when rendering this texture.
| |
| setTexture | back to summary |
|---|---|
| public void setTexture(Texture tex, int index) | |
| textureCount | back to summary |
|---|---|
| public int textureCount() | |
| unlock | back to summary |
|---|---|
| public void unlock() Implements com.
| |
| update | back to summary |
|---|---|
| public void update(Image img) Implements com. Doc from com. 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) Implements com. Doc from com. 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) Implements com. Doc from com. 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) Implements com. Doc from com. 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) Implements com. Doc from com. Updates this texture using the contents of the given
| |
| update | back to summary |
|---|---|
| public void update(MediaFrame frame, boolean skipFlush) Implements com. Doc from com. Updates this texture using the contents of the provided
| |