For glFramebufferTexture1D, glFramebufferTexture2D and glFramebufferTexture3D, specifies what type of texture is expected in the texture parameter, or for cube map textures, which face is to be attached. 指定纹理对象
拷贝到默认缓存 创建好帧缓存和默认缓存后,我们就可以开始绘制了,首先我们设置绘制的目标为我们创建的帧缓存,不再绘制到默认缓存中。 glBindFramebuffer(GL_DRAW_FRAMEBUFFER,fbo); 1. 然后正常绘制场景,这个时候图像的数据都会存储到fbo的存储空间中。 接着我们以这个帧缓存为源,以默认帧缓存为目标开始拷贝。 //...