pub struct QuantizedMeshEncoder { /* private fields */ }Expand description
Quantized mesh encoder.
Encodes terrain mesh data into the quantized-mesh-1.0 format.
Implementations§
Source§impl QuantizedMeshEncoder
impl QuantizedMeshEncoder
Sourcepub fn new(
header: QuantizedMeshHeader,
vertices: QuantizedVertices,
indices: Vec<u32>,
edge_indices: EdgeIndices,
) -> Self
pub fn new( header: QuantizedMeshHeader, vertices: QuantizedVertices, indices: Vec<u32>, edge_indices: EdgeIndices, ) -> Self
Create a new encoder with mesh data.
Sourcepub fn encode_with_options(&self, options: &EncodeOptions) -> Vec<u8> ⓘ
pub fn encode_with_options(&self, options: &EncodeOptions) -> Vec<u8> ⓘ
Encode with options (extensions, compression).
Sourcepub fn encode_to<W: Write>(&self, writer: W) -> Result<()>
pub fn encode_to<W: Write>(&self, writer: W) -> Result<()>
Encode to a writer without compression.
Sourcepub fn encode_to_with_options<W: Write>(
&self,
writer: W,
options: &EncodeOptions,
) -> Result<()>
pub fn encode_to_with_options<W: Write>( &self, writer: W, options: &EncodeOptions, ) -> Result<()>
Encode to a writer with options (extensions, compression).
Auto Trait Implementations§
impl Freeze for QuantizedMeshEncoder
impl RefUnwindSafe for QuantizedMeshEncoder
impl Send for QuantizedMeshEncoder
impl Sync for QuantizedMeshEncoder
impl Unpin for QuantizedMeshEncoder
impl UnsafeUnpin for QuantizedMeshEncoder
impl UnwindSafe for QuantizedMeshEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more