ebiten: github.com/hajimehoshi/ebiten/internal/packing Index | Files

package packing

import "github.com/hajimehoshi/ebiten/internal/packing"

Package packing offers a packing algorithm in 2D space.

Index

Package Files

packing.go

type Node Uses

type Node struct {
    // contains filtered or unexported fields
}

func (*Node) Region Uses

func (n *Node) Region() (x, y, width, height int)

type Page Uses

type Page struct {
    // contains filtered or unexported fields
}

func NewPage Uses

func NewPage(initSize int, maxSize int) *Page

func (*Page) Alloc Uses

func (p *Page) Alloc(width, height int) *Node

func (*Page) Clone Uses

func (p *Page) Clone() *Page

func (*Page) Extend Uses

func (p *Page) Extend() bool

func (*Page) Free Uses

func (p *Page) Free(node *Node)

func (*Page) IsEmpty Uses

func (p *Page) IsEmpty() bool

func (*Page) SetMaxSize Uses

func (p *Page) SetMaxSize(size int)

func (*Page) Size Uses

func (p *Page) Size() int

Package packing imports 1 packages (graph) and is imported by 2 packages. Updated 2019-07-19. Refresh now. Tools for package owners.