Skip to content

flut2/turbopack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbopack

Tiny and efficient rect packer. The algorithm is very similar to and is heavily inspired by rectpack2D and the blog post it's based on.

Setting up when cloning:

Add the following to build.zig:

exe.addAnonymousModule("turbopack", .{ .source_file = .{ .path = "<path>/pack.zig" } });

When using the package manager:

Run the following commands:

cd <project root folder>
zig fetch https://github.com/flut2/turbopack/archive/<current_commit>.tar.gz --save=turbopack

Add the following to build.zig:

exe.root_module.addImport("turbopack", b.dependency("turbopack", .{
    .target = target,
    .optimize = optimize,
}).module("turbopack"));

Example code can be found in example/packing.zig.

About

Tiny and efficient rect packer in Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages