Class Viewer4
The camera of four-dimensional scene
public class Viewer4 : MonoBehaviour4
Namespace Engine4
Remarks
A game engine needs a camera to display the scene output. Viewer is the camera. However, the output belongs to individual renderer, Hence only one viewer is allowed in scene.
Constructors
Viewer4()
public Viewer4()
Fields
background
Should renderers do the computation in separate thread? (experimental)
public bool background
Remarks
Changes to this variable requires a call to Validate() to take effect.
projection
Projection mode used by the viewer
public ProjectionMode projection
Remarks
Changes to this variable requires a call to Validate() to take effect.
update
Event to be called when something updated in viewer. By default it is filled by Viewer4
public static ViewerDispatch update
Properties
main
Main access to the Viewer4
public static Viewer4 main { get; }
projector
Get access to internal projector
public Projector4 projector { get; }
projectorJob
Get access to internal multithreaded projector
public ProjectorJob projectorJob { get; }
viewerToWorldMatrix
Camera to world matrix transformation
public Matrix4x5 viewerToWorldMatrix { get; }
worldToViewerMatrix
World to camera matrix transformation
public Matrix4x5 worldToViewerMatrix { get; }
Methods
SetDirty(DirtyLevel)
Force a global invalidation
public void SetDirty(DirtyLevel level)
Validate()
public void Validate()