pub struct ModelBuffers {
pub vertex_buffers: Vec<VertexBuffer>,
pub outline_buffers: Vec<OutlineBuffer>,
pub index_buffers: Vec<IndexBuffer>,
pub unk_buffers: Vec<UnkBuffer>,
pub unk_data: Option<UnkDataBuffer>,
pub weights: Option<Weights>,
}Expand description
See VertexData.
Fields§
§vertex_buffers: Vec<VertexBuffer>§outline_buffers: Vec<OutlineBuffer>§index_buffers: Vec<IndexBuffer>§unk_buffers: Vec<UnkBuffer>§unk_data: Option<UnkDataBuffer>§weights: Option<Weights>Implementations§
Source§impl ModelBuffers
impl ModelBuffers
Sourcepub fn from_vertex_data(vertex_data: &VertexData) -> BinResult<Self>
pub fn from_vertex_data(vertex_data: &VertexData) -> BinResult<Self>
Decode all the attributes from vertex_data.
Sourcepub fn from_vertex_data_legacy(
vertex_data: &VertexData,
endian: Endian,
) -> BinResult<Self>
pub fn from_vertex_data_legacy( vertex_data: &VertexData, endian: Endian, ) -> BinResult<Self>
Decode all the attributes from vertex_data.
Sourcepub fn to_vertex_data(&self) -> BinResult<VertexData>
pub fn to_vertex_data(&self) -> BinResult<VertexData>
Encode and write all data to a new VertexData.
Sourcepub fn to_vertex_data_legacy(&self) -> BinResult<VertexData>
pub fn to_vertex_data_legacy(&self) -> BinResult<VertexData>
Encode and write all data to a new VertexData.
Trait Implementations§
Source§impl Clone for ModelBuffers
impl Clone for ModelBuffers
Source§impl Debug for ModelBuffers
impl Debug for ModelBuffers
Source§impl PartialEq for ModelBuffers
impl PartialEq for ModelBuffers
impl StructuralPartialEq for ModelBuffers
Auto Trait Implementations§
impl Freeze for ModelBuffers
impl RefUnwindSafe for ModelBuffers
impl Send for ModelBuffers
impl Sync for ModelBuffers
impl Unpin for ModelBuffers
impl UnsafeUnpin for ModelBuffers
impl UnwindSafe for ModelBuffers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more