| Package | com.pblabs.rendering2D.spritesheet |
| Interface | public interface ISpriteSheetDivider |
| Implementors | CellCountDivider, FixedSizeDivider |
| Property | Defined By | ||
|---|---|---|---|
| frameCount : int [read-only]
How many frames are in this sprite sheet?
| ISpriteSheetDivider | ||
| owningSheet : SpriteSheetComponent [write-only]
Many times you want to infer information about frames based on data
from the sprite sheet. | ISpriteSheetDivider | ||
| Method | Defined By | ||
|---|---|---|---|
The MultiSpriteSheetHelper has to be able to clone dividers. | ISpriteSheetDivider | ||
getFrameArea(index:int):Rectangle
Return the size of a frame, given the desired index and the source
image's dimensions. | ISpriteSheetDivider | ||
| frameCount | property |
frameCount:int [read-only] How many frames are in this sprite sheet?
public function get frameCount():int| owningSheet | property |
owningSheet:SpriteSheetComponent [write-only] Many times you want to infer information about frames based on data from the sprite sheet. When the divider is assigned to a sprite sheet, the sprite sheet passes itself to OwningSheet so you can store it and get information from it.
public function set owningSheet(value:SpriteSheetComponent):void| clone | () | method |
public function clone():ISpriteSheetDividerThe MultiSpriteSheetHelper has to be able to clone dividers. So we have a Clone method.
ReturnsISpriteSheetDivider |
| getFrameArea | () | method |
public function getFrameArea(index:int):RectangleReturn the size of a frame, given the desired index and the source image's dimensions.
Parameters
index:int |
Rectangle |