Skip to content

Commit

Permalink
add headless GL example
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-becher committed Nov 23, 2020
1 parent 532b2c2 commit 82ea33a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/enhanced_usability_proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82ea33a

Please sign in to comment.