The binpack Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The binpack Reference Manual

This is the binpack Reference Manual, version 0.0.1, generated automatically by Declt version 2.4 patchlevel 1 "Will Decker" on Mon Jul 29 14:33:47 2019 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

1.1 binpack

Author

Bart Botta <00003b at gmail.com>

License

MIT

Description

Rectangle packer for sprite/texture atlases

Version

0.0.1

Dependency

alexandria

Source

binpack.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

2 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

2.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

2.1.1 binpack.asd

Location

binpack.asd

Systems

binpack (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

2.1.2 binpack/packages.lisp

Parent

binpack (system)

Location

packages.lisp

Packages

binpack


Previous: , Up: Lisp files   [Contents][Index]

2.1.3 binpack/binpack.lisp

Dependency

packages.lisp (file)

Parent

binpack (system)

Location

binpack.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

3 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

3.1 binpack

Source

packages.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

4.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

4.1.1 Macros

Macro: with-rect (ID X Y W H) RECT &body BODY
Package

binpack

Source

binpack.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

4.1.2 Functions

Function: auto-pack RECTS &key WIDTH HEIGHT AUTO-SIZE-GRANULARITY-X AUTO-SIZE-GRANULARITY-Y OPTIMIZE-PACK EXPAND-MODE
Package

binpack

Source

binpack.lisp (file)

Function: pack RECTS WIDTH HEIGHT
Package

binpack

Source

binpack.lisp (file)

Function: rect ID X Y W H
Package

binpack

Source

binpack.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

4.1.3 Generic functions

Generic Function: h OBJECT
Generic Function: (setf h) NEW-VALUE OBJECT
Package

binpack

Methods
Method: h (CONDITION packing-failed)
Source

binpack.lisp (file)

Method: h (RECT rect)

automatically generated reader method

Source

binpack.lisp (file)

Method: (setf h) NEW-VALUE (RECT rect)

automatically generated writer method

Source

binpack.lisp (file)

Generic Function: id OBJECT
Package

binpack

Methods
Method: id (RECT rect)

automatically generated reader method

Source

binpack.lisp (file)

Generic Function: rect-initargs RECT
Package

binpack

Source

binpack.lisp (file)

Method Combination

append (short method combination)

Options: :most-specific-first

Methods
Method: rect-initargs (R rect) append
Generic Function: w OBJECT
Generic Function: (setf w) NEW-VALUE OBJECT
Package

binpack

Methods
Method: w (CONDITION packing-failed)
Source

binpack.lisp (file)

Method: w (RECT rect)

automatically generated reader method

Source

binpack.lisp (file)

Method: (setf w) NEW-VALUE (RECT rect)

automatically generated writer method

Source

binpack.lisp (file)

Generic Function: x OBJECT
Generic Function: (setf x) NEW-VALUE OBJECT
Package

binpack

Methods
Method: x (RECT rect)

automatically generated reader method

Source

binpack.lisp (file)

Method: (setf x) NEW-VALUE (RECT rect)

automatically generated writer method

Source

binpack.lisp (file)

Generic Function: y OBJECT
Generic Function: (setf y) NEW-VALUE OBJECT
Package

binpack

Methods
Method: y (RECT rect)

automatically generated reader method

Source

binpack.lisp (file)

Method: (setf y) NEW-VALUE (RECT rect)

automatically generated writer method

Source

binpack.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

4.1.4 Conditions

Condition: packing-failed ()
Package

binpack

Source

binpack.lisp (file)

Direct superclasses

simple-error (condition)

Direct methods
  • h (method)
  • w (method)
Direct slots
Slot: w
Initargs

:w

Readers

w (generic function)

Slot: h
Initargs

:h

Readers

h (generic function)


Previous: , Up: Exported definitions   [Contents][Index]

4.1.5 Classes

Class: rect ()
Package

binpack

Source

binpack.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
  • rect-initargs (method)
  • h (method)
  • h (method)
  • w (method)
  • w (method)
  • y (method)
  • y (method)
  • x (method)
  • x (method)
  • id (method)
Direct slots
Slot: %id
Initargs

:id

Readers

id (generic function)

Slot: %x
Initargs

:x

Readers

x (generic function)

Writers

(setf x) (generic function)

Slot: %y
Initargs

:y

Readers

y (generic function)

Writers

(setf y) (generic function)

Slot: %w
Initargs

:w

Readers

w (generic function)

Writers

(setf w) (generic function)

Slot: %h
Initargs

:h

Readers

h (generic function)

Writers

(setf h) (generic function)


Previous: , Up: Definitions   [Contents][Index]

4.2 Internal definitions


Previous: , Up: Internal definitions   [Contents][Index]

4.2.1 Functions

Function: %auto-pack RECTS &key WIDTH HEIGHT AUTO-SIZE-GRANULARITY-X AUTO-SIZE-GRANULARITY-Y EXPAND-MODE
Package

binpack

Source

binpack.lisp (file)

Function: containsp OUTER INNER
Package

binpack

Source

binpack.lisp (file)

Function: delta-weight WIDTH HEIGHT RECT
Package

binpack

Source

binpack.lisp (file)

Function: find-free-rect WIDTH HEIGHT RECTS
Package

binpack

Source

binpack.lisp (file)

Function: grow-rects RECTS DX DY
Package

binpack

Source

binpack.lisp (file)

Function: intersectsp RECT1 RECT2
Package

binpack

Source

binpack.lisp (file)

Function: normalize-free-space RECTS
Package

binpack

Source

binpack.lisp (file)

Function: place-rect RECT FREE-RECTS
Package

binpack

Source

binpack.lisp (file)

Function: resolve-free-rects RECT FREE-RECTS
Package

binpack

Source

binpack.lisp (file)

Function: rl RECT
Package

binpack

Source

binpack.lisp (file)

Function: sort-rects RECTS
Package

binpack

Source

binpack.lisp (file)

Function: subdivide-rect RECT PLACED
Package

binpack

Source

binpack.lisp (file)

Function: total-pixels RECTS
Package

binpack

Source

binpack.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   B   F   L  
Index Entry  Section

B
binpack.asd: The binpack<dot>asd file
binpack/binpack.lisp: The binpack/binpack<dot>lisp file
binpack/packages.lisp: The binpack/packages<dot>lisp file

F
File, Lisp, binpack.asd: The binpack<dot>asd file
File, Lisp, binpack/binpack.lisp: The binpack/binpack<dot>lisp file
File, Lisp, binpack/packages.lisp: The binpack/packages<dot>lisp file

L
Lisp File, binpack.asd: The binpack<dot>asd file
Lisp File, binpack/binpack.lisp: The binpack/binpack<dot>lisp file
Lisp File, binpack/packages.lisp: The binpack/packages<dot>lisp file

Jump to:   B   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
A   C   D   F   G   H   I   M   N   P   R   S   T   W   X   Y  
Index Entry  Section

%
%auto-pack: Internal functions

(
(setf h): Exported generic functions
(setf h): Exported generic functions
(setf w): Exported generic functions
(setf w): Exported generic functions
(setf x): Exported generic functions
(setf x): Exported generic functions
(setf y): Exported generic functions
(setf y): Exported generic functions

A
auto-pack: Exported functions

C
containsp: Internal functions

D
delta-weight: Internal functions

F
find-free-rect: Internal functions
Function, %auto-pack: Internal functions
Function, auto-pack: Exported functions
Function, containsp: Internal functions
Function, delta-weight: Internal functions
Function, find-free-rect: Internal functions
Function, grow-rects: Internal functions
Function, intersectsp: Internal functions
Function, normalize-free-space: Internal functions
Function, pack: Exported functions
Function, place-rect: Internal functions
Function, rect: Exported functions
Function, resolve-free-rects: Internal functions
Function, rl: Internal functions
Function, sort-rects: Internal functions
Function, subdivide-rect: Internal functions
Function, total-pixels: Internal functions

G
Generic Function, (setf h): Exported generic functions
Generic Function, (setf w): Exported generic functions
Generic Function, (setf x): Exported generic functions
Generic Function, (setf y): Exported generic functions
Generic Function, h: Exported generic functions
Generic Function, id: Exported generic functions
Generic Function, rect-initargs: Exported generic functions
Generic Function, w: Exported generic functions
Generic Function, x: Exported generic functions
Generic Function, y: Exported generic functions
grow-rects: Internal functions

H
h: Exported generic functions
h: Exported generic functions
h: Exported generic functions

I
id: Exported generic functions
id: Exported generic functions
intersectsp: Internal functions

M
Macro, with-rect: Exported macros
Method, (setf h): Exported generic functions
Method, (setf w): Exported generic functions
Method, (setf x): Exported generic functions
Method, (setf y): Exported generic functions
Method, h: Exported generic functions
Method, h: Exported generic functions
Method, id: Exported generic functions
Method, rect-initargs: Exported generic functions
Method, w: Exported generic functions
Method, w: Exported generic functions
Method, x: Exported generic functions
Method, y: Exported generic functions

N
normalize-free-space: Internal functions

P
pack: Exported functions
place-rect: Internal functions

R
rect: Exported functions
rect-initargs: Exported generic functions
rect-initargs: Exported generic functions
resolve-free-rects: Internal functions
rl: Internal functions

S
sort-rects: Internal functions
subdivide-rect: Internal functions

T
total-pixels: Internal functions

W
w: Exported generic functions
w: Exported generic functions
w: Exported generic functions
with-rect: Exported macros

X
x: Exported generic functions
x: Exported generic functions

Y
y: Exported generic functions
y: Exported generic functions

Jump to:   %   (  
A   C   D   F   G   H   I   M   N   P   R   S   T   W   X   Y  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   %  
H   S   W  
Index Entry  Section

%
%h: Exported classes
%id: Exported classes
%w: Exported classes
%x: Exported classes
%y: Exported classes

H
h: Exported conditions

S
Slot, %h: Exported classes
Slot, %id: Exported classes
Slot, %w: Exported classes
Slot, %x: Exported classes
Slot, %y: Exported classes
Slot, h: Exported conditions
Slot, w: Exported conditions

W
w: Exported conditions

Jump to:   %  
H   S   W  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   B   C   P   R   S  
Index Entry  Section

B
binpack: The binpack system
binpack: The binpack package

C
Class, rect: Exported classes
Condition, packing-failed: Exported conditions

P
Package, binpack: The binpack package
packing-failed: Exported conditions

R
rect: Exported classes

S
System, binpack: The binpack system

Jump to:   B   C   P   R   S