hlfw.ca

binpack

ref: 46b3adb7a4861c9b0209421a078b48819b22a8c7
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;
}