Options
Menu

Interface IPass

class

away.pool.Passes

Hierarchy

  • IEventDispatcher

Implemented by

Index

Properties

animationSet

animationSet: AnimationSetBase

images

images: Array<GL_ImageBase>

samplers

samplers: Array<GL_SamplerBase>

shader

shader: ShaderBase

style

style: Style

Methods

Private _activate

  • _activate(projection: ProjectionBase): any
  • Sets the material state for the pass that is independent of the rendered object. This needs to be called before calling pass. Before activating a pass, the previously used pass needs to be deactivated.

    Parameters

    • projection: ProjectionBase

    Returns any

Private _deactivate

  • _deactivate(): any
  • Clears the surface state for the pass. This needs to be called before activating another pass.

    Returns any

_getFragmentCode

_getNormalFragmentCode

_getNormalVertexCode

_getPostAnimationFragmentCode

_getVertexCode

_includeDependencies

  • Parameters

    Returns any

_initConstantData

  • Parameters

    Returns any

_setRenderState

  • Parameters

    Returns any

addEventListener

  • addEventListener(type: string, listener: function): any
  • Add an event listener

    method

    addEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns any

dispatchEvent

  • dispatchEvent(event: EventBase): any
  • Dispatch an event

    method

    dispatchEvent

    Parameters

    • event: EventBase

    Returns any

dispose

  • dispose(): any
  • Returns any

getImageIndex

  • getImageIndex(texture: TextureBase, index?: number): number
  • Parameters

    • texture: TextureBase
    • Optional index: number

    Returns number

hasEventListener

  • hasEventListener(type: string, listener?: function): boolean
  • check if an object has an event listener assigned to it

    method

    hasListener

    Parameters

    • type: string
    • Optional listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns boolean

invalidate

  • invalidate(): any
  • Returns any

removeEventListener

  • removeEventListener(type: string, listener: function): any
  • Remove an event listener

    method

    removeEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns any

Generated using TypeDoc