ERY.AgateLib.Utility.SurfacePacker Class Reference

Class which handles packing of surfaces into a large surface. More...

List of all members.

Public Member Functions

void ClearQueue ()
 Clears the list of surfaces that should be packed.
void QueueSurface (Surface surf)
 Adds a surface to the list of surfaces that should be packed.
void PackQueue ()
 Packs all the surfaces in the list.

Classes

class  PackedSurface
 Class which creates the final packed surface. More...
class  RectHolder< T >
 Holds a destination rectangle and object to go in it. More...
class  RectPacker< T >
 Class which takes a bunch of rectangles and organizes them to all fit within a large rectangle. More...


Detailed Description

Class which handles packing of surfaces into a large surface.

This class was introduced to allow render state changes to be minimized by making everything use the same texture object in memory.


Member Function Documentation

void ERY.AgateLib.Utility.SurfacePacker.ClearQueue (  ) 

Clears the list of surfaces that should be packed.

void ERY.AgateLib.Utility.SurfacePacker.QueueSurface ( Surface  surf  ) 

Adds a surface to the list of surfaces that should be packed.

Parameters:
surf 

void ERY.AgateLib.Utility.SurfacePacker.PackQueue (  ) 

Packs all the surfaces in the list.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo