Module all_is_cubes::camera
source · Expand description
Projection and view matrices, viewport and aspect ratio, visibility, raycasting into the scene, etc.
Structs§
- Defines a viewpoint in/of the world: a viewport (aspect ratio), projection matrix, and view matrix.
- Deficiencies of a rendering.
- Options for controlling rendering (not affecting gameplay except informationally).
- A collection of values associated with each of the layers of graphics that is normally drawn (HUD on top of world, currently) by
HeadlessRenderer
or other renderers. - Image container produced by a
HeadlessRenderer
. - Bundle of inputs specifying the “standard” configuration of
Camera
s and other things to render an All is Cubes scene and user interface. - Specifies what to render for the UI layer in front of the world.
- Viewport dimensions for rendering and UI layout with the correct resolution and aspect ratio.
Enums§
- Choices for
GraphicsOptions::antialiasing
. - “Camera exposure” control: selection of algorithm to control the scaling factor from scene luminance to displayed luminance. Part of a
GraphicsOptions
. - Unit-of-measure/coordinate-system type for points/vectors in “eye space”, the space of camera-relative coordinates that are not perspective-projected.
- Choices for
GraphicsOptions::fog
. - Unit-of-measure type for vectors representing the width and height of an image.
- How to display light in a
Space
; part of aGraphicsOptions
. - Unit-of-measure type for points/vectors in “normalized device coordinates” (where screen-space x and y have the range -1 to 1, zero is the center of the screen, and z is image depth rather than an equivalent third spatial axis).
- Unit-of-measure type for vectors representing the on-screen dimensions of a
Viewport
, which may be different from the “physical” pixels of the image rendered to it. - An error indicating that a
HeadlessRenderer
failed to operate. - Choices for
GraphicsOptions::render_method
. - Choices for
GraphicsOptions::tone_mapping
. - How to render transparent objects; part of a
GraphicsOptions
.
Traits§
- Rendering a previously-specified scene to an in-memory image.
Functions§
- Calculate an “eye position” (camera position) to view the entire given
bounds
.
Type Aliases§
- Width and height of an image, framebuffer, or window, as measured in actual distinct image pixels.
- Screen-space point in normalized device coordinates, with depth.
- Screen-space point in normalized device coordinates, with depth.
- Representation of a camera viewpoint and orientation.