mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
The contract text speaks of the renderer
This commit is contained in:
1 parent
9862b2a165
commit
256e992372
17 files changed
+33
-32
No files matched your search
Vendored
+2
-2
@@ -55,7 +55,7 @@ export interface CameraPose {
|
||||
/**
|
||||
* Vertical field of view, radians. `fovy` and `aspectRatio` describe a
|
||||
* centred perspective frustum. Where the renderer's frustum is off-centre or
|
||||
* orthographic reports the nearest centred one here and its exact
|
||||
* orthographic, it reports the nearest centred one here and its exact
|
||||
* projection only in `matrices()`; code that culls or projects exactly
|
||||
* reads `matrices()`.
|
||||
*/
|
||||
@@ -147,7 +147,7 @@ export interface FollowTarget {
|
||||
visualPosition?(t: number): Ecef | null;
|
||||
/**
|
||||
* The drawn item this target is, when it is one. Where the renderer moves
|
||||
* items itself (`motionSegments`) follows where it draws the item, so the
|
||||
* items itself (`motionSegments`), it follows where it draws the item, so the
|
||||
* eye and the icon never part; `position` stays the answer elsewhere.
|
||||
*/
|
||||
item?: { set: string; id: string };
|
||||
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* Full-screen effects: visual styles, bloom, sharpen and screen modulation.
|
||||
* Each style is a plain full-screen pass over the frame's colour. The application owns
|
||||
* Each style is a plain full-screen pass over the frame's colour. The
|
||||
* application owns the styles and defines them on the renderer
|
||||
* renderer runs the same set; a renderer's own styles are extra ones.
|
||||
* (`defineStyle`); the renderer's own styles are extra ones.
|
||||
*/
|
||||
import type { Off } from './common';
|
||||
|
||||
|
||||
Vendored
+5
-6
@@ -208,12 +208,11 @@ export interface BaseStatus {
|
||||
/**
|
||||
* The sky. These switch parts of it on and off; they do not say how it
|
||||
* looks. How the sky, the atmosphere over the ground, distance haze, the
|
||||
* lighting and the tone mapping and exposure of the frame look is each
|
||||
* renderer's own, and no check compares colours with
|
||||
* another's. With `atmosphere`, `fog` and `lighting` off and clear weather,
|
||||
* a renderer applies none of its look: what is drawn shows its own colours.
|
||||
* A renderer whose sun, moon or fog are not separate from its
|
||||
* atmosphere follows `atmosphere` for them and reports them as it draws them.
|
||||
* lighting and the tone mapping and exposure of the frame look is the
|
||||
* renderer's own, and no check compares colours. With `atmosphere`, `fog`
|
||||
* and `lighting` off and clear weather, the renderer applies none of its
|
||||
* look: what is drawn shows its own colours. Where the renderer's sun, moon
|
||||
* or fog are not separate from its atmosphere, it follows `atmosphere` for them and reports them as it draws them.
|
||||
*/
|
||||
export interface SkySettings {
|
||||
atmosphere: boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -26,7 +26,7 @@
|
||||
*
|
||||
* A click is delivered with its pick already made, once, and shared by
|
||||
* every subscriber (`PointerEv.pick`). Where the renderer's picks answer a
|
||||
* or two late delivers the click that much later rather than answering
|
||||
* frame or two late, it delivers the click that much later rather than answering
|
||||
* without them; `query.pick` stays synchronous for everything else.
|
||||
*
|
||||
* The engine's stock behaviours (select on click, follow on double-click)
|
||||
|
||||
Vendored
+5
-5
@@ -34,9 +34,9 @@ export interface RendererPlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* What only some renderers have and the application uses where given, does
|
||||
* What the renderer's plugin hands the application beside the contract; the
|
||||
* application uses each where given and does without where not. None is a
|
||||
* do is in the ports.
|
||||
* contract member: what the renderer should do is in the ports.
|
||||
*/
|
||||
export interface ApplicationHooks {
|
||||
/**
|
||||
@@ -173,9 +173,9 @@ export interface Renderer {
|
||||
releaseUnused(): void;
|
||||
on(event: 'error', cb: (error: Error) => void): Off;
|
||||
/**
|
||||
* The drawing context was lost, or came back. A renderer that cannot restore its context
|
||||
* never sends `contextRestored`; the application then makes
|
||||
* a new renderer.
|
||||
* The drawing context was lost, or came back. Where the renderer cannot
|
||||
* restore its context it never sends `contextRestored`; the application
|
||||
* then makes a new renderer.
|
||||
*/
|
||||
on(event: 'contextLost' | 'contextRestored', cb: () => void): Off;
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user