sk.upjs.fontmapper
Interface TexturePacker

All Known Implementing Classes:
BinaryPacker

interface TexturePacker

Interface for texture packers. A texture packer handles allocation of a 2D space to smaller sections, which is used to place small textures on texture pages.


Method Summary
 java.awt.Rectangle allocateSpace(java.awt.Dimension size)
          Attempts to allocate space of specified size on the texture.
 

Method Detail

allocateSpace

java.awt.Rectangle allocateSpace(java.awt.Dimension size)
                                 throws TextureAllocationException
Attempts to allocate space of specified size on the texture.

Parameters:
size - Size of the space to allocate.
Throws:
TextureAllocationException - if space could not be allocated.