| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
| |
the sbatch_pipeline helps users make a pipeline object that is correct and usable for the sbatch rendering API.
|
| |
|
| |
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.
|
| |
|
| |
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.
|
|
|
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.
|