No description
Find a file
Stephen Gutekanst b261a8177f gfx: Sprite: sort/draw sprites back-to-front always
Prior to this change sprite draw order was not something we could specify,
now we can by changing the Z value of sprites (sprites further away / with
greater Z values are drawn first), which is obviously desirable for layering
and alpha blending purposes.

The implementation here is rather naive: we sort all sprites each frame based
on their Z value; but its performance is quite good with ~half a million sprites
and so is good enough for now.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-22 18:13:26 -07:00
.github all: update Zig to version 0.12.0-dev.3180+83e578a18 2024-03-08 22:04:29 -07:00
examples Core: support configuring window before it opens 2024-05-14 00:12:26 +02:00
src gfx: Sprite: sort/draw sprites back-to-front always 2024-05-22 18:13:26 -07:00
.gitattributes use mach-model3d via package manager 2023-07-01 22:33:35 -07:00
.gitignore mach-core moves back into the main repository 2024-03-05 00:22:22 -07:00
.zigversion update .zigversion 2024-03-08 23:59:31 -07:00
build.zig build: use ReleaseFast for opus decoding 2024-05-18 17:06:20 +02:00
build.zig.zon examples: add hardware-check 2024-05-12 16:27:52 +02:00
LICENSE LICENSE: note directories with a separate LICENSE file 2021-07-05 12:46:20 -07:00
LICENSE-APACHE initialize repository 2021-07-04 10:36:34 -07:00
LICENSE-MIT initialize repository 2021-07-04 10:36:34 -07:00
README.md README: cleanup & link to new website 2023-08-13 17:14:09 -07:00

mach-opus

Zig game engine & graphics toolkit for building high-performance, truly cross-platform, robust & modular games, visualizations, and desktop/mobile GUI apps.

gen-texture-light boids textured-cube

Learn more

machengine.org

Join the community

Join the Mach community on Discord to discuss this project, ask questions, get help, etc.