title: OpenGL doesn't draw a point
body: <p>OpenGL draws only the background, the yellow point does not appear. I want to draw it with <code>glBegin</code> and <code>glEnd</code>. The coordinates are variables, because I want to move that point later. Most of the code is just <em>GLFW</em> initialization the function that worries me is the
  <code>draw_player</code> function since there the draw call is contained. The Fix I stumbled upon, to use <code>GL_POINTS</code> instead of <code>GL_POINT</code> (in <code>glBegin</code> as argument), does not help (I continue to use it though).</p>
  <pre><code>#include &lt;GLFW/glfw3.h&gt;
  //#include &lt;stdio.h&gt;
  
  //coordinates
  int px, py;
  
  //My not working function
  void draw_player()
  {
      glColor3f(1.0f, 1.0f, 0);
      glPointSize(64.0f);
      glBegin(GL_POINTS);
      glVertex2i(px, py);
      glEnd();
  }
  
  int main(int argc, char* argv[])
  {
      GLFWwindow* window;
  
      if (!glfwInit())
          return -1;
  
      window = glfwCreateWindow(910, 512, &quot;Raycast&quot;, NULL, NULL);
      if (!window)
      {
          glfwTerminate();
          return -1;
      }
  
      glfwMakeContextCurrent(window);
  
      glClearColor(0.1f, 0.1f, 0.5f, 1.0f);
      //setting the coordinates
      px = 100;
      py = 10;
  
  
      while (!glfwWindowShouldClose(window))
      {
          /* Render here */
          glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  
          draw_player();
  
          /* Swap front and back buffers */
          glfwSwapBuffers(window);
  
          /* Poll for and process events */
          glfwPollEvents();
      }
  
      glfwTerminate();
      return 0;
  }
  </code></pre>