oa::render::MeshData

Indexed triangle-list mesh snapshot. bounds and bounds_dirty mirror the OA donor fields. Constructed values from mesh::create_* have up-to-date bounds; directly assembled MeshData values start with bounds_dirty = true and bounds = Aabb::default().

StRust public API

Declaration

pub struct MeshData { pub vertices: Vec<MeshVertex>, pub indices: Vec<u32>, pub bounds: Aabb, pub bounds_dirty: bool, }
Public Rust declaration.

Public Methods

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

Associated Functions

fn default() -> Self

Public Data Members

verticesVec<MeshVertex>field
indicesVec<u32>field
boundsAabbfield
bounds_dirtyboolfield

Public Method Documentation

fn clone( &self ) -> MeshData
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: &MeshData ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.