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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float[]
void
setOffset
(float offsetX, float offsetY) void
setPosition
(float posX, float posY) void
setRotation
(float angle) void
setScale
(float scaleX, float scaleY) abstract void
setScreenSize
(int width, int height) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setPosition
in interfaceScalable
-
setOffset
public void setOffset(float offsetX, float offsetY) -
setRotation
public void setRotation(float angle) - Specified by:
setRotation
in interfaceScalable
-
setScreenSize
public abstract void setScreenSize(int width, int height) -
getModelViewMatrix
protected float[] getModelViewMatrix()
-