1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-19 09:13:19 +00:00

added some comments to atscreenpos

This commit is contained in:
Zeno Rogue 2025-03-02 22:14:42 +01:00
parent 53c9700aa6
commit 0d52b22cad

View File

@ -2563,6 +2563,7 @@ struct flat_model_enabler {
};
#endif
/** atscreenpos(x,y) * eupoint(x1,y1) renders at pixel coordinates (x+x1, y+y1) */
EX shiftmatrix atscreenpos(ld x, ld y) {
transmatrix V = Id;
@ -2591,6 +2592,7 @@ EX shiftmatrix atscreenpos(ld x, ld y) {
return shiftless(V);
}
/** here, size is relative to the 'standard size' */
EX shiftmatrix atscreenpos(ld x, ld y, ld size) {
shiftmatrix V = atscreenpos(x, y);
ld s = size * 2 * cgi.hcrossf / cgi.crossf;