Class RenderTexture

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(width: number, height: number): RenderTexture

Parameters

  • width: number
  • height: number

Returns

RenderTexture

Properties

public baseTexture: BaseTexture

public frame: Rectangle

public trim: Point

Methods

public addEventListener(type: string, listener: (event: PIXI.IEvent) => void): any

Parameters

  • type: string
  • listener: (event: PIXI.IEvent) => void

Returns

any

public destroy(destroyBase: boolean)

Parameters

  • destroyBase: boolean

public dispatchEvent(event: IEvent): any

Parameters

Returns

any

public removeEventListener(type: string, listener: (event: PIXI.IEvent) => void): any

Parameters

  • type: string
  • listener: (event: PIXI.IEvent) => void

Returns

any

public render(displayObject: DisplayObject, position: Point, clear: boolean)

Parameters

public resize(width: number, height: number)

Parameters

  • width: number
  • height: number

public setFrame(frame: Rectangle)

Parameters