You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
Image:
Maybe a texture handler would also be useful?
The text was updated successfully, but these errors were encountered: