API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classWebGl2RenderBuffer

@codexo/exojs / rendering / stable

Backend-agnostic GPU buffer descriptor. Holds the buffer type (`ArrayBuffer` / `ElementArrayBuffer`), usage hint (`Static` / `Dynamic` / `Stream`), the typed-array CPU-side data, and a version counter so the runtime can detect mutations and re-upload lazily. The actual `WebGLBuffer` lifecycle is managed by the runtime binding via WebGl2RenderBufferRuntime.

4
props
5
methods
0
events
Import
import { WebGl2RenderBuffer } from '@codexo/exojs'

Backend-agnostic GPU buffer descriptor. Holds the buffer type (`ArrayBuffer` / `ElementArrayBuffer`), usage hint (`Static` / `Dynamic` / `Stream`), the typed-array CPU-side data, and a version counter so the runtime can detect mutations and re-upload lazily. The actual `WebGLBuffer` lifecycle is managed by the runtime binding via WebGl2RenderBufferRuntime.

Constructors 1
new(type: BufferTypes, data: DataContainer, usage: BufferUsage): WebGl2RenderBuffer
Methods 5
bind(): void
connect(runtime: WebGl2RenderBufferRuntime): this
destroy(): void
disconnect(): this
upload(data: DataContainer, offset: number): void
Properties 4
data: DataContainer
type: number
usage: BufferUsage
version: number
Source