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

Blit function consistency shuffle #733

Merged
merged 4 commits into from
Jan 6, 2022
Merged

Commits on Nov 26, 2021

  1. Configuration menu
    Copy the full SHA
    bb3a0dd View commit details
    Browse the repository at this point in the history
  2. Rearrange sprite methods for more consistency

    Before:
    
    (stretch_)blit_sprite: takes a transform, always uses Surface::sprites
    (stretch_)blit: can pass any surface, no transforms (except blit has a hflip)
    
    Now there are transform/non transform overloads for each and both take a surface.
    
    The `sprite` functions all work as before and there are wrappers for compatibility.
    
    (I have no idea if much other than shmup uses "blit with hflip")
    Daft-Freak committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    e894f12 View commit details
    Browse the repository at this point in the history
  3. Pass transform as an int

    Avoids overload ambiguity (SpriteTransform is an int enum).
    Daft-Freak committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    a9a8845 View commit details
    Browse the repository at this point in the history
  4. Avoid using newly deprecated blit function in shmup

    The one user of one of the three deprecated functions in all the examples.
    Daft-Freak committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    0e11d2b View commit details
    Browse the repository at this point in the history