Package im.zego.zegoexpress
Class ZegoUnityTexture2D
- java.lang.Object
-
- im.zego.zegoexpress.ZegoUnityTexture2D
-
- Direct Known Subclasses:
ZegoUnityTextureOES
public class ZegoUnityTexture2D extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
displayVao
protected int
displayVbo
protected java.nio.ShortBuffer
drawListBuffer
protected short[]
drawOrder
protected int
esVersion
protected android.content.Context
mContext
protected java.lang.String
mFragmentCode
protected int
mHeight
protected int
mProgram
protected int
mTextureID
protected java.lang.String
mVertexCode
protected int
mViewHeight
protected int
mViewWidth
protected int
mWidth
static java.lang.String
TAG
protected java.nio.FloatBuffer
uvBuffer
protected java.nio.FloatBuffer
vertexBuffer
protected java.nio.FloatBuffer
vertexBufferES3
protected int
vertexStride
protected int
viewMode
-
Constructor Summary
Constructors Constructor Description ZegoUnityTexture2D(android.content.Context context, int width, int height, int esVer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configCanvas(int srcWidth, int srcHeight, int viewWidth, int viewHeight, int viewMode)
protected void
createProgram()
void
destory()
void
draw(float[] mvpMatrix)
void
drawES3(float[] mvpMatrix)
int
getHeight()
int
getTextureID()
int
getWidth()
protected void
initShader()
protected void
initVertex()
void
setTextureID(int textureID)
-
-
-
Field Detail
-
mTextureID
protected int mTextureID
-
mVertexCode
protected java.lang.String mVertexCode
-
mFragmentCode
protected java.lang.String mFragmentCode
-
mProgram
protected int mProgram
-
vertexBuffer
protected java.nio.FloatBuffer vertexBuffer
-
vertexBufferES3
protected java.nio.FloatBuffer vertexBufferES3
-
displayVao
protected int displayVao
-
displayVbo
protected int displayVbo
-
drawListBuffer
protected java.nio.ShortBuffer drawListBuffer
-
drawOrder
protected short[] drawOrder
-
vertexStride
protected final int vertexStride
- See Also:
- Constant Field Values
-
uvBuffer
protected java.nio.FloatBuffer uvBuffer
-
mContext
protected android.content.Context mContext
-
mWidth
protected int mWidth
-
mHeight
protected int mHeight
-
mViewWidth
protected int mViewWidth
-
mViewHeight
protected int mViewHeight
-
esVersion
protected int esVersion
-
viewMode
protected int viewMode
-
TAG
public static final java.lang.String TAG
-
-
Method Detail
-
initVertex
protected void initVertex()
-
configCanvas
protected void configCanvas(int srcWidth, int srcHeight, int viewWidth, int viewHeight, int viewMode)
-
createProgram
protected void createProgram()
-
initShader
protected void initShader()
-
draw
public void draw(float[] mvpMatrix)
-
drawES3
public void drawES3(float[] mvpMatrix)
-
getTextureID
public int getTextureID()
-
setTextureID
public void setTextureID(int textureID)
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
destory
public void destory()
-
-