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

Separate Image Drawing and Positioning #84

Open
Anstow opened this issue Dec 26, 2014 · 0 comments
Open

Separate Image Drawing and Positioning #84

Anstow opened this issue Dec 26, 2014 · 0 comments

Comments

@Anstow
Copy link
Contributor

Anstow commented Dec 26, 2014

At the moment an Image is used as a component to draw other graphics as well as being a graphic itself, with position and the like. I think separating these functionalities into two classes perhaps Sprite for the graphic and Image can remain drawable.

Current plan:
Sprite:

  • has position and rotation (and scaling) i.e. a coordinate frame
  • contains an image
  • contains "draw relative to camera" function
  • may contain "draw at position" function?

Image:

  • Contains source texture, potentially reusing images would be a way to reuse textures
  • Has a "draw at position" function

Maybe a texture handler would also be useful?

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