Java tutorial
//package com.java2s; import android.opengl.GLES20; public class Main { public static void bindFrameTexture(int frameBufferId, int textureId) { GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, frameBufferId); GLES20.glFramebufferTexture2D(GLES20.GL_FRAMEBUFFER, GLES20.GL_COLOR_ATTACHMENT0, GLES20.GL_TEXTURE_2D, textureId, 0); } }