   OpenGl C++ points on the screen
  I want to fill the window with points, however for some reason my program only draws a couple of dots on the screen. void display(){ float RStep = 4/300; float IStep = -4/300; glClear(GL_COLOR_BUFFER_BIT); glColor3f( 1, 0 , 0); glBegin(GL_POINTS); glColor3f(1.0, 0, 0);  for (int x = 1; x <= 300; x++)  {  for (int y = 1; y <= 300; y++)   { RStep = x/300; IStep = y/300;   glVertex2f( RStep, IStep);  }//end for  }//end for}//end Display   
  Two words: integer division.Everywhere you divide by 300, change it to 300.0f. Or change x and y to floats.   