blob: 14c4d88372bcfcf33f617f20c93768ae570ce9be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef PW_SCALE_H
#define PW_SCALE_H
#include <SDL3/SDL_render.h>
#define PW_MAX_SAFE_INT 16777215
/**
* Scaling mode to use for textures.
*/
enum pw_scale_mode {
PW_SCALE_MODE_PIXEL_PERFECT,
PW_SCALE_MODE_FILL,
PW_SCALE_MODE_STRETCH,
};
/**
* Scale's a texture to its renderer output.
*/
bool pw_scale(enum pw_scale_mode mode, SDL_Texture *texture, SDL_FRect *target);
#endif
|