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

[WIP] sokol_spritebatch.h #534

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

[WIP] sokol_spritebatch.h #534

wants to merge 15 commits into from

Commits on Jun 30, 2021

  1. sokol_spritebatch.h

    An XNA-style spritebatch library on top of sokol_gfx. Relies on premultiplied alpha for blending.
    Takes care of orthographic projection internally.
    Sorts the sprites that have been submitted to ensure the fewest draw calls are made.
    nyalloc committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    a6140d7 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Update sokol_spritebatch.h

    Reworked the API to use contexts. Removed internal sorting of sprites (for now, at least). Adjusted naming. Introduced push_sprite_rect which lets you create a sprite to be rendered at a specific destination rectangle.
    nyalloc authored Jul 23, 2021
    Configuration menu
    Copy the full SHA
    7cfc3c9 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2021

  1. Take sprite color as an optional pointer to const

    Unfrotunately sokol's 0 initialise to default idiom does not play nicely with color data, as 0'd out sg_color would ideally be set to a sensible default, white. However, 0'd out sg_color is also a valid color, transparent, which can result in undesirable effects if you are lerping color to transparent.
    nyalloc authored Jul 24, 2021
    Configuration menu
    Copy the full SHA
    158077f View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2021

  1. sbatch_pipeline API

    the sbatch_pipeline helps users make a pipeline object that is correct and usable for the sbatch rendering API.
    nyalloc authored Jul 25, 2021
    Configuration menu
    Copy the full SHA
    36e9b36 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Configuration menu
    Copy the full SHA
    cb4ecdf View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Configuration menu
    Copy the full SHA
    77924ff View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Configuration menu
    Copy the full SHA
    645db7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5082c44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    679df74 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. use_pixel_snap

    Vertex shader snaps sprites to the nearest whole pixel
    nyalloc authored Aug 2, 2021
    Configuration menu
    Copy the full SHA
    c9a21bc View commit details
    Browse the repository at this point in the history
  2. Update sokol_spritebatch.h

    nyalloc authored Aug 2, 2021
    Configuration menu
    Copy the full SHA
    d14e510 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

  1. Configuration menu
    Copy the full SHA
    cc37373 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2aad0c3 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. Configuration menu
    Copy the full SHA
    60ce699 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. SBATCH_Z_TILT

    Allow sprites to be optionally tilted 45 degrees for depth-based custom pipelines.
    nyalloc authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    759924c View commit details
    Browse the repository at this point in the history