public class MaskData extends Object
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() |
ByteBuffer |
getMaskBuffer() |
int |
getOriginX() |
int |
getOriginY() |
int |
getWidth() |
void |
update(ByteBuffer maskBuffer,
int originX,
int originY,
int width,
int height) |
void |
uploadToTexture(Texture tex,
int dstx,
int dsty,
boolean skipFlush) |
public 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(ByteBuffer maskBuffer, int originX, int originY, int width, int height)
public static MaskData create(byte[] pixels, int originX, int originY, int width, int height)
Copyright © 2020. All rights reserved.