made it so that branches would be drawn on branches

This commit is contained in:
2025-11-04 12:13:42 -08:00
parent 51c2ff25e6
commit 998c2aa393
3 changed files with 76 additions and 38 deletions

View File

@@ -41,6 +41,7 @@ typedef struct {
typedef struct {
char* text; // This is the data that is in that branch
branchId children[MAX_CHILDREN]; // holds the branchIds of its children
struct tart_cell cell;
void* parent; // points the the branches parent
char type; // holds the type as in if this struct is a branch or a trunk
nomi_vec2 startPos; // the starting position of the branch
@@ -74,6 +75,7 @@ void CreaetBranch(trunk* trunk);
* */
branch* LocateBranch();
branch create_branch(branch* parent, nomi_vec2 d);
/*
* Draw Branch
*/