public class TextureRendererMask extends TextureRendererDrawOrigin
TextureRenderer.Viewport| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
MASK_FLIPSCALE_NAME |
|
protected static java.lang.String |
MASK_ROTATION_NAME |
|
protected static java.lang.String |
MASK_TEXTURE_NAME |
|
protected int |
mMaskFlipscaleLoc |
|
protected int |
mMaskRotLoc |
|
protected int |
mMaskTexture |
DRAW_FUNCTION, FLIPSCALE_NAME, LOG_TAG, mFlipScaleLoc, mProgram, mRotationLoc, mTextureHeight, mTextureWidth, mTransformLoc, mVertexBuffer, POSITION_NAME, REQUIRE_STRING_EXTERNAL_OES, ROTATION_NAME, SAMPLER2D_VAR, SAMPLER2D_VAR_EXTERNAL_OES, TEXTURE_2D_BINDABLE, TRANSFORM_NAME, vertices, vshDrawDefault| Constructor | Description |
|---|---|
TextureRendererMask() |
| Modifier and Type | Method | Description |
|---|---|---|
static TextureRendererMask |
create(boolean isExternalOES) |
|
java.lang.String |
getFragmentShaderString() |
|
java.lang.String |
getVertexShaderString() |
|
boolean |
init(boolean isExternalOES) |
|
void |
release() |
|
void |
renderTexture(int texID,
TextureRenderer.Viewport viewport) |
|
void |
setMaskFlipscale(float x,
float y) |
|
void |
setMaskRotation(float rad) |
|
void |
setMaskTexture(int texID) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultInitialize, setFlipscale, setProgramDefault, setRotation, setTransformsetTextureSizeprotected static final java.lang.String MASK_ROTATION_NAME
protected static final java.lang.String MASK_FLIPSCALE_NAME
protected static final java.lang.String MASK_TEXTURE_NAME
protected int mMaskRotLoc
protected int mMaskFlipscaleLoc
protected int mMaskTexture
public static TextureRendererMask create(boolean isExternalOES)
public boolean init(boolean isExternalOES)
init in class TextureRendererDrawOriginpublic void setMaskRotation(float rad)
public void setMaskFlipscale(float x,
float y)
public void setMaskTexture(int texID)
public void renderTexture(int texID,
TextureRenderer.Viewport viewport)
renderTexture in class TextureRendererDrawOriginpublic java.lang.String getVertexShaderString()
getVertexShaderString in class TextureRendererDrawOriginpublic java.lang.String getFragmentShaderString()
getFragmentShaderString in class TextureRendererDrawOriginpublic void release()
release in class TextureRenderer