mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
Hand the application the renderer's own engine
An application may draw with a renderer's engine directly beside the
contract. ApplicationHooks gains engine, whose kind names the engine;
Cesium's plugin hands {kind: 'cesium', viewer}. An application draws only
with engines whose kind it knows, and what it draws is its own to add,
update and remove.
This commit is contained in:
1 parent
96fac711f4
commit
0e6973e0b2
5 files changed
+21
-1
No files matched your search
@@ -14,6 +14,11 @@
|
||||
* - `viewerDrawsEntity(entity)`: whether an entity is one the renderer draws
|
||||
* itself (Cockpit asks whether the aircraft it flies still draws).
|
||||
* - `qaHandles`: values QA scripts read from `window.__godsEyeView`.
|
||||
* - `engine`: the renderer's own engine, for an application that draws with
|
||||
* it directly beside the contract: `kind` names it (`'cesium'`, with
|
||||
* `viewer`, Cesium's `Viewer`). An application draws only with engines
|
||||
* whose kind it knows; what it draws there is its own to add, update and
|
||||
* remove.
|
||||
* - `ownCreditDisplay`: true when the renderer shows its credits in a
|
||||
* display of its own; otherwise the application shows what its credits
|
||||
* port lists (`src/ui/creditsView.js`).
|
||||
|
||||
Reference in new issue
Block a user