SNAKE_STM32F3
Loading...
Searching...
No Matches
game_renderer.h File Reference

Snake rendering module dedicated for ws2812b matrix display. More...

#include "snake.h"
#include "game.h"
Include dependency graph for game_renderer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void render_snake (const snake_state *game)
 Renders the snake on the LED matrix.
void render_menu (const snake_state *game)
 Renders game menu on the LED matrix.
void render_start (void)
 Renders game start animation on the LED matrix.

Detailed Description

Snake rendering module dedicated for ws2812b matrix display.

Author
bslrd
Date
2026

SPDX-License-Identifier: MIT

Function Documentation

◆ render_menu()

void render_menu ( const snake_state * game)

Renders game menu on the LED matrix.

Parameters
gamepointer to current snake state used for rendering.
Note
color scheme is defined inside snake_renderer.c.
Here is the call graph for this function:

◆ render_snake()

void render_snake ( const snake_state * game)

Renders the snake on the LED matrix.

Parameters
gamepointer to current snake state used for rendering.
Note
color scheme is defined inside snake_renderer.c.
Here is the call graph for this function:

◆ render_start()

void render_start ( void )

Renders game start animation on the LED matrix.

Note
color scheme is defined inside snake_renderer.c.
Here is the call graph for this function: