mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-21 02:12:49 +00:00
added some comments to atscreenpos
This commit is contained in:
parent
53c9700aa6
commit
0d52b22cad
@ -2563,6 +2563,7 @@ struct flat_model_enabler {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** atscreenpos(x,y) * eupoint(x1,y1) renders at pixel coordinates (x+x1, y+y1) */
|
||||||
EX shiftmatrix atscreenpos(ld x, ld y) {
|
EX shiftmatrix atscreenpos(ld x, ld y) {
|
||||||
transmatrix V = Id;
|
transmatrix V = Id;
|
||||||
|
|
||||||
@ -2591,6 +2592,7 @@ EX shiftmatrix atscreenpos(ld x, ld y) {
|
|||||||
return shiftless(V);
|
return shiftless(V);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** here, size is relative to the 'standard size' */
|
||||||
EX shiftmatrix atscreenpos(ld x, ld y, ld size) {
|
EX shiftmatrix atscreenpos(ld x, ld y, ld size) {
|
||||||
shiftmatrix V = atscreenpos(x, y);
|
shiftmatrix V = atscreenpos(x, y);
|
||||||
ld s = size * 2 * cgi.hcrossf / cgi.crossf;
|
ld s = size * 2 * cgi.hcrossf / cgi.crossf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user