freenode/#shirakumo - IRC Chatlog
Search
8:05:13
gingerale
Hmm.. Was thinking you might want to have different layouts with different scalings at the same time to switch in between, and then change globally from renderer, but now that I think of it there's not much of a reason to not just change the existing scaling.
8:06:01
Shinmera
My thought is more that, since the base scale is a user configuration, it wouldn't make sense to scale only parts of an application.
8:12:50
gingerale
Well, I would set it in the renderer. But that feels only if it doesn't affect the layout at all. Just "zooms" in. In layout it feels like it'd scale the things in it and it'd react to the new constrictions of view size.
8:13:39
Shinmera
zooming necessarily affects layout, since you still need to output to pixels in the end.
8:15:05
Shinmera
anyway, my idea right now is that you have relative units (vw, vh, pw, ph) which are percentages, base units (un) which are affected by base scale and resolution scale, physical units (cm) which are scaled according to p/cm, and absolute units (px) that are not scaled.
8:15:44
Shinmera
Typically you'll want to specify sizes in un, and use px/cm when an absolute size is required.
11:43:41
Shinmera
Being able to extend the standard math operators would be really nice for things like this.