rotate around world axis

hi, I am using glm library for model rotation by using quaternion.But it rotate around its own axis.How can I rotate it around the world axis?

I am using glm library for model rotation by using quaternion.But it rotate around its own axis.How can I rotate it around the world axis?
This question comes up often, so I posted some sample code that might help you. But you’ll have to modify it to use glm and/or quaternions (which are not necessary). You can find my code HERE. I believe that what you are asking for (‘world axis’) is what I call ‘Screen Rotations’ in my demo.