开发者

Rotating a model in GLM

开发者 https://www.devze.com 2023-02-22 03:52 出处:网络
hey ive been working with GLM and i have been noticing that im not able to find a function to rotate the model.

hey ive been working with GLM and i have been noticing that im not able to find a function to rotate the model.

There isnt much to this question,开发者_Python百科 but im wondering if theres a way to rotate a GLM model, or rotate and single model in my opengl program.

if so then can you give some pointers?


You don't explicitly rotate models, you apply a rotation to the modelview matrix. Read up on how the OpenGL matrix stack works, and on how to use glMatrixMode and glRotate here.

It is the same in later versions of OpenGL, except in those, you implement the matrix stuff yourself and do the transform in a shader rather than using built-in functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消