Class
RenderLists2D
View sourceExtendsRenderLists
Camera render-list component for opaque 2D passes.
Place this component on a camera entity with Camera and
GlobalTransform2D. It specializes RenderLists for 2D
entries; RenderLists3D is the corresponding 3D component.
Use the inherited RenderLists#getOpaquePass,
RenderLists#setOpaquePass, and RenderLists#clear APIs to
manage its material-keyed passes.
Examples
import { createCamera2D } from '@wimaengine/render-core'
// The prefab includes GlobalTransform2D, Camera, and RenderLists2D.
const cameraEntity = world.spawn(createCamera2D())Constructor
Methods
staticdefault(): RenderLists2D
View sourcestaticcopy(_source: RenderLists2D, target?: RenderLists2D): RenderLists2D
View sourceReturns the copy target without copying any render passes.
The source is ignored. Without a target, this method creates and returns
an empty RenderLists2D; with a target, it returns that exact object
unchanged, including any passes it already contains.
staticclone(target: RenderLists2D): RenderLists2D
View sourceReturns a new empty render list instead of cloning render passes.
The input is ignored. This method delegates to
RenderLists2D.copy without a copy target, so it always
returns a new RenderLists2D whose inherited opaque-pass map is
empty.
staticserialize(_value: RenderLists2D): object
View sourceReturns the empty serialized representation for a 2D render list.
The value is ignored and the inherited opaque passes are not serialized; each call returns a new empty object.
staticdeserialize(_value: unknown, out?: RenderLists2D): RenderLists2D
View sourceReturns an output render list without reading serialized data.
The serialized input is ignored. Without out, this method creates and
returns a new empty RenderLists2D; with out, it returns that
exact object unchanged, so no opaque passes are restored or replaced.
