# Good tutorial for glfw 2.7.2

**URL:** <https://discourse.glfw.org/t/good-tutorial-for-glfw-2-7-2/1202>\
**Category:** support\
**Created:** [October 19, 2018, 10:35pm UTC](https://discourse.glfw.org/t/good-tutorial-for-glfw-2-7-2/1202 "2018-10-19T22:35:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![welton](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@welton](https://discourse.glfw.org/u/welton)\
**Post date:** [October 19, 2018, 10:35pm UTC](https://discourse.glfw.org/t/good-tutorial-for-glfw-2-7-2/1202/1 "2018-10-19T22:35:34Z")

</div>

Hello, I have a glfw 2.7.2 and was wondering if someone know a good tutorial for this version of glfw. I was following the 3.x tutorial on the website, but a GLFWWindow\* pointer is required all the time, something that does not work with my version, so I get stuck frequently.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![mmozeiko](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/mmozeiko/32/29_2.png) [@mmozeiko](https://discourse.glfw.org/u/mmozeiko)\
**Post date:** [October 19, 2018, 10:54pm UTC](https://discourse.glfw.org/t/good-tutorial-for-glfw-2-7-2/1202/2 "2018-10-19T22:54:23Z")

</div>

If I remember correctly there is not much difference from v2 to v3 in GLFW. The major thing is GLFWWindow\* extra argument, but most of other stuff is more or less the same - you open window, register callbacks, and poll events in a loop with call to swap buffers.

Is there any particular difference which is confusing to you? You should be able to open glfw.h header from version 2 and see exact declarations of functions or callbacks.

You can also check “hello world” example that draws simple triangle in GLFW 2 repo: [https://github.com/glfw/glfw-legacy/blob/master/examples/triangle.c](https://github.com/glfw/glfw-legacy/blob/master/examples/triangle.c)

---

<div class="post-metadata">

**Author:** ![welton](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@welton](https://discourse.glfw.org/u/welton)\
**Post date:** [October 20, 2018, 6:34pm UTC](https://discourse.glfw.org/t/good-tutorial-for-glfw-2-7-2/1202/3 "2018-10-20T18:34:36Z")

</div>

Thanks mmozeiko. When following the glfw3 tutorial, the last thing that made me confuse was the `glfwMakeContextCurrent(window);` since it pass the a GLFWindow \* as argument. Anyway, currentl I am following this link that I found yesterday:

[http://www.codeincodeblock.com/2012/04/glfw-opengl-framework-tutorial-2.html](http://www.codeincodeblock.com/2012/04/glfw-opengl-framework-tutorial-2.html), and if I have some issue, I will give a look into your link, and if that isn’t enough, post here.
