Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Camera2DRenderToTexture

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional width: number
    • Optional height: number
    • Optional freeze: boolean
    • Optional target: Entity

    Returns Camera2DRenderToTexture

Properties

freeze

freeze: boolean

Freeze render to texture operation. Setting this flag to true skips re-rendering the texture. It is a lightweight way to temporarily disable render to texture for this camera without de-allocations.

height

height: number

Height of the target render texture. Must be a power of two.

target

target: Entity

The target entity to render to. If NONE, this entity is used. The target entity must have an Image2D and an Image2DRenderToTexture component.

width

width: number

Width of the target render texture. Must be a power of two.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static freeze

Static height

Static target

target: EntityComponentFieldDesc

Static width

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

Generated using TypeDoc