Code example for SurfaceTexture

Methods: updateTexImage

0
	 */ 
	@Override 
	public void onDrawFrame() { 
		checkCameraHandled(); 
		checkFPS(); 
		camTex.updateTexImage(); 
         
		super.onDrawFrame(); 
	} 
 
	@Override 
	protected void passShaderValues() { 
		super.passShaderValues(); 
	    camTex.getTransformMatrix(matrix);
		GLES20.glUniformMatrix4fv(matrixHandle, 1, false, matrix, 0);
	} 
 
	@Override 
	protected void initShaderHandles() { 
		super.initShaderHandles(); 
        matrixHandle = GLES20.glGetUniformLocation(programHandle, UNIFORM_MATRIX);