Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/caviar/deps.ts>WebGLRenderingContext#drawElements

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method WebGLRenderingContext.prototype.drawElements
import { WebGLRenderingContext } from "https://deno.land/x/caviar@2.6.7/deps.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