Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#drawElements

OpenGL bindings & WebGL API implementation for Deno.
Latest
method WebGLRenderingContext.prototype.drawElements
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.7/mod.ts";

Draw using the currently bound element array buffer. The given offset is in bytes, and must be a valid multiple of the size of the given type or an INVALID_OPERATION error will be generated; in addition the offset must be non-negative or an INVALID_VALUE error will be generated; see Buffer Offset and Stride Requirements. If count is greater than zero, then a non-null WebGLBuffer must be bound to the ELEMENT_ARRAY_BUFFER binding point or an INVALID_OPERATION error will be generated.

Parameters

mode: number
count: number
type: number
offset: number