6static constexpr int MAX_SIZE = 2048;
11 if (w < -MAX_SIZE || w > MAX_SIZE) {
13 " (max ", MAX_SIZE,
')');
15 if (h < -MAX_SIZE || h > MAX_SIZE) {
17 " (max ", MAX_SIZE,
')');
static void checkSize(gl::ivec2 size)
Performs a sanity check on image size.
This file implemented 3 utility functions:
size_t size(std::string_view utf8)