title: glClearBufferfv - not declared in this scope?
body: <p><strong>EDIT: If anyone has this kind of error, and is using GLEW, when using OpenGL 4.5 functions, the following will help:</strong></p>
  
  <pre><code>glewExperimental = GL_TRUE;
  </code></pre>
  
  <p><strong>after that just initialize GLEW and you'll be fine.</strong></p>
  
  <p>I´m just starting out with OpenGL. Currently I am trying to clear the whole screen with red, as seen in this code here:</p>
  
  <pre><code>#include "GLFW/glfw3.h"
  
  #define WIDTH 1280
  #define HEIGHT 720
  
  int main(void)
  {
      GLFWwindow *window;
  
      if(!glfwInit()) {
          return -1;
      }
  
      window = glfwCreateWindow(WIDTH, HEIGHT, "Test OpenGL", NULL, NULL);
  
      if(!window) {
          glfwTerminate();
          return -1;
      }
  
      glfwMakeContextCurrent(window);
      static GLfloat red[] = {1.0f, 0.0f, 0.0f, 1.0f};
      glClearBufferfv(GL_COLOR, 0, red);
  
      while(!glfwWindowShouldClose(window)) {
          //glEnableClientState(GL_VERTEX_ARRAY);
          //glDisableClientState(GL_VERTEX_ARRAY);
  
          glfwSwapBuffers(window);
          glfwPollEvents();
      }
  
      glfwTerminate();
      return 0;
  }
  </code></pre>
  
  <p>But there is a problem. I am using g++ to compile the code written in Code::Blocks. Also, I am learning with the OpenGL SuperBible 7th edition, where I got the code for clearing the screen with red. Before I was using <strong>glClearColor(255, 0, 0, 0)</strong> and then <strong>glClear(GL_COLOR_BUFFER_BIT);</strong>
  But in this book the screen is cleared with <strong>glClearBufferfv</strong>, which throws the following exception:</p>
  
  <p>error: 'glClearBufferfv' was not declared in this scope</p>
  
  <p>Of course I want to use the code in the book for learning purposes, so it would be great, if that would work. Sadly, it doesn´t. Any idea, why?</p>