-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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?
Reactions are currently unavailable