rendering: use sprite batching techniques for rect primitives, unite their render path

This commit is contained in:
2024-10-14 11:46:07 +03:00
parent 82bad550e5
commit b295c5920c
10 changed files with 308 additions and 116 deletions

View File

@ -1,6 +1,9 @@
#ifndef TWN_TEXTURES_MODES_H
#define TWN_TEXTURES_MODES_H
/* TODO: rename, as it doesn't have to be about textures only, but blending */
/* TODO: move from public /include/ tree */
/* alpha channel information */
typedef enum TextureMode {
TEXTURE_MODE_OPAQUE, /* all pixels are solid */