// Path: gltoolkit/src/main/java/com/quan404/gltoolkit/objects/Video.java
// public class Video {
//     private static final int POSITION_COMPONENT_COUNT = 3;
//     private static final int TEXTURE_COORDINATES_COMPONENT_COUNT = 2;
//     private static final int STRIDE = (POSITION_COMPONENT_COUNT + TEXTURE_COORDINATES_COMPONENT_COUNT) * Constants.BYTES_PER_FLOAT;
// 
//     private VertexArray vertexArray;
// 
//     public Video(float[] vertex){
//         this.vertexArray = new VertexArray(vertex);
//     }
// 
//     public void bindData(VideoShaderProgram videoShaderProgram){
//         vertexArray.setVertexAttribPointer(
//                 0,
//                 videoShaderProgram.getPositionAttributeLocation(),
//                 POSITION_COMPONENT_COUNT,
//                 STRIDE
//         );
// 
//         vertexArray.setVertexAttribPointer(
//                 POSITION_COMPONENT_COUNT,
//                 videoShaderProgram.getTextureCoordinatesAttributeLocation(),
//                 TEXTURE_COORDINATES_COMPONENT_COUNT,
//                 STRIDE
//         );
//     }
// 
//     public void draw(){
//         GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);
//     }
// 
//     public void setVertexArray(float[] vertex){
//         this.vertexArray = new VertexArray(vertex);
//     }
// }


import android.content.Context;
import android.media.MediaPlayer;
import android.util.Log;
import com.quan404.gltoolkit.objects.Video;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
package com.quan404.glmediaplayer.renderers;




/**
 * Created by quanhua on 06/01/2016.
 */
public class SplitSquareVideoRenderer extends BaseVideoRenderer{

    private static final String TAG = "SplitSquareRenderer";
// Path: gltoolkit/src/main/java/com/quan404/gltoolkit/objects/Video.java
// public class Video {
//     private static final int POSITION_COMPONENT_COUNT = 3;
//     private static final int TEXTURE_COORDINATES_COMPONENT_COUNT = 2;
//     private static final int STRIDE = (POSITION_COMPONENT_COUNT + TEXTURE_COORDINATES_COMPONENT_COUNT) * Constants.BYTES_PER_FLOAT;
// 
//     private VertexArray vertexArray;
// 
//     public Video(float[] vertex){
//         this.vertexArray = new VertexArray(vertex);
//     }
// 
//     public void bindData(VideoShaderProgram videoShaderProgram){
//         vertexArray.setVertexAttribPointer(
//                 0,
//                 videoShaderProgram.getPositionAttributeLocation(),
//                 POSITION_COMPONENT_COUNT,
//                 STRIDE
//         );
// 
//         vertexArray.setVertexAttribPointer(
//                 POSITION_COMPONENT_COUNT,
//                 videoShaderProgram.getTextureCoordinatesAttributeLocation(),
//                 TEXTURE_COORDINATES_COMPONENT_COUNT,
//                 STRIDE
//         );
//     }
// 
//     public void draw(){
//         GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);
//     }
// 
//     public void setVertexArray(float[] vertex){
//         this.vertexArray = new VertexArray(vertex);
//     }
// }


// Path: glmediaplayer/src/main/java/com/quan404/glmediaplayer/renderers/SplitSquareVideoRenderer.java
import android.content.Context;
import android.media.MediaPlayer;
import android.util.Log;
import com.quan404.gltoolkit.objects.Video;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

package com.quan404.glmediaplayer.renderers;




/**
 * Created by quanhua on 06/01/2016.
 */
public class SplitSquareVideoRenderer extends BaseVideoRenderer{

    private static final String TAG = "SplitSquareRenderer";
    private Video video_left;