I have a Rectangle with a texture bind to it like this:
(black dashed line around the rectangle is Not drawn On the scene and i just draw it to show the rectangle which the texture is on It)
I want to somehow keep track of this texture Polygon that is drawn on the rectangle.(the rest of texture except the blue part is transparent) and check if it fits a polygon that its vertices are Specified(For Example the white dashed shape)
Should I Use Image Processing to achieve this? I want to do this dynamically because my texture on the rectangle changes every frame from FBO, so it shouldn't be Expensive.
How can i do that? (Just an Idea of it)