Clean a little

This commit is contained in:
Miloslav Ciz 2025-01-08 00:10:27 +01:00
parent 302bac10e6
commit 402867e73b
3 changed files with 64 additions and 62 deletions

View file

@ -1745,6 +1745,8 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
int i = 0;
uint16_t effect = LCR_renderer.frame >> 1;
LCR_LOG2("drawing menu");
while (i < stripHeight * LCR_EFFECTIVE_RESOLUTION_X)
{
LCR_drawPixel(i,0x8ddc
@ -1818,7 +1820,9 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
LCR_renderer.frame++;
}
// TODO: what is this function even doing?
/**
Resets camera rotation and places it behind the car.
*/
void LCR_rendererCameraReset(void)
{
LCR_renderer.scene.camera.transform.translation =
@ -1844,7 +1848,7 @@ void LCR_rendererSetWheelState(LCR_GameUnit rotation, LCR_GameUnit steer)
#endif
}
void LCR_rendererDraw(void)
void LCR_rendererDraw3D(void)
{
LCR_LOG2("rendering frame (start)");
@ -1871,7 +1875,7 @@ void LCR_rendererDraw(void)
LCR_drawLevelFloor();
LCR_rendererDrawLOD();
LCR_LOG2("gonna render 3D scene");
LCR_LOG2("3D rendering (start)");
#if LCR_SETTING_POTATO_GRAPHICS
/* in potato mode we render twice so that car is always in front of the
@ -1896,11 +1900,10 @@ void LCR_rendererDraw(void)
#else
S3L_drawScene(LCR_renderer.scene);
#endif
LCR_LOG2("rendering 3D scene done");
LCR_renderer.frame++;
LCR_LOG2("3D rendering (end)");
LCR_LOG2("rendering frame (end)");
}