Hello, I want to recreate a game I made for a class (had to be done in old, old turbo 3.0) in Open GL, but I am having a hard time getting the screen how I want it. I got the window to come up with the dimensions that I want (thanks to NeHe) but the inside is not scaled how I want it to be. To start off my drawing code I do this:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
I then use the glTranslatef function so that the origin is at the center of the screen and that the scale of 1.0f would be about a pixel in the screen (the screen being 400x400). So, I do something like this:
glTranslatef (0.0f, 0.0f, -100.0f);
At first I thought -100.0f would be far enough away, but it turns out that a line from (0,0) to (20,20) goes across about half the screen. So, I upped the last argument in the glTranslatef some to see if I could get the line look like it was really going 20 pixels along the x- and y-axis. But, whenever I put a number greater than 100 *nothing* appears ... it is like there is a limit on how far back you can go. Does anyone understand what I am talking about? Any solutions?
Thanks