Creates an instance of ImmediateLitMeshContext and begins an immediate-mode rendering session.
The TSciChart3D WebAssembly context.
The render mode (triangles, triangle-strip, lines etc.) for the submitted geometry.
Submits the accumulated geometry to the native provider for rendering, then releases native resources.
Sets the normal applied to subsequently emitted vertices, used by the lighting model.
Sets the selection identifier applied to subsequently emitted vertices.
Emits a vertex at the given X,Y,Z position using the current normal / texcoord / color / selection state.
Sets the color applied to subsequently emitted vertices.
Either an HTML/CSS color string (e.g. "#FF6600") or a 32-bit ARGB number.
Sets the texture coordinate applied to subsequently emitted vertices.
Generated using TypeDoc
A drawing context which builds and draws a dynamic 3D lit (normal-carrying) mesh on the fly.
This is the TypeScript / WebAssembly equivalent of the WPF
ImmediateLitMeshContext. It is a thin wrapper around the native {@link SCRTImmediateLitMeshDrawingProvider}: the JS side only accumulates plain vertex data (position / normal / texcoord / color / selection id) and passes it as a struct; all command-buffer, pipeline and material handling happens natively inside the provider.Build geometry one vertex at a time — set the per-vertex attributes (normal3 / texCoord2 / setVertexColor / setSelectionId) then call setVertex3, which emits a vertex using the current attribute state. Call dispose to submit the draw call and release native resources.
const ctx = new ImmediateLitMeshContext(wasmContext, renderMode); ctx.normal3(0, 1, 0); ctx.setVertexColor("#FF6600"); ctx.setVertex3(x, y, z); // emits a vertex // ...more vertices... ctx.dispose(); // submits the mesh