Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method TextureCreator.prototype.createTextureFromSurface
import { TextureCreator } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

Create a texture from a surface.

Parameters

surface: Surface

the surface used to create the texture

Returns

a Texture object