I don’t have a problem programing to that corner, but I want to know the reason behind this choice.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s an accident of history.
So you’re asking why the pixels on a monitor are indexed in left-to-right rows arranged from top to bottom, making the +y axis downward rather than upward as in the Cartesian system. Long story short, CRTs display scanlines in this order, so by arranging video memory in the same way, the video driver can just scan forward through a contiguous chunk of memory, sending scanlines to the monitor as it goes. The choice is essentially arbitrary, just as it is with Cartesian coordinates where +y points upward; that arrangement is more convenient for graphs on paper in left-to-right languages, because it readily serves as a mnemonic for progress over time and so on.
Likewise, on a CRT, the choice was probably made to follow the reading order of the creators. On a character-based display, if you display characters in the same order they’re read, then characters that have been added to the screen since the last update will be displayed as early as possible, reducing visual lag.