Home › Forums › PowerVR Insider Graphics › print3d class drawing text with rotation encountered problems
Tagged: print3d text rotate
This topic contains 1 reply, has 2 voices, and was last updated by martontamas 8 months, 1 week ago.
Hi: I want to use print3d class to draw text with rotation, but I encountered some problems, my pieces of code like as follow:
m_Print3D.Print3D(fPosX,fPosY,fScale,Colour,”123″); PVRTMat4 mModelView = PVRTMat4::RotationZ(30*PVRT_PI/2); m_Print3D.SetModelView(mModelView); m_Print3D.Print3D(fPosX,fPosY,fScale,Colour,”456″);
In above code, I want to draw “123” without rotation, next draw “456” rotating 30 degrees with z coordinate, but the result is the text “123” also rotate. How can I achive my goal.
thanks a lot.
you need to flush between the two Print3D calls.