import { TextureCreator } from "https://deno.land/x/sdl2@0.9.0/mod.ts";
Create a texture for a rendering context.
Examples
Example 1
Example 1
const creator = canvas.textureCreator();
const texture = creator.createTexture(
PixelFormat.RGBA8888,
TextureAccess.Static,
640,
480,
);