forked from Blendman974/faceclaw
Add Glanceboard depth setting
This commit is contained in:
1 parent
71c1971992
commit
915f155819
29 files changed
+262
-50
No files matched your search
@@ -550,6 +550,16 @@ export class FaceclawCommunicatorBridge {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Stereo depth for a surface, applied while it is the topmost visible
|
||||
* surface and opaquely covers the screen; takes effect at its next frame.
|
||||
*/
|
||||
async setSurfaceDepth(id: string, depth: number): Promise<void> {
|
||||
await this.enqueueJavaCall(() => {
|
||||
this.communicator.setSurfaceDepth(id, Math.round(depth));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Blank (screen off) or unblank the composited output; retained surface
|
||||
* state survives, so unblanking restores the screen without repaints.
|
||||
|
||||
Reference in new issue
Block a user