Class ZegoUnityTexture2D

  • Direct Known Subclasses:
    ZegoUnityTextureOES

    public class ZegoUnityTexture2D
    extends java.lang.Object
    • 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
      • 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
    • Constructor Detail

      • ZegoUnityTexture2D

        public ZegoUnityTexture2D​(android.content.Context context,
                                  int width,
                                  int height,
                                  int esVer)
    • 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()