Open xparq opened 10 months ago
Updated for now to this, hopefully better, until it's all sorted out:
Math::Vector2f offset = {0, 0}; // Displacement of the view relative to the initial implicit origin, in View (screen) coordinates
Math::Vector2f focus_offset = {0, 0}; // Pos. of a focus point in the view rect (in View coord.)
// Used as the zoom origin etc. Usually set to the player's
// on-screen pos, or some other interesting subject...
This shit has cost me hours of confusion! :-/
See (reconcile with) #221!!!
This is a lie:
This is the truth instead:
[ ] But that "screen coord." is something accidental, undefined... It's just a relative pixel offset to some default origin...
[ ] Note: the edges of the view are still absolute coordinates, relative to an implicit "on-screen viewport" center!...