mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
write some TODO comments
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user