hlfw.ca

binpack

ref: 77ce286ba25181f01811d04e556f374a73208a31
dir: /binpack.c/

View raw version
#include <stdbool.h>
#include <stdlib.h>

#include "binpack.h"

// This will iterate through a binary-search style approach, varying the size between the minw/minh and maxw/maxh to try to find the largest set of rectangles to fill the bin
void binary_bin_pack(unsigned width, unsigned height, struct Output out[], struct Input in[]) {

}

// Make sure we pass with one or fewer elements
bool
bin_pack(unsigned width, unsigned height, struct Output out[], struct Input in[]) {
	return true;
}