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

Function drawingWithTex

source/drawing.c:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void drawingWithTex(C3D_Tex* tex, u32 color)
184{
185 drawingSetTex(tex);
186 C3D_TexEnv* env = C3D_GetTexEnv(0);
187 C3D_TexEnvSrc(env, C3D_Both, GPU_TEXTURE0, GPU_CONSTANT, 0);
188 C3D_TexEnvFunc(env, C3D_Both, GPU_MODULATE);
189 C3D_TexEnvColor(env, color);
190}
191
192void drawingAddVertex(float vx, float vy, float tx, float ty)
193{

Callers 2

drawingDrawImageFunction · 0.85
menuDrawEntryFunction · 0.85

Calls 1

drawingSetTexFunction · 0.85

Tested by

no test coverage detected