public class MaskData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
height |
private java.nio.ByteBuffer |
maskBuffer |
private int |
originX |
private int |
originY |
private int |
width |
Constructor and Description |
---|
MaskData() |
Modifier and Type | Method and Description |
---|---|
static MaskData |
create(byte[] pixels,
int originX,
int originY,
int width,
int height) |
int |
getHeight() |
java.nio.ByteBuffer |
getMaskBuffer() |
int |
getOriginX() |
int |
getOriginY() |
int |
getWidth() |
void |
update(java.nio.ByteBuffer maskBuffer,
int originX,
int originY,
int width,
int height) |
void |
uploadToTexture(Texture tex,
int dstx,
int dsty,
boolean skipFlush) |
private java.nio.ByteBuffer maskBuffer
private int originX
private int originY
private int width
private int height
public java.nio.ByteBuffer getMaskBuffer()
public int getOriginX()
public int getOriginY()
public int getWidth()
public int getHeight()
public void uploadToTexture(Texture tex, int dstx, int dsty, boolean skipFlush)
public void update(java.nio.ByteBuffer maskBuffer, int originX, int originY, int width, int height)
public static MaskData create(byte[] pixels, int originX, int originY, int width, int height)