so I have the orientation of my object stored in glm :: fquat, and I want to use it to rotate my model. how am i doing this
I tried this:
glPushMatrix();
glTranslatef(position.x, position.y, position.z);
glMultMatrixf(glm::mat4_cast(orientation));
glCallList(modelID);
glPopMatrix();
but I got this error:
error: cannot convert 'glm::detail::tmat4x4<float>' to 'const GLfloat* {aka const float*}' for argument '1' to 'void glMultMatrixf(const GLfloat*)'|
im obviously doing something wrong, so what is the right way to do this?
source
share