Change coordinate system #4
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
#5 Add on_resize() callback
canary/canary-rs
Reference: canary/canary-rs#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current coordinate system is:
This sucks! HTML, for example, is Y-down for a reason. Coding UIs that read top-to-bottom is easier when Y increases downwards. Coordinates should also be guaranteed to be square.
Change the coordinate system and all existing UI code to:
I don't know how logical points are going to work. It depends on DPI scaling and what VR is expected to use. Perhaps Canary's core library doesn't need to care.
EDIT: it has been decided that Canary's unit measurement is the millimeter.
Magpie and the text rendering internals are updated to use the new coordinate system, but the sandbox and the SAO script are not. They need updating as soon as possible.
23d699dfef
canary-script
andcanary-types
both usebl
andtr
forRect
coordinates, but because the Y axis is inverted, allRect
s will need to usetl
andbr
instead.Moved the work left to issues #28 and #29.