Infer texture size when rendering. #65

Closed
opened 2024-07-25 23:55:33 +02:00 by kayomn · 2 comments
Owner

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.

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.
kayomn added this to the 1.0 milestone 2024-07-25 23:55:33 +02:00
kayomn added this to the GFX Module project 2024-07-25 23:55:33 +02:00
Author
Owner

Also would be worth making it so you can specify the image origin point for things like scaling and rotation.

~~Also would be worth making it so you can specify the image origin point for things like scaling and rotation.~~
Author
Owner

Actually, anchoring can be handled through the transforms. I don't think that's relevant thinking about it.

Actually, anchoring can be handled through the transforms. I don't think that's relevant thinking about it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kayomn/ona#65
No description provided.