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

@@ -1,3 +1,4 @@
// TODO: audio stores audio buffers at indicies that the user specifies. (array growth is the next power of two from the idx)
#include "audio.h"
#include <SDL_audio.h>

View File

@@ -5,6 +5,7 @@
#include "window.h"
// TODO: this'll likely be insufficient, due to no code delays being applied, or it registers *just* the keydown event
__attribute__((const)) static int procscancode(SDL_Scancode code) {
switch (code) {
case SDL_SCANCODE_Q: return MOVRL;

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};