MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / textSetColor

Function textSetColor

source/text.c:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void textSetColor(u32 color)
60{
61 C3D_TexEnv* env = C3D_GetTexEnv(0);
62 C3D_TexEnvSrc(env, C3D_RGB, GPU_CONSTANT, 0, 0);
63 C3D_TexEnvSrc(env, C3D_Alpha, GPU_TEXTURE0, GPU_CONSTANT, 0);
64 C3D_TexEnvFunc(env, C3D_RGB, GPU_REPLACE);
65 C3D_TexEnvFunc(env, C3D_Alpha, GPU_MODULATE);
66 C3D_TexEnvColor(env, color);
67}
68
69static inline float maxf(float a, float b)
70{

Callers 10

networkDrawBotFunction · 0.85
drawingTopScreenFunction · 0.85
drawingBottomScreenFunction · 0.85
errorDrawBotFunction · 0.85
rebootDrawBotFunction · 0.85
menuDrawTopFunction · 0.85
menuDrawEntryFunction · 0.85
menuDrawBotFunction · 0.85
backgroundDrawTopFunction · 0.85
titleSelectDrawBotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected