automatic detenction of texture mode and batching based on it

This commit is contained in:
2024-07-28 23:59:23 +03:00
parent 945b1d21fe
commit 3edd692771
9 changed files with 89 additions and 30 deletions

11
src/textures/modes.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef TEXTURES_MODES_H
#define TEXTURES_MODES_H
/* alpha channel information */
enum texture_mode {
TEXTURE_MODE_OPAQUE, /* all pixels are solid */
TEXTURE_MODE_SEETHROUGH, /* some pixels are alpha zero */
TEXTURE_MODE_GHOSTLY, /* arbitrary alpha values */
};
#endif