| Package | starling.styles |
| Class | public class MultiTextureStyle |
| Inheritance | MultiTextureStyle MeshStyle EventDispatcher Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | color : uint Changes the color of all vertices to the same value. | MeshStyle | |
![]() | target : Mesh [read-only] The target the style is currently assigned to. | MeshStyle | |
| texture : Texture [override] | MultiTextureStyle | ||
![]() | textureRepeat : Boolean Indicates if pixels at the edges will be repeated or clamped. | MeshStyle | |
![]() | textureSmoothing : String The smoothing filter that is used for the texture. | MeshStyle | |
![]() | type : Class [read-only] The actual class of this style. | MeshStyle | |
| vertexFormat : VertexDataFormat [override] [read-only] | MultiTextureStyle | ||
| Method | Defined By | ||
|---|---|---|---|
| MultiTextureStyle | |||
![]() | addEventListener(type:String, listener:Function):void [override] | MeshStyle | |
![]() | batchIndexData(targetStyle:MeshStyle, targetIndexID:int = 0, offset:int = 0, indexID:int = 0, numIndices:int = -1):void Copies the index data of the style's current target to the target of another style. | MeshStyle | |
batchVertexData(target:MeshStyle, targetVertexID:int = 0, matrix:Matrix = null, vertexID:int = 0, numVertices:int = -1):void [override] | MultiTextureStyle | ||
canBatchWith(meshStyle:MeshStyle):Boolean [override] | MultiTextureStyle | ||
![]() | Creates a clone of this instance. | MeshStyle | |
![]() | Copies all properties of the given style to the current instance (or a subset, if the
classes don't match). | MeshStyle | |
[override] | MultiTextureStyle | ||
![]() | dispatchEvent(event:Event):void Dispatches an event to all objects that have registered listeners for its type. | EventDispatcher | |
![]() | dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void Dispatches an event with the given parameters to all objects that have registered
listeners for the given type. | EventDispatcher | |
![]() | getTexCoords(vertexID:int, out:Point = null):Point Returns the texture coordinates of the vertex at the specified index. | MeshStyle | |
![]() | getVertexAlpha(vertexID:int):Number Returns the alpha value of the vertex at the specified index. | MeshStyle | |
![]() | getVertexColor(vertexID:int):uint Returns the RGB color of the vertex at the specified index. | MeshStyle | |
![]() | getVertexPosition(vertexID:int, out:Point = null):Point The position of the vertex at the specified index, in the mesh's local coordinate
system. | MeshStyle | |
![]() | hasEventListener(type:String, listener:Function = null):Boolean If called with one argument, figures out if there are any listeners registered for
the given event type. | EventDispatcher | |
![]() | removeEventListener(type:String, listener:Function):void [override] | MeshStyle | |
![]() | removeEventListeners(type:String = null):void Removes all event listeners with a certain type, or all of them if type is null. | EventDispatcher | |
![]() | setTexCoords(vertexID:int, u:Number, v:Number):void Sets the texture coordinates of the vertex at the specified index to the given values. | MeshStyle | |
![]() | setVertexAlpha(vertexID:int, alpha:Number):void Sets the alpha value of the vertex at the specified index to a certain value. | MeshStyle | |
![]() | setVertexColor(vertexID:int, color:uint):void Sets the RGB color of the vertex at the specified index to a certain value. | MeshStyle | |
![]() | setVertexPosition(vertexID:int, x:Number, y:Number):void | MeshStyle | |
[override] | MultiTextureStyle | ||
| Method | Defined By | ||
|---|---|---|---|
onTargetAssigned(target:Mesh):void [override] | MultiTextureStyle | ||
![]() | setRequiresRedraw():void Call this method if the target needs to be redrawn. | MeshStyle | |
| Constant | Defined By | ||
|---|---|---|---|
| MAX_NUM_TEXTURES : int = 4 [static] | MultiTextureStyle | ||
| VERTEX_FORMAT : VertexDataFormat [static] | MultiTextureStyle | ||
| texture | property |
texture:Texture[override] public function get texture():Texture public function set texture(value:Texture):void| vertexFormat | property |
vertexFormat:VertexDataFormat [read-only] [override] public function get vertexFormat():VertexDataFormat| MultiTextureStyle | () | Constructor |
public function MultiTextureStyle()| batchVertexData | () | method |
override public function batchVertexData(target:MeshStyle, targetVertexID:int = 0, matrix:Matrix = null, vertexID:int = 0, numVertices:int = -1):voidParameters
target:MeshStyle | |
targetVertexID:int (default = 0) | |
matrix:Matrix (default = null) | |
vertexID:int (default = 0) | |
numVertices:int (default = -1) |
| canBatchWith | () | method |
override public function canBatchWith(meshStyle:MeshStyle):BooleanParameters
meshStyle:MeshStyle |
Boolean |
| createEffect | () | method |
| onTargetAssigned | () | method |
| updateEffect | () | method |
override public function updateEffect(effect:MeshEffect, state:RenderState):voidParameters
effect:MeshEffect | |
state:RenderState |
| MAX_NUM_TEXTURES | Constant |
public static const MAX_NUM_TEXTURES:int = 4| VERTEX_FORMAT | Constant |
public static const VERTEX_FORMAT:VertexDataFormat