Hello guys,
I hope you're all doing well.
Okay so I have developed an application where I rotate an object using quaternion.
In my mainwidget.cpp, I have a paintGL() methods in which I rotate the object.
I declared the modelview matrix as a local variable in the paintGL() methods, everything seemed to work fine.
I used this modelview matrix to render a cube and two coordinate systems that are attached to it.
But when I declared it as a member variable of the class mainwidget ( in the mainwidget.h), everything became messed up: one of the coordinate system became detached from the cube.
I didn't understand what happened exactly.
Does anyone have an idea about what's happening or what's wrong with what I've done ?
Ps: I use Qt6.
Thank you all.