Метод | Описание | |
---|---|---|
PackSprites ( IList |
Packs a list of sprites into a single big texture, recording where each one was stored.
|
Метод | Описание | |
---|---|---|
CompareSpriteIndices ( ArrangedSprite p_a, ArrangedSprite p_b ) : int |
Comparison function for sorting sprites by their original indices.
|
|
CompareSpriteSizes ( ArrangedSprite p_a, ArrangedSprite p_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 |
||
p_sourceSprites | IList |
|
p_outputSprites | ICollection |
|
p_context | ContentProcessorContext | |
Результат | Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent |