PDA

View Full Version : glTranslate & glRotate deprecated



wmelgaard
03-01-2014, 06:06 PM
I have recently readhttp://www.swiftless.com/tutorials/opengl4/3-opengl-4-matrices.html
that glTranslate and glRotate are being deprecated in favor of OpenGL Mathmatics (GLM).
This may fine and dandy for C++ programmers but, as Bjarne Stroustrup wrote, people who are adept at C will have a great deal of trouble with C++. That's me.
I have found Nate Robins 1997 version of glm.c http://www.cs.kent.edu/~farrell/cg02/reference/natetut/glm.c
However, I am still at a loss as to how to get around a dysfunctional glTranslate

All help will be appreciated.

Aleksandar
03-02-2014, 04:37 AM
I have recently readhttp://www.swiftless.com/tutorials/opengl4/3-opengl-4-matrices.html
that glTranslate and glRotate are being deprecated in favor of OpenGL Mathmatics (GLM).
Simply not true. The whole concept of immediate-mode rendering is deprecated. GLM is just one of the libraries used to make life easier if you don't want or can implement all required math on your own.


This may fine and dandy for C++ programmers but, as Bjarne Stroustrup wrote, people who are adept at C will have a great deal of trouble with C++. That's me.
There is no problem in implementing all functionality in C. In fact, just what you have to do is to implement matrix multiplication. All transformations are just that - the matrix multiplication.