Пример #1
0
 public static void unbind(GL2GL3 gl) {
   gl.glDrawBuffers(1, COLOR_ATTACHMENTS, 0);
   gl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, 0);
 }
Пример #2
0
 public void bind(GL2GL3 gl) {
   gl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, fboid);
   gl.glDrawBuffers(attachcount, COLOR_ATTACHMENTS, 0);
 }