persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
RenderManager.cpp File Reference
#include "RenderManager.hpp"
#include "core/logger.hpp"
#include <nds.h>
#include <string>
Include dependency graph for RenderManager.cpp:

Go to the source code of this file.

Functions

static int textureSizeEnum (int size)
 Converts a raw texture dimension in pixels to the corresponding libnds TEXTURE_SIZE_* enum value.

Variables

static constexpr int32_t ONE_Q12 = 1 << 12

Function Documentation

◆ textureSizeEnum()

int textureSizeEnum ( int size)
static

Converts a raw texture dimension in pixels to the corresponding libnds TEXTURE_SIZE_* enum value.

Parameters
sizeTexture 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.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ONE_Q12

int32_t ONE_Q12 = 1 << 12
staticconstexpr

Definition at line 6 of file RenderManager.cpp.