Freeglut or GLFW?

I have seen two things in opengl.

1. Freeglut
2. GLFW

Which one should I start learning for game programming.

From where would I found a good book for freeglut/glfw?
When I first started learning openGL I used GLFW, pretty much for one reason only.

http://learnopengl.com/

This taught me modern openGL, it's a great guide for beginners and it uses GLFW. I personally switched back to SFML once I got a grip of openGL and knew how to translate the GLFW code so it works in SFML.
Why everyone always switch to sfml from glut/glfw inspite of being sfml is a 2d API and opengl 3d...
You use SFML, SDL, GLFW etc for stuff that openGL can't handle. Which is everything except for rendering. You use them for controls, to create a window, audio etc.
Last edited on
Dont freeglut support controls or audios etc?

I'm a newbee, so sorry, if these questions are too much noob..
I know it supports controls, Im not sure about audio.
So which one should I learn first, sfml/opengl?
SFML and OpenGL are used for different purposes, so I cant answer that quesiton. What do you want to do? Do you want to make a small 2D Game? Pick up SFML, Do you want to make a 3d application/small Game. Pick up SFML And OpenGL.
Thanx a lot
I have seen two things in opengl.

1. Freeglut
2. GLFW

Which one should I start learning for game programming.

From where would I found a good book for freeglut/glfw?


It's not really a big deal. What you will need to use it for is only a small part of the program. You can isolate that part and change it later if you want for some reason. You don't need a book on using these libraries. Just look at a few examples.

I'm not understanding anything of an animation, such as
glLoadIdentity()
glPrestective()
glPushMatrix()
glPopMatrix()
glTranslatef()
How could I get a good tutorial of these?
Don't use any of those functions. They are legacy openGL functions which are deprecated and should no longer be used. You should learn modern openGL. If you ask me, the best resource for beginners is the link provided above by TarikNeaj.

http://learnopengl.com/
To add to what @mgoetschius said. Here is a 100+ video youtube playlist of awesome modern openGL tutorial - https://www.youtube.com/playlist?list=PLRwVmtr-pp06qT6ckboaOhnm9FxmzHpbY
Are you guyz meaning GLFW?
When I search about modern opengl in google it shows me GLFW. But I cant setting it up to my code::blocks.

Is GLFW hard to learn? I'm still in school level now so I dont know too much highlevel maths such as 3d vector, calculas, discreet..etc.
Topic archived. No new replies allowed.