Skip to content

Separate Image Drawing and Positioning #84

Description

@Anstow

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions