What do ofPushView and ofPopView do?

Hi, I’ve been wondering what exactly the ofPush/popView methods save and restore.
How is it different to ofPush/popMatrix and when do you use it?
Is it related to ofViewPort? I can’t really find any information regarding these methods.

push/pop view pushes the viewport, all the matrices (model view and projection) the current orientation (default, rotated 90 left, 180 or 90 right) and vertical flip while ofPushMatrix only stores the current matrix.

and it’s mostly used internally for example by ofCamera to set it’s own setting for all those things and then revert back to the original settings

2 Likes

Thank you very much Arturo!!