Talk:OpenGL Programming/Modern OpenGL Tutorial 04

It would be helpful to write out the mathematical operations and formulae for certain sections of code, so that the code can quickly be translated to other libraries/languages. For example, what does glm::mat4(1.0f) do? I have to guess or look up the documentation for glm. I mean something along the lines of the explanation for translation here: http://en.wikipedia.org/wiki/Translation_(geometry).
 * I concur; not everybody is going to use GLM. It would be useful, at the very least, to also show what to do if you have a raw GLfloat Matrix[16] rather than something prepackaged.

Oct 03, 2012 - apt-get install libglm-dev does not work in Debian, says it can't find it. But you can download the source, unzip it somewhere, and add a soft link; ln -s  /usr/inc/glm
 * libglm-dev is available starting with Debian Wheezy :) http://packages.debian.org/search?keywords=libglm-dev Beuc (discuss • contribs) 16:22, 20 October 2012 (UTC)

My compiler complains about degrees in GLM library:
 * note: #pragma message: GLM: angle function returning degrees is deprecated. #define GLM_FORCE_RADIANS before including GLM headers to remove this message.

So I did as It said and changed 45 to M_PI_4. I think tutorial shouldn't use something deprecated.

Apr 20, 2015 - I am using archlinux and my compiler does not complain about anything. However, juging by the speed of rotation it is obvious that the function rotate just expects radians so I replaced 45 by M_PI / 4.