public class ShortTextureProjected2D extends TextureProjected2D
Modifier and Type | Class and Description |
---|---|
static interface |
ShortTextureProjected2D.MutatorShort2D |
static class |
ShortTextureProjected2D.SetDataMutator |
Modifier and Type | Field and Description |
---|---|
static int |
BYTES_PER_SHORT |
BYTES_PER_FLOAT, NUM_DIMENSIONS, VERTICES_PER_QUAD
Constructor and Description |
---|
ShortTextureProjected2D(int dataSizeX,
int dataSizeY) |
ShortTextureProjected2D(int dataSizeX,
int dataSizeY,
boolean useVertexZCoord) |
Modifier and Type | Method and Description |
---|---|
void |
mutate(ShortTextureProjected2D.MutatorShort2D mutator)
Provides a general, thread-safe mechanism for arbitrarily updating the
data values for this Texture.
|
void |
setData(short[][] data)
Updates this texture with new data values.
|
void |
setData(short[][] data,
boolean flip) |
dispose, draw, getDataValue, getDataValue, getDimensionSize, getMaxGLTextureSize, getNumDimension, getProjection, isDirty, isResident, makeDirty, makeProjectionDirty, prepare, resize, setProjection
public static final int BYTES_PER_SHORT
public ShortTextureProjected2D(int dataSizeX, int dataSizeY)
public ShortTextureProjected2D(int dataSizeX, int dataSizeY, boolean useVertexZCoord)
public void setData(short[][] data)
data
- the new data values to load into this texture.public void setData(short[][] data, boolean flip)
public void mutate(ShortTextureProjected2D.MutatorShort2D mutator)
mutator
- a class defining the operation which should be applied to
the texture data.Copyright © 2013 Metron, Inc.. All rights reserved.