Méthode | Description | |
---|---|---|
packSprites ( IList |
Packs a list of sprites into a single big texture, recording where each one was stored.
|
Méthode | Description | |
---|---|---|
compareSpriteIndices ( ArrangedSprite a, ArrangedSprite b ) : int |
Comparison function for sorting sprites by their original indices.
|
|
compareSpriteSizes ( ArrangedSprite a, ArrangedSprite b ) : int |
Comparison function for sorting sprites by size.
|
|
copySpritesToOutput ( List |
Once the arranging is complete, copies the bitmap data for each sprite to its chosen position in the single larger output bitmap.
|
|
findIntersectingSprite ( List |
Checks if a proposed sprite position collides with anything that we already arranged.
|
|
guessOutputWidth ( List |
Heuristic guesses what might be a good output width for a list of sprites.
|
|
positionSprite ( List |
Works out where to position a single sprite.
|
public static packSprites ( IList |
||
sourceSprites | IList |
|
outputSprites | ICollection |
|
isCompressed | bool | |
context | ContentProcessorContext | |
Résultat | PixelBitmapContent |