| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| private final int | |
| private final int | |
| private final PixelFormat | |
| private int | |
| private boolean | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| protected final T | |
| private final boolean | |
| private final Texture. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | BaseTexture(T resource, PixelFormat format, Texture.
|
| protected | BaseTexture(T resource, PixelFormat format, Texture.
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| protected void | checkUpdateParams(Buffer buf, PixelFormat fmt, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan)
|
| public final void | |
| public final void | |
| protected abstract Texture | Returns: a newTexture object sharing the underlying resource.the newModeWrapMode to use for the new texture.Create a new version of this texture which shares the same
|
| public final void | |
| public final int | getContentHeight()
Implements com. Returns the content height of this texture, in pixels. |
| public final int | getContentWidth()
Implements com. Returns the content width of this texture, in pixels. |
| public final int | getContentX()
Implements com. Returns the content x-origin of this texture relative to the upper-left corner, in pixels. |
| public final int | getContentY()
Implements com. Returns the content y-origin of this texture relative to the upper-left corner, in pixels. |
| public final int | |
| public final boolean | getLinearFiltering()
Implements com. Returns whether linear (smooth) filtering will be used when rendering this texture. |
| public final 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 final int | getPhysicalHeight()
Implements com. Returns the physical height of this texture, in pixels. |
| public final int | getPhysicalWidth()
Implements com. Returns the physical width of this texture, in pixels. |
| public final PixelFormat | getPixelFormat()
Implements com. Returns the |
| public Texture | getSharedTexture(Texture.
Implements com. Constructs an alternate version of this |
| public boolean | getUseMipmap()
Implements com. Returns the true if mipmapping is used for this texture. |
| public final Texture. | |
| public final boolean | |
| public final boolean | isSurfaceLost()
Implements com. Called by code wanting to know if the RTTexture's surface is lost. |
| public final void | |
| public final void | |
| public void | setContentHeight(int contentH)
Implements com. Allows the content height, which is the current height of the actual content in pixels, to be adjusted. |
| public void | setContentWidth(int contentW)
Implements com. Allows the content width, which is the current width of the actual content in pixels, to be adjusted. |
| public final void | |
| public void | setLinearFiltering(boolean linear)
Implements com. Sets whether linear filtering will be used when rendering this texture. |
| public String | |
| public final 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 w, int h)
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 |
| contentHeight | back to summary |
|---|---|
| protected int contentHeight | |
| contentWidth | back to summary |
|---|---|
| protected int contentWidth | |
| contentX | back to summary |
|---|---|
| private final int contentX | |
| contentY | back to summary |
|---|---|
| private final int contentY | |
| format | back to summary |
|---|---|
| private final PixelFormat format | |
| lastImageSerial | back to summary |
|---|---|
| private int lastImageSerial | |
| linearFiltering | back to summary |
|---|---|
| private boolean linearFiltering | |
| maxContentHeight | back to summary |
|---|---|
| private final int maxContentHeight | |
| maxContentWidth | back to summary |
|---|---|
| private final int maxContentWidth | |
| physicalHeight | back to summary |
|---|---|
| private final int physicalHeight | |
| physicalWidth | back to summary |
|---|---|
| private final int physicalWidth | |
| resource | back to summary |
|---|---|
| protected final T resource | |
| useMipmap | back to summary |
|---|---|
| private final boolean useMipmap | |
| wrapMode | back to summary |
|---|---|
| private final Texture. | |
| BaseTexture | back to summary |
|---|---|
| protected BaseTexture(BaseTexture<T> sharedTex, Texture. | |
| BaseTexture | back to summary |
|---|---|
| protected BaseTexture(T resource, PixelFormat format, Texture. | |
| BaseTexture | back to summary |
|---|---|
| protected BaseTexture(T resource, PixelFormat format, Texture. | |
| BaseTexture | back to summary |
|---|---|
| protected BaseTexture(T resource, PixelFormat format, Texture. | |
| assertLocked | back to summary |
|---|---|
| public final void assertLocked() Implements com.
| |
| checkUpdateParams | back to summary |
|---|---|
| protected void checkUpdateParams(Buffer buf, PixelFormat fmt, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan) | |
| contentsNotUseful | back to summary |
|---|---|
| public final void contentsNotUseful() Implements com.
| |
| contentsUseful | back to summary |
|---|---|
| public final void contentsUseful() Implements com.
| |
| createSharedTexture | back to summary |
|---|---|
| protected abstract Texture createSharedTexture(Texture. Create a new version of this texture which shares the same
| |
| dispose | back to summary |
|---|---|
| public final void dispose() Implements com.
| |
| getContentHeight | back to summary |
|---|---|
| public final 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 final 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 final 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 final 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 final int getLastImageSerial() Implements com.
| |
| getLinearFiltering | back to summary |
|---|---|
| public final 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 final 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 final 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 final 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 final 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
| |
| 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 final Texture. Implements com. Doc from com. Returns the
| |
| isLocked | back to summary |
|---|---|
| public final boolean isLocked() Implements com.
| |
| isSurfaceLost | back to summary |
|---|---|
| public final 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 final void lock() Implements com.
| |
| makePermanent | back to summary |
|---|---|
| public final void makePermanent() Implements com.
| |
| setContentHeight | back to summary |
|---|---|
| public void setContentHeight(int contentH) 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 contentW) 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 final 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unlock | back to summary |
|---|---|
| public final 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 w, int h) 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:
| |