FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_media3d

    module · ferroui-media3d · v0.5.0

    module ferroui_media3d
    

    WPF-style 3D for FerroUI (#608, docs/porting/media3d.md).

    The values of System.Windows.Media.Media3D, with WPF's names and behaviour and Rust types: Point3D, Vector3D, Size3D, Rect3D, Point4D, Matrix3D and Quaternion, with double-precision components (narrowed to single precision only when a scene is handed to the GPU). Their operators are the traits of std::ops, the members WPF guards with exceptions return a Result, and each value parses and writes WPF's text form in the invariant culture ("0,0,5", "Identity", "Empty"), which is also the form markup writes them in.

    The scene model of Viewport3D, with WPF's classes and properties:

    A Viewport3DVisual compiles its scene into an immutable Scene3DSnapshot (world matrices, shared meshes, material layers, lights in world space, the camera with its planes fitted to the scene, and three generations), which Viewport3D draws through the render-data operation DrawScene3D; the renderers are in another crate.

    register_types adds the classes, the markup metadata of the values and collections (their text converters) and the XML namespace of the framework to the tables of the markup loader.

    View source

    Contents

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.