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

x/caviar/src/entities/sprites/mod.ts>FrameBuffer

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class FrameBuffer
extends Entity
import { FrameBuffer } from "https://deno.land/x/caviar@2.5.5/src/entities/sprites/mod.ts";

Constructors

new
FrameBuffer(
world: World,
buffer: Uint8Array,
width?: number,
height?: number,
)

Properties

height: number
rawData: Uint8Array
requestStart: boolean
width: number

Methods

setBuffer(buffer: Uint8Array)