got nonbinary partitioning working yippie

This commit is contained in:
do butterflies cry? 2025-09-15 19:26:04 +10:00
parent 6b5bcff1a4
commit 330755591b
6 changed files with 170 additions and 57 deletions

26
cursetree/nsparted.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef CURSETREE_NSPARTED_H
#define CURSETREE_NSPARTED_H
#include "node.h"
/* Surface Partition Dimensions */
struct ct_spdims {
// Main Axis & Orthogonal Axis Sizes
int axm_size, axo_size;
bool fixed;
int min, max;
};
/* Node Surface Partitioner */
struct ct_nsparted {
struct ct_node *const node;
struct ct_dims *const dims;
/* Child Surface Partition Dimensions */
struct ct_spdims *const cspdims;
};
struct ct_nsparted *init_nsparted(struct ct_node *const node,
struct ct_dims *const dims);
#endif /* CURSETREE_NSPARTED_H */