Skip to content

@simversus/yjvisDocs


@simversus/yjvis / RenderWindow

Class: RenderWindow

Internal

渲染窗口,表示渲染到哪儿

Constructors

new RenderWindow()

new RenderWindow(): RenderWindow

Returns

RenderWindow

Properties

cameras

cameras: Camera[] = []

Defined in

scene/RenderWindow.ts:52


colorTextures

colorTextures: Texture[] = []

Defined in

scene/RenderWindow.ts:50


depthStencilTexture

depthStencilTexture: Texture = null

Defined in

scene/RenderWindow.ts:51


framebuffer

framebuffer: Framebuffer = null

Defined in

scene/RenderWindow.ts:55


hasOffScreenAttachments

hasOffScreenAttachments: boolean = false

Defined in

scene/RenderWindow.ts:54


hasOnScreenAttachments

hasOnScreenAttachments: boolean = false

Defined in

scene/RenderWindow.ts:53


height

height: number = 1

Defined in

scene/RenderWindow.ts:47


renderPass

renderPass: RenderPass = null

Defined in

scene/RenderWindow.ts:49


swapchain

swapchain: Swapchain

Defined in

scene/RenderWindow.ts:48


width

width: number = 1

Defined in

scene/RenderWindow.ts:46

Methods

attachCamera()

attachCamera(camera): void

Parameters

camera: Camera

Returns

void

Defined in

scene/RenderWindow.ts:176


clearCameras()

clearCameras(): void

Returns

void

Defined in

scene/RenderWindow.ts:195


destroy()

destroy(): void

Returns

void

Defined in

scene/RenderWindow.ts:116


detachCamera()

detachCamera(camera): void

Parameters

camera: Camera

Returns

void

Defined in

scene/RenderWindow.ts:186


extractRenderCameras()

extractRenderCameras(cameras): void

Parameters

cameras: Camera[]

Returns

void

Defined in

scene/RenderWindow.ts:166


init()

init(info): boolean

Parameters

info: IRenderWindowInfo

Returns

boolean

Defined in

scene/RenderWindow.ts:61


readPixels()

readPixels(range): void

Parameters

range: Number4

Returns

void

Defined in

scene/RenderWindow.ts:57


resize()

resize(width, height): void

Parameters

width: number

height: number

Returns

void

Defined in

scene/RenderWindow.ts:138


sortCameras()

sortCameras(): void

Returns

void

Defined in

scene/RenderWindow.ts:199