跳转到内容

DrawTrianglesBuffer

此内容尚不支持你的语言。

Defined in: sdk/src/render/draw.ts:98

Triangles handed to the engine once and drawn by reference, with nothing copied a draw: what a Graphics keeps. The engine keeps them on the GPU and moves and tints each copy there, so a copy costs one small record; an engine built before that keeps them in its memory instead. Made by DrawAPI.createTriangles. It belongs to the engine instance that made it: once that is shut down, or the buffer is released, drawing it draws nothing.

readonly indexCount: number

Defined in: sdk/src/render/draw.ts:100


readonly live: boolean

Defined in: sdk/src/render/draw.ts:102

False once released, or once the engine that holds it has been shut down.


readonly vertexCount: number

Defined in: sdk/src/render/draw.ts:99

release(): void

Defined in: sdk/src/render/draw.ts:104

Gives its memory back to the engine. Safe to call more than once.

void