Hey so I'm trying to read from a file and basically create a cool star map. I am totally a newb, and this is my first time playing with SFML. I am working this on CLion.
I have used the Debugger and can see that everything is being properly put into it's place, but when I run the program the Window just ends up freezing not drawing anything. I was unsure if it was my loop that is the problem or there is something else at play. I didn't think I needed to use a vector since Vector2f seems to suffice ...Any help is greatly appreciated!!!
CircleShape star;
star.setRadius(2);
while(!fileIn.eof()){
fileIn >> xPixel >> yPixel >> brightStar;
star.setPosition( Vector2f(xPixel, yPixel) );
window.draw(star);
}
fileIn.close();
Draw Window just has the wheel of death and is "not responding"