Packagestarling.textures
Classpublic class AtfData
InheritanceAtfData Inheritance Object

A parser for the ATF data format.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
dataproperty
data:ByteArray  [read-only]

The actual byte data, including header.


Implementation
    public function get data():ByteArray
formatproperty 
format:String  [read-only]

The texture format.


Implementation
    public function get format():String

See also

flash.display3D.textures.Context3DTextureFormat
heightproperty 
height:int  [read-only]

The height of the texture in pixels.


Implementation
    public function get height():int
isCubeMapproperty 
isCubeMap:Boolean  [read-only]

Indicates if the ATF data encodes a cube map. Not supported by Starling!


Implementation
    public function get isCubeMap():Boolean
numTexturesproperty 
numTextures:int  [read-only]

The number of encoded textures. '1' means that there are no mip maps.


Implementation
    public function get numTextures():int
widthproperty 
width:int  [read-only]

The width of the texture in pixels.


Implementation
    public function get width():int
Constructor Detail
AtfData()Constructor
public function AtfData(data:ByteArray)

Create a new instance by parsing the given byte array.

Parameters
data:ByteArray
Method Detail
isAtfData()method
public static function isAtfData(data:ByteArray):Boolean

Checks the first 3 bytes of the data for the 'ATF' signature.

Parameters

data:ByteArray

Returns
Boolean