Package | starling.textures |
Class | public class AtfData |
Inheritance | AtfData Object |
Property | Defined By | ||
---|---|---|---|
data : ByteArray [read-only] The actual byte data, including header. | AtfData | ||
format : String [read-only] The texture format. | AtfData | ||
height : int [read-only] The height of the texture in pixels. | AtfData | ||
isCubeMap : Boolean [read-only] Indicates if the ATF data encodes a cube map. | AtfData | ||
numTextures : int [read-only] The number of encoded textures. | AtfData | ||
width : int [read-only] The width of the texture in pixels. | AtfData |
Method | Defined By | ||
---|---|---|---|
AtfData(data:ByteArray) Create a new instance by parsing the given byte array. | AtfData | ||
isAtfData(data:ByteArray):Boolean [static] Checks the first 3 bytes of the data for the 'ATF' signature. | AtfData |
data | property |
data:ByteArray
[read-only] The actual byte data, including header.
public function get data():ByteArray
format | property |
format:String
[read-only] The texture format.
public function get format():String
See also
height | property |
height:int
[read-only] The height of the texture in pixels.
public function get height():int
isCubeMap | property |
isCubeMap:Boolean
[read-only] Indicates if the ATF data encodes a cube map. Not supported by Starling!
public function get isCubeMap():Boolean
numTextures | property |
numTextures:int
[read-only] The number of encoded textures. '1' means that there are no mip maps.
public function get numTextures():int
width | property |
width:int
[read-only] The width of the texture in pixels.
public function get width():int
AtfData | () | Constructor |
public function AtfData(data:ByteArray)
Create a new instance by parsing the given byte array.
Parametersdata:ByteArray |
isAtfData | () | method |
public static function isAtfData(data:ByteArray):Boolean
Checks the first 3 bytes of the data for the 'ATF' signature.
Parameters
data:ByteArray |
Boolean |