Code example for SurfaceTexture

Methods: getTransformMatrix

0
	} 
 
	@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);    
	} 
 
	@Override 
	protected String getVertexShader() {
		return 	 
				"attribute vec4 "+ATTRIBUTE_POSITION+";\n" 
			  +"attribute vec2 "+ATTRIBUTE_TEXCOORD+";\n"	 
			  +"varying vec2 "+VARYING_TEXCOORD+";\n"