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

x/shader_canvas/core/webgl_textures/create_texture.ts>CreateTexture#initialize

A rendering engine where you can write WebGL 2.0 shaders using custom tags.
Latest
method CreateTexture.prototype.initialize
import { CreateTexture } from "https://deno.land/x/shader_canvas@v1.1.1/core/webgl_textures/create_texture.ts";

Initializing a texture consists in calling the initialization function for each child instance.

This function creates the bindTexture function above, which allows to set this texture id as the target for further WebGL actions

Parameters

gl: WebGL2RenderingContext