Constructors
constructor
Parameters
Properties
ctx
Methods
Abstract activateRenderTarget
- activateRenderTarget(target: <internal>.default): void
- activateRenderTarget(target: null, viewport: number[]): void
Parameters
Returns void
Parameters
target: null
viewport: number[]
Returns void
Abstract bindTexture
Parameters
Returns void
Abstract bindVertexBuffer
- bindVertexBuffer(key: string): void
Parameters
Returns void
Abstract clearRenderTarget
Parameters
Returns void
Abstract createEBO
Parameters
Optional bufferUsage?: BufferUsage
Optional byteLength?: number
Optional key?: any
Optional stride?: number
Abstract createProgram
Parameters
vertex: string
fragment: string
Abstract createRenderTarget
Parameters
Abstract createTexture
Parameters
props: Record<string, any>
Optional target: number
Abstract createVBO
Parameters
props: { bufferUsage?: BufferUsage; byteLength?: number; data: Record<string, unknown>; instance: <internal>.default; key?: any; stride?: number }
Optional bufferUsage?: BufferUsage
Optional byteLength?: number
data: Record<string, unknown>
Optional key?: any
Optional stride?: number
Abstract destroy
Returns void
Abstract draw
Parameters
Returns void
Abstract resize
- resize(width: number, height: number, ratio?: number): number[]
Parameters
width: number
height: number
Optional ratio: number
Returns number[]
Abstract setStates
- setStates(states: Record<string, any>): void
Parameters
Returns void
Abstract setViewport
- setViewport(x: number, y: number, width: number, height: number): number[]
Parameters
x: number
y: number
width: number
height: number
Returns number[]
Abstract uploadUniform
- uploadUniform(key: string, value: any): void
Parameters
Returns void
Abstract useProgram
Parameters
Returns void