-
Notifications
You must be signed in to change notification settings - Fork 494
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
nyalloc
wants to merge
15
commits into
floooh:master
Choose a base branch
from
nyalloc:spritebatch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Jun 30, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for a6140d7 - Browse repository at this point
Copy the full SHA a6140d7View commit details
Commits on Jul 23, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 7cfc3c9 - Browse repository at this point
Copy the full SHA 7cfc3c9View commit details
Commits on Jul 24, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 158077f - Browse repository at this point
Copy the full SHA 158077fView commit details
Commits on Jul 25, 2021
-
the sbatch_pipeline helps users make a pipeline object that is correct and usable for the sbatch rendering API.
Configuration menu - View commit details
-
Copy full SHA for 36e9b36 - Browse repository at this point
Copy the full SHA 36e9b36View commit details
Commits on Jul 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cb4ecdf - Browse repository at this point
Copy the full SHA cb4ecdfView commit details
Commits on Jul 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 77924ff - Browse repository at this point
Copy the full SHA 77924ffView commit details
Commits on Jul 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 645db7e - Browse repository at this point
Copy the full SHA 645db7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5082c44 - Browse repository at this point
Copy the full SHA 5082c44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 679df74 - Browse repository at this point
Copy the full SHA 679df74View commit details
Commits on Aug 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c9a21bc - Browse repository at this point
Copy the full SHA c9a21bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d14e510 - Browse repository at this point
Copy the full SHA d14e510View commit details
Commits on Aug 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cc37373 - Browse repository at this point
Copy the full SHA cc37373View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aad0c3 - Browse repository at this point
Copy the full SHA 2aad0c3View commit details
Commits on Aug 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 60ce699 - Browse repository at this point
Copy the full SHA 60ce699View commit details
Commits on Aug 18, 2021
-
Allow sprites to be optionally tilted 45 degrees for depth-based custom pipelines.
Configuration menu - View commit details
-
Copy full SHA for 759924c - Browse repository at this point
Copy the full SHA 759924cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.