public class DataTexture extends Texture
Texture.ImageLoadHandler, Texture.MAPPING_MODE, Texture.OPERATIONS
Constructor and Description |
---|
DataTexture(int width,
int height) |
DataTexture(int width,
int height,
Color color)
Constructor which can be used to generate random data texture.
|
Modifier and Type | Method and Description |
---|---|
void |
generateDataTexture(Color color) |
Uint8Array |
getData() |
int |
getHeight() |
int |
getWidth() |
void |
setData(Uint8Array data) |
void |
setHeight(int height) |
void |
setWidth(int width) |
clone, clone, deallocate, getAnisotropy, getFormat, getId, getImage, getMagFilter, getMapping, getMinFilter, getOffset, getRepeat, getType, getUnpackAlignment, getWebGlTexture, getWrapS, getWrapT, isFlipY, isGenerateMipmaps, isNeedsUpdate, isPremultiplyAlpha, setAnisotropy, setFlipY, setFormat, setGenerateMipmaps, setImage, setMagFilter, setMapping, setMinFilter, setNeedsUpdate, setOffset, setPremultiplyAlpha, setRepeat, setTextureParameters, setTextureParameters, setType, setUnpackAlignment, setWebGlTexture, setWrapS, setWrapT
public DataTexture(int width, int height)
public DataTexture(int width, int height, Color color)
width
- height
- color
- public Uint8Array getData()
public void setData(Uint8Array data)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public void generateDataTexture(Color color)