rendering.c: correct-er order and settings of of 2d and 3d

This commit is contained in:
2024-07-27 15:33:48 +03:00
parent b5c8f7100a
commit c529e6ee4e
3 changed files with 23 additions and 17 deletions

View File

@ -18,7 +18,8 @@
* because they will be called multiple times in the main loop
* before anything is really rendered
*/
/* sprite */
/* TODO: it might make sense to infer alpha channel presence / meaningfulness for textures in atlas */
/* so that they are rendered with no blend / batched in a way to reduce overdraw automatically */
void push_sprite(char *path, t_frect rect) {
struct sprite_primitive sprite = {
.rect = rect,