2
« on: March 10, 2013, 09:59:00 pm »
Sorry, as through I read it now it really seems unclear to me as well.
So let's start with this:
I have a window and a view, that shows, let's say, half of the window(both in X and Y axis).
And then I'd like to know if my view contains a specific point in the window. Basically I'd like to achieve having no negative coordinate values(-40, -60 etc.) in my view. I'm writing a tilemap engine so it'd be good if every and each of my map's top-left corner was in (0.f, 0.f), not any other coords.
Does it have something to do with ViewPort? Or maybe should I get the View's Rectangle(but would it then return the X and Y Positions Window-related?).
I know I'm not that good at explaining what I want to achieve, but hope it will suffice.
Thanks for Your patience.