| 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 | |
| maxTextures : int [static] Maximum number of textures to be batched, default 2. | MultiTextureStyle | ||
![]() | target : Mesh [read-only] The target the style is currently assigned to. | MeshStyle | |
![]() | texture : Texture The texture that is mapped to the mesh (or null, if there is none). | MeshStyle | |
![]() | 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 [read-only] The format used to store the vertices. | MeshStyle | |
| 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(targetStyle:MeshStyle, targetVertexID:int = 0, matrix:Matrix = null, vertexID:int = 0, numVertices:int = -1):void Copies the vertex data of the style's current target to the target of another style. | MeshStyle | |
![]() | canBatchWith(meshStyle:MeshStyle):Boolean Indicates if the current instance can be batched with the given style. | MeshStyle | |
![]() | 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 | |
![]() | Creates the effect that does the actual, low-level rendering. | MeshStyle | |
![]() | 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 | |
![]() | Updates the settings of the given effect to match the current style. | MeshStyle | |
| Constant | Defined By | ||
|---|---|---|---|
| MAX_NUM_TEXTURES : int = 5 [static] Maximum number of textures that can be batched. | MultiTextureStyle | ||
| VERTEX_FORMAT : VertexDataFormat [static] The vertex format expected by this style. | MultiTextureStyle | ||
| maxTextures | property |
maxTextures:intMaximum number of textures to be batched, default 2.
public static function get maxTextures():int public static function set maxTextures(value:int):void| MultiTextureStyle | () | Constructor |
public function MultiTextureStyle()| MAX_NUM_TEXTURES | Constant |
public static const MAX_NUM_TEXTURES:int = 5Maximum number of textures that can be batched.
| VERTEX_FORMAT | Constant |
public static const VERTEX_FORMAT:VertexDataFormatThe vertex format expected by this style.