write some TODO comments

This commit is contained in:
2025-06-25 15:44:17 +02:00
parent 94cfbdcaad
commit a202442853
4 changed files with 4 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ static void draw_score_text(renderdata const* dat) {
SDL_RenderCopy(renderer, cache->score_texture, NULL, &text_rect);
}
// TODO: this is suboptimal, since each block will be 2 triangles, wasting perf. Consider using switch...case hard-coded drawing
// draws a block at the specified position
static inline int draw_block(SDL_Renderer* const renderer, int8_t const x, int8_t const y) {
SDL_Rect const block = {get_column_pos(x), get_row_pos(y), BLOCK_WIDTH - 1, BLOCK_HEIGHT - 1};