UNPKG

starling-framework

Version:

A fast, productive library for 2D cross-platform development.

38 lines 1.36 kB
import VertexDataFormat from "./VertexDataFormat"; import FilterEffect from "./FilterEffect"; declare namespace starling.rendering { /** * An effect drawing a mesh of textured, colored vertices. * * This is the standard effect that is the base for all mesh styles; * * if you want to create your own mesh styles, you will have to extend this class. * * * * <p>For more information about the usage and creation of effects, please have a look at * * the documentation of the root class, "Effect".</p> * * * * @see Effect * * @see FilterEffect * * @see starling.styles.MeshStyle * */ export class MeshEffect extends FilterEffect { /** * Creates a new MeshEffect instance. */ constructor(); /** * The alpha value of the object rendered by the effect. Must be taken into account * * by all subclasses. */ get alpha(): number; set alpha(value: number) /** * Indicates if the rendered vertices are tinted in any way, i.e. if there are vertices * * that have a different color than fully opaque white. The base <code>MeshEffect</code> * * class uses this information to simplify the fragment shader if possible. May be * * ignored by subclasses. */ get tinted(): boolean; set tinted(value: boolean) } } export default starling.rendering.MeshEffect;