Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish general Texture handling. #27

Closed
skaupper opened this issue Aug 13, 2017 · 0 comments
Closed

Finish general Texture handling. #27

skaupper opened this issue Aug 13, 2017 · 0 comments
Milestone

Comments

@skaupper
Copy link
Owner

skaupper commented Aug 13, 2017

By now the communication between the ImageInterface, FontInterface and GraphicsInterface is not as good as it could be.

A general texture need further properties in order to be rendered properly (or just to add flexibility).
A texture needs at least:

  • a size
  • a position
  • a rotation angle
  • a boolean flag for flipping horizontally and vertically
    (add more if reasonable. nothing library specific!)

Also think about what the ImageInterface/FontInterface should return. Are own Texture derivates needed or suffices Texture?

Node: Sizes and positions are relative to the parent (the element's renderBox in this case). The angle should be in radians.

@skaupper skaupper modified the milestone: v2.0 Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant