Constructors

Properties

drawOps: DrawOps

Active drawing operations (shader programs + draw routines).

Populated during init and returned to the pool during destroy.

Used internally, but made public to support diagnostics and testing.

infiniteGrid: InfiniteGridRenderer

Infinite ground grid renderer. Set InfiniteGridRenderer.enabled to true to activate.

skyRenderer: SkyRenderer

Sky/environment renderer.

Methods

  • Reinitializes everything that holds GL state after a context restore.

    Context loss invalidates every GPU resource — programs, textures, framebuffers, renderbuffers — across the whole renderer. drawOps has its own in-place restore hook (the program pool is shared, so it needs to recompile rather than be reconstructed); everything else (sky, grid, SAO pipeline, shadow pipeline, post-process chain) is torn down and re-initialised through init so each owner walks back through its own lazy-construction path with a fresh GL context.

    Returns SDKResult<void>