I'm currently learning about opengl and I don't understand how the pixel coordinate works.
First, the x, y coordinates would go into a double loop until x < width and y < height, and within that loop, the pixel coordinate is equal to x + y*width and I don't understand why this is so.