Molmasepic
Molmasepic

Reputation: 1075

Rotating a model in GLM

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, 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?

Upvotes: 0

Views: 1040

Answers (1)

Damon
Damon

Reputation: 70206

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.

Upvotes: 2

Related Questions