Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/src/renderers/webgl/util.ts>loadTexture

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
function loadTexture
import { loadTexture } from "https://deno.land/x/caviar@2.1.7/src/renderers/webgl/util.ts";

Parameters

image: HTMLImage
optional
level = [UNSUPPORTED]
optional
internalFormat = [UNSUPPORTED]
optional
border = [UNSUPPORTED]
optional
srcFormat = [UNSUPPORTED]
optional
srcType = [UNSUPPORTED]