GLM: function taking degrees as a parameter is deprecated (WHEN USING RADIANS)

后端 未结 2 389
时光取名叫无心
时光取名叫无心 2021-01-22 21:12

Currently using VC++ 11 with SDL2, GLM, and GLEW. The issue is stemming from GLM when I attempt to do two things: Create a rotation matrix, create a perspective camera matrix (3

2条回答
  •  甜味超标
    2021-01-22 21:50

    Instead of manual transformation you can use

    glm::radians(degrees) // from degrees to radians. 
    

    Or

    glm::degrees(radians) // from radians to degrees. 
    

    For further information about glm's trigonometry functions consult this page: http://glm.g-truc.net/0.9.4/api/a00136.html#ga4fb76e28851c9ff6653532566084e091

提交回复
热议问题