I know I can use
glfwWindowHint() to specify minimum frame buffer attributes e.g.
But how to determine what I actually got once the window is created? Basically I am looking for an equivalent to
glutGet(GLUT_WINDOW_RED_SIZE). I tried
glfwGetWindowAttrib(window, GLFW_RED_BITS) but it fails with an error.