#include "RenderManager.hpp"
#include "core/logger.hpp"
#include <nds.h>
#include <string>
Go to the source code of this file.
|
| static int | textureSizeEnum (int size) |
| | Converts a raw texture dimension in pixels to the corresponding libnds TEXTURE_SIZE_* enum value.
|
|
| static constexpr int32_t | ONE_Q12 = 1 << 12 |
◆ textureSizeEnum()
| int textureSizeEnum |
( |
int | size | ) |
|
|
static |
Converts a raw texture dimension in pixels to the corresponding libnds TEXTURE_SIZE_* enum value.
- Parameters
-
| size | Texture width/height in pixels. Expected to be one of the power-of-two values 8, 16, 32, 64, 128, 256, 512, or 1024. |
- Returns
- The matching TEXTURE_SIZE_* constant, or TEXTURE_SIZE_8 as a fallback if
size does not match a supported value (a message is also printed to the debug console in that case).
Definition at line 18 of file RenderManager.cpp.
◆ ONE_Q12
| int32_t ONE_Q12 = 1 << 12 |
|
staticconstexpr |