Package | away3d.materials |
Class | public class SpriteSheetMaterial |
Inheritance | SpriteSheetMaterial ![]() ![]() ![]() ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
SpriteSheetMaterial(diffuses:Vector.<Texture2DBase>, normals:Vector.<Texture2DBase> = null, speculars:Vector.<Texture2DBase> = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
Creates a new SpriteSheetMaterial required for a SpriteSheetAnimator
(the sprite sheet maps of each textures must have power of 2 sizes)
| SpriteSheetMaterial | ||
![]() | addMethod(method:EffectMethodBase):void
Adds a shading method to the end of the shader. | SinglePassMaterialBase | |
![]() | addMethodAt(method:EffectMethodBase, index:int):void
Adds a shading method to the end of a shader, at the specified index amongst
the methods in that section of the shader. | SinglePassMaterialBase | |
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | dispose():void
Cleans up any resources used by the current object. | MaterialBase | |
![]() | getMethodAt(index:int):EffectMethodBase | SinglePassMaterialBase | |
![]() | hasMethod(method:EffectMethodBase):Boolean | SinglePassMaterialBase | |
![]() | removeMethod(method:EffectMethodBase):void | SinglePassMaterialBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
SpriteSheetMaterial | () | Constructor |
public function SpriteSheetMaterial(diffuses:Vector.<Texture2DBase>, normals:Vector.<Texture2DBase> = null, speculars:Vector.<Texture2DBase> = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
Creates a new SpriteSheetMaterial required for a SpriteSheetAnimator (the sprite sheet maps of each textures must have power of 2 sizes)
Parametersdiffuses:Vector.<Texture2DBase> — Vector.<Texture2DBase> : One or more Texture2DBase representing the diffuse information of the spritesheets. Must hold at least 1 diffuse.
| |
normals:Vector.<Texture2DBase> (default = null ) — Vector.<Texture2DBase> : One or more Texture2DBase representing the normal information of the spritesheets. Default is null. If not null, must hold same amount of textures as diffuses.
| |
speculars:Vector.<Texture2DBase> (default = null ) — Vector.<Texture2DBase> : One or more Texture2DBase representing the specular information of the spritesheets. Default is null. If not null, must hold same amount of textures as diffuses.
| |
smooth:Boolean (default = true ) — Boolean : Material smoothing. Default is true.
| |
repeat:Boolean (default = false ) — Boolean : Material repeat. Default is false.
| |
mipmap:Boolean (default = true ) — Boolean : Material mipmap. Set it to false if the animation graphics have thin lines or text information in them. Default is true.
|
swap | () | method |
arcane function swap(mapID:uint = 0):Boolean
Parameters
mapID:uint (default = 0 )
|
Boolean |