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.
Properties
Section titled “Properties”indexCount
Section titled “indexCount”
readonlyindexCount:number
Defined in: sdk/src/render/draw.ts:100
readonlylive:boolean
Defined in: sdk/src/render/draw.ts:102
False once released, or once the engine that holds it has been shut down.
vertexCount
Section titled “vertexCount”
readonlyvertexCount:number
Defined in: sdk/src/render/draw.ts:99
Methods
Section titled “Methods”release()
Section titled “release()”release():
void
Defined in: sdk/src/render/draw.ts:104
Gives its memory back to the engine. Safe to call more than once.
Returns
Section titled “Returns”void