From 82ea33ae7fb13bcc5d1c69d8666bce176e6a9c7e Mon Sep 17 00:00:00 2001 From: Moritz Willy Becher Date: Mon, 23 Nov 2020 16:53:31 +0100 Subject: [PATCH] add headless GL example --- documentation/enhanced_usability_proposal.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/enhanced_usability_proposal.md b/documentation/enhanced_usability_proposal.md index b64ec298..f20138b9 100644 --- a/documentation/enhanced_usability_proposal.md +++ b/documentation/enhanced_usability_proposal.md @@ -16,6 +16,12 @@ The GltfView component is associated with one WebGL2 context. In practice this m const view = new GltfView(canvas); ``` +One could also create a headless view with code like the following. *Note that the signature might change in the final API* + +```js +const view = new GltfView(hedlessGlContext); +``` + The view is also used to render frames, either on every window repaint event or on demand, e.g. when taking a frame capture. ```js