| Modifier and Type | Field and Description |
|---|---|
Texture |
TextureSurface.texture
The texture into which we're rendering.
|
| Modifier and Type | Method and Description |
|---|---|
Texture |
Graphics.createTexture(float width,
float height,
Texture.Config config)
Creates an empty texture into which one can render.
|
Texture |
Graphics.createTexture(IDimension size,
Texture.Config config)
|
Texture |
Image.createTexture(Texture.Config config)
Creates a texture with this image's bitmap data using
config. |
Texture |
Texture.texture() |
abstract Texture |
Tile.texture()
The texture which contains this tile.
|
Texture |
Image.texture()
Returns, creating if necessary, this image's default texture.
|
Texture |
Canvas.toTexture()
Calls
Canvas.toTexture(Texture.Config) with the default texture config. |
Texture |
Canvas.toTexture(Texture.Config config)
A helper function for creating a texture from this canvas's image, and then disposing this
canvas.
|
Texture |
Image.updateTexture()
Updates this image's default texture with the current contents of the image, and returns the
texture.
|
| Modifier and Type | Method and Description |
|---|---|
RFuture<Texture> |
Image.textureAsync()
Returns a future which will deliver the default texture for this image once its loading has
completed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
QuadBatch.addQuad(Texture tex,
int tint,
AffineTransform xf,
float x,
float y,
float w,
float h)
Adds
tex as a transformed axis-aligned quad to this batch. |
void |
QuadBatch.addQuad(Texture tex,
int tint,
AffineTransform xf,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Adds
tex as a transformed axis-aligned quad to this batch. |
void |
TriangleBatch.addTris(Texture tex,
int tint,
AffineTransform xf,
float[] xys,
float[] sxys,
int xysOffset,
int xysLen,
int[] indices,
int indicesOffset,
int indicesLen,
int indexBase)
Adds a collection of textured triangles to the current render operation.
|
void |
TriangleBatch.addTris(Texture tex,
int tint,
AffineTransform xf,
float[] xys,
int xysOffset,
int xysLen,
float tw,
float th,
int[] indices,
int indicesOffset,
int indicesLen,
int indexBase)
Adds a collection of textured triangles to the current render operation.
|
static RenderTarget |
RenderTarget.create(Graphics gfx,
Texture tex)
Creates a render target that renders to
texture. |
Surface |
Surface.setFillPattern(Texture texture)
Sets the texture to be used for fill operations.
|
void |
TexturedBatch.setTexture(Texture texture)
Prepares this batch to render using the supplied texture.
|
| Constructor and Description |
|---|
TextureSurface(Graphics gfx,
QuadBatch defaultBatch,
Texture texture)
Creates a texture surface which renders to
texture. |
Copyright © 2018. All Rights Reserved.