oa::render::SceneNode

One hierarchy node that optionally instances a mesh. local_transform is the donor oa::Transform localTransform — a TRS semantic value, not a raw matrix. material overrides the renderer’s default material for this node. None falls back to FlatColor { color: [0.8, 0.8, 0.8, 1.0] } at draw time.

StRust public API

Declaration

pub struct SceneNode { pub id: SceneNodeId, pub name: String, pub parent: SceneNodeId, pub mesh: SceneMeshId, pub material: Option<MaterialId>, pub local_transform: Transform, pub visible: bool, }
Public Rust declaration.

Public Methods

fn clone(&self) -> SceneNode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &SceneNode) -> bool

Public Data Members

idSceneNodeIdfield
nameStringfield
parentSceneNodeIdfield
meshSceneMeshIdfield
materialOption<MaterialId>field
local_transformTransformfield
visibleboolfield

Public Method Documentation

fn clone( &self ) -> SceneNode
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &SceneNode ) -> bool
No public source comment is attached to this declaration.