Java tutorial
//package com.java2s; import android.opengl.GLES20; public class Main { /** * Creates a new frame buffer object. This is typically used when rendering to textures. * * @return GL handle to frame buffer */ public static int createFrameBuffer() { int[] frameBufferHandles = new int[1]; GLES20.glGenFramebuffers(1, frameBufferHandles, 0); return frameBufferHandles[0]; } }