I have a rect class with various information stored in it. I use it to do collision detection in 2D.
If I am rendering with openGL 3 and up how can I make the Rect follow the quad. At first I thought I could grab the position of each vertex and feed them into the Rect's four positions (for each corner). But after applying the model matrix how can I get the positions of the vertices?
Is there another way to get the information to create a Rect from a quad?