Packagecom.catalystapps.gaf.data
Classpublic class GAFGFXData
InheritanceGAFGFXData Inheritance Object

Graphical data storage that used by GAFTimeline. It contain all created textures and all saved images as BitmapData (in case when Starling.handleLostContext = true was set before asset conversion). Used as shared graphical data storage between several GAFTimelines if they are used the same texture atlas (bundle created using "Create bundle" option)



Public Methods
 MethodDefined By
  
createTexture(scale:Number, csf:Number, imageID:String):Boolean
Creates texture from specified image.
GAFGFXData
  
createTextures(scale:Number, csf:Number):Boolean
Creates textures from all images for specified scale and csf.
GAFGFXData
  
disposeTextures(scale:Number, csf:Number, imageID:String = null):void
Dispose specified texture or textures for specified combination scale and csf.
GAFGFXData
  
getTexture(scale:Number, csf:Number, imageID:String):Texture
Returns texture by unique key consist of scale + csf + imageID
GAFGFXData
  
getTextures(scale:Number, csf:Number):Object
Returns textures for specified scale and csf in Object as combination key-value where key - is imageID and value - is Texture
GAFGFXData
Public Constants
 ConstantDefined By
  ATF : String = ATF
Deprecated Since 5.0
[static]
GAFGFXData
  BGRA : String = bgra
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGRA
[static]
GAFGFXData
  BGRA_PACKED : String = bgraPacked4444
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGRA_PACKED
[static]
GAFGFXData
  BGR_PACKED : String = bgrPacked565
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGR_PACKED
[static]
GAFGFXData
Method Detail
createTexture()method
public function createTexture(scale:Number, csf:Number, imageID:String):Boolean

Creates texture from specified image.

Parameters

scale:Number
 
csf:Number
 
imageID:String

Returns
Boolean — {Boolean}

See also

createTextures()method 
public function createTextures(scale:Number, csf:Number):Boolean

Creates textures from all images for specified scale and csf.

Parameters

scale:Number
 
csf:Number

Returns
Boolean — {Boolean}

See also

disposeTextures()method 
public function disposeTextures(scale:Number, csf:Number, imageID:String = null):void

Dispose specified texture or textures for specified combination scale and csf. If nothing was specified - dispose all texturea

Parameters

scale:Number (default = NaN)
 
csf:Number (default = NaN)
 
imageID:String (default = null)

getTexture()method 
public function getTexture(scale:Number, csf:Number, imageID:String):Texture

Returns texture by unique key consist of scale + csf + imageID

Parameters

scale:Number
 
csf:Number
 
imageID:String

Returns
Texture
getTextures()method 
public function getTextures(scale:Number, csf:Number):Object

Returns textures for specified scale and csf in Object as combination key-value where key - is imageID and value - is Texture

Parameters

scale:Number
 
csf:Number

Returns
Object
Constant Detail
ATFConstant
public static const ATF:String = ATF
Deprecated Since 5.0

BGR_PACKEDConstant 
public static const BGR_PACKED:String = bgrPacked565
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGR_PACKED

BGRAConstant 
public static const BGRA:String = bgra
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGRA

BGRA_PACKEDConstant 
public static const BGRA_PACKED:String = bgraPacked4444
Deprecated Since 5.0: Please Use Context3DTextureFormat.BGRA_PACKED