AppGfxCtx:

lastDrawCalls: number

How many draw calls we're doing last frame

ggl: GfxCtx

The graphics context

defTex: Texture

Default texture

postShader: string | null

Post Shader, used in postEffect()

gscale: number

This is the scale factor that scales pixel "kaplay({ scale })"

bgTex: Texture

The background texture

viewport: Viewport

Where the game is rendered.

gl: WebGLRenderingContext

kaplay logo

Misc

Layer