hlfw.ca

binpack

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