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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -