Package com.banuba.sdk.internal.gl
Class GLScalableRect
java.lang.Object
com.banuba.sdk.internal.gl.GLScalableRect
- All Implemented Interfaces:
Scalable,AutoCloseable
- Direct Known Subclasses:
GLScalableRectTexture
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected float[]voidsetOffset(float offsetX, float offsetY) voidsetPosition(float posX, float posY) voidsetRotation(float angle) voidsetScale(float scaleX, float scaleY) abstract voidsetScreenSize(int width, int height) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
mDrawMatrix
protected float[] mDrawMatrix
-
-
Constructor Details
-
GLScalableRect
public GLScalableRect()
-
-
Method Details
-
setScale
public void setScale(float scaleX, float scaleY) -
setPosition
public void setPosition(float posX, float posY) - Specified by:
setPositionin interfaceScalable
-
setOffset
public void setOffset(float offsetX, float offsetY) -
setRotation
public void setRotation(float angle) - Specified by:
setRotationin interfaceScalable
-
setScreenSize
public abstract void setScreenSize(int width, int height) -
getModelViewMatrix
protected float[] getModelViewMatrix()
-