Package | com.catalystapps.gaf.data |
Class | public class GAFGFXData |
Inheritance | GAFGFXData ![]() |
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)
Method | Defined 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 |
Constant | Defined 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 |
createTexture | () | method |
public function createTexture(scale:Number, csf:Number, imageID:String):Boolean
Creates texture from specified image.
Parameters
scale:Number | |
csf:Number | |
imageID:String |
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 |
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 |
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 |
Object |
ATF | Constant |
public static const ATF:String = ATF
BGR_PACKED | Constant |
public static const BGR_PACKED:String = bgrPacked565
BGRA | Constant |
public static const BGRA:String = bgra
BGRA_PACKED | Constant |
public static const BGRA_PACKED:String = bgraPacked4444