Skip to content

Add 'target' parameter for the 'draw' Texture's function in sdl2 #2223

Open
@Hamzalopode

Description

@Hamzalopode

Description

This idea came by wanting to draw multiple textures and scaling them in a renderer while not impacting the scale of the other texture already drew in the renderer.

Right now to do this you need to:

  • Create a temp Texture and it target parameter to True.
  • set the renderer.target equal to the temp Texture you just created
  • draw your textures
  • set renderer.target to None
  • draw the temp Texture

Ideally we should have a target parameter in the draw function with type Texture to draw texture directly there without having the need to set the target to a texture then to None every time.

This Enhancement was proposed after the thread: 1114151550194040882 in the discord server with the help of @Matiiss

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions