opengl is a graphics library while glut is not.
You use glut with opengl to handle graphics. glut handles with mostly
the input. It could create the graphics window, handle key input and some other fancy stuff. You use opengl to draw primitives onto the window
that glut creates.

so if I was making a game I would use both then, open GL to draw to the screen and glut to handle input. thanks

so if I was making a game I would use both then, open GL to draw to the screen and glut to handle input. thanks

Yes, you can use both together to make a game.

but I have looked at this tutorial and it uses glut to make the window and print to it, how come?

Well it can do some printing stuff too, but its primary task is to create
the window and get inputs. You should use opengl to draw stuff. Of
course there are some draw stuff that makes your life easier, which
glut has, like drawing text or a sphere, among other things.

Comments
he helps me time and time again
This question has already been answered. Start a new discussion instead.