Infer texture size when rendering. #65
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kayomn/ona#65
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?
When using
gfx.Commands.draw_texture
, you have to explicitly size the image using the scale component of the transform to get it to look correct.Ideally, we would infer this from the texture width and height - especially since we already have all of this information. Changing the presented resolution would instead be an override in the description struct.
Also would be worth making it so you can specify the image origin point for things like scaling and rotation.Actually, anchoring can be handled through the transforms. I don't think that's relevant thinking about it.