Top Description Interfaces Classes
[default module]

Package com.jogamp.opengl.util.packrect


This package implements a rectangle packing algorithm suitable for tracking the placement of multiple rectangles inside a larger one. It is useful for cases such as placing the contents of multiple windows on a larger backing store texture for a compositing window manager; placing multiple rasterized strings in a texture map for quick rendering to the screen; and many other situations where it is useful to carve up a larger texture into smaller pieces dynamically.

Interface Summary

Modifier and TypeInterface and Description
public interface
BackingStoreManager

This interface must be implemented by the end user and is called in response to events like addition of rectangles into the RectanglePacker.

public interface
RectVisitor

Iteration construct without exposing the internals of the RectanglePacker and without implementing a complex Iterator.

Class Summary

Modifier and TypeClass and Description
public class
public class
LevelSet

Manages a list of Levels; this is the core data structure contained within the RectanglePacker and encompasses the storage algorithm for the contained Rects.

public class
Rect

Represents a rectangular region on the backing store.

public class
RectanglePacker

Packs rectangles supplied by the user (typically representing image regions) into a larger backing store rectangle (typically representing a large texture).