Remove aabb from the nodes module
This commit is contained in:
		| @@ -37,7 +37,6 @@ struct node { | ||||
|   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); | ||||
|  | ||||
| #endif // !NODES_H | ||||
|   | ||||
| @@ -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) { | ||||
|   fill_rect(wnd, &(node->rect), colours[node->type].fill); | ||||
|   draw_rect(wnd, &(node->rect), colours[node->type].border); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user