Remove aabb from the nodes module

This commit is contained in:
Abdelrahman Said 2024-01-15 22:36:25 +00:00
parent c831fd23f7
commit f7449d8014
2 changed files with 0 additions and 6 deletions

View File

@ -37,7 +37,6 @@ struct node {
node_data_t data; node_data_t data;
}; };
bool aabb(const node_t *node, i32 x, i32 y);
void draw_node(const window_t *wnd, const node_t *node); void draw_node(const window_t *wnd, const node_t *node);
#endif // !NODES_H #endif // !NODES_H

View File

@ -22,11 +22,6 @@ INTERNAL node_colours_t colours[COUNT_NODE_TYPES] = {
}, },
}; };
bool aabb(const node_t *node, i32 x, i32 y) {
return x > node->rect.topleft.x && x <= node->rect.topleft.x + node->rect.w &&
y > node->rect.topleft.y && y <= node->rect.topleft.y + node->rect.h;
}
void draw_node(const window_t *wnd, const node_t *node) { void draw_node(const window_t *wnd, const node_t *node) {
fill_rect(wnd, &(node->rect), colours[node->type].fill); fill_rect(wnd, &(node->rect), colours[node->type].fill);
draw_rect(wnd, &(node->rect), colours[node->type].border); draw_rect(wnd, &(node->rect), colours[node->type].border);