code: public static int framebufferStatusToGL(
      final JCGLFramebufferStatus status)
    {
      switch (status) {
        case FRAMEBUFFER_STATUS_COMPLETE:
          return GL30.GL_FRAMEBUFFER_COMPLETE;
        case FRAMEBUFFER_STATUS_ERROR_INCOMPLETE_ATTACHMENT:
          return GL30.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
        case FRAMEBUFFER_STATUS_ERROR_MISSING_IMAGE_ATTACHMENT:
          return GL30.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
        case FRAMEBUFFER_STATUS_ERROR_INCOMPLETE_DRAW_BUFFER:
          return GL30.GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER;
        case FRAMEBUFFER_STATUS_ERROR_INCOMPLETE_READ_BUFFER:
          return GL30.GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER;
        case FRAMEBUFFER_STATUS_ERROR_UNSUPPORTED:
          return GL30.GL_FRAMEBUFFER_UNSUPPORTED;
        case FRAMEBUFFER_STATUS_ERROR_UNKNOWN:
          return -1;
      }
  
      throw new UnreachableCodeException();
    }
docs: Convert framebuffer status to GL constants.
  
  @param status The status.
  
  @return The resulting GL constant.