Interface BCFSnapshotSource

Minimal snapshot capability saveBCFViewpoint needs to populate BCFViewpoint.snapshot. Structurally satisfied by WebGLRenderer (and any other renderer that implements getSnapshot(view) returning a data:image/png;base64,… URL).

Declared structurally rather than imported from webGLRenderer to keep the bcf module free of a renderer dependency.

interface BCFSnapshotSource {
    getSnapshot(view: View): SDKResult<string>;
}

Methods

Methods