add texture border to atlas residents, actually make use of mipmapping
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user