Byte Engine Docs
View on docs.rs

camera

Generated Rust API reference for byte_engine.

byte_engine / rendering / camera


Module camera

Camera state used to derive scene views.

Quick Reference

ItemKindDescription
CamerastructThe Camera struct provides scene-owned world-space view settings to render sinks and inspection tools.

Structs

Camera

struct Camera {
    // [REDACTED: Private Fields]
}

Defined in crates/byte-engine/src/rendering/camera.rs:3-8

The Camera struct provides scene-owned world-space view settings to render sinks and inspection tools.

Implementations

  • fn new() -> Self

    Creates a camera with a world-origin position and default perspective settings.

  • fn vertical_fov(&self) -> Degrees

    Returns the camera's vertical field of view.

  • fn aspect_ratio(&self) -> f32

    Returns the camera's width-to-height aspect ratio.

  • fn aperture(&self) -> f32

    Returns the camera aperture.

  • fn focus_distance(&self) -> f32

    Returns the camera focus distance.

  • fn with_fov(self, fov: Degrees) -> Self

    Sets the vertical field of view used by perspective rendering.

  • fn set_fov(&mut self, fov: Degrees)

    Sets the vertical field of view used by perspective rendering.

Trait Implementations

impl ArchivePointee for Camera
  • type ArchivedMetadata = ()
  • fn pointer_metadata(_: &<T as ArchivePointee>::ArchivedMetadata) -> <T as Pointee>::Metadata
impl<ST> CastableFrom for Camera
impl Clone for Camera
  • fn clone(&self) -> Camera

    Related: Camera

impl Debug for Camera
  • fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Default for Camera
  • fn default() -> Self
impl Downcast for Camera
  • fn into_any(self: Box<T>) -> Box<dyn Any>
  • fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
  • fn as_any(&self) -> &dyn Any
  • fn as_any_mut(&mut self) -> &mut dyn Any
impl DowncastSend for Camera
  • fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
impl DowncastSync for Camera
  • fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
impl Inspectable for Camera
  • fn as_string(&self) -> String
  • fn set(&mut self, key: &str, value: &str) -> Result<(), String>
impl Instrument for Camera
impl LayoutRaw for Camera
  • fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T, N1> Niching for Camera
  • unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
  • fn resolve_niched(out: Place<NichedOption<T, N1>>)
impl Pointable for Camera
  • const ALIGN: usize
  • type Init = T
  • unsafe fn init(init: <T as Pointable>::Init) -> usize
  • unsafe fn deref<'a>(ptr: usize) -> &'a T
  • unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
  • unsafe fn drop(ptr: usize)
impl Pointee for Camera
  • type Metadata = ()
impl Read for Camera
impl<R> ReadPrimitive for Camera
impl WithSubscriber for Camera

On this page