c++ - GLM: function taking degrees as a parameter is deprecated (WHEN USING RADIANS) -
currently using vc++ 11 sdl2, glm, , glew. issue stemming glm when attempt 2 things: create rotation matrix, create perspective camera matrix (3d).
the error is: "glm: perspective function taking degrees parameter deprecated" despite fact passing radians (as floats) both functions. says should define "#define glm_force_radians." necessary?
personally use degrees everything, opengl, having convert , forth (for ai movement , not) pain , causes spike in cpu when have many npcs moving.
#define degreestoradians(x) x*(3.141592f/180.0f)
the static part should resolved @ compile time compiler, surround degrees glm stuff macro , done. add
#define glm_force_radians
before including , glm headers, default use radians instead of degrees
Comments
Post a Comment