add texture border to atlas residents, actually make use of mipmapping

This commit is contained in:
veclavtalica
2025-02-23 17:14:05 +03:00
parent a88392b9e9
commit d66eda1894
5 changed files with 79 additions and 12 deletions

View File

@ -13,7 +13,7 @@
#define TEXTURE_ATLAS_SIZE_DEFAULT 2048
#define TEXTURE_ATLAS_BIT_DEPTH 32
#define TEXTURE_ATLAS_FORMAT SDL_PIXELFORMAT_RGBA32
#define TEXTURE_BORDER_REPEAT_SIZE 8
/* alpha channel information */
typedef enum TextureMode {
@ -98,7 +98,7 @@ void textures_reset_state(void);
/* uncached low-level loading */
/* warn: surface->pixels must be freed along side the surface itself */
SDL_Surface *textures_load_surface(const char *path);
SDL_Surface *textures_load_surface(const char *path, bool apply_border);
/* note: will only take an effect after `textures_update_atlas` */
bool textures_load_workers_thread(void);