Struct cem::v2::Frame
[−]
[src]
pub struct Frame { pub vertices: Vec<Vertex>, pub tag_points: Vec<Point3<f32>>, pub transform: Matrix4<f32>, pub collider: Collider, }
A single frame of this model's animations. This contains the raw geometry data for the model. Includes the AABB and radius for physics, the vertices, tag point positions, and a relative transform to be applied before rendering. This is made up entirely of 32-bit floating point data.
Fields
vertices: Vec<Vertex>
tag_points: Vec<Point3<f32>>
transform: Matrix4<f32>
collider: Collider
Methods
impl Frame
[src]
fn from_vertices(
vertices: Vec<Vertex>,
tag_points: Vec<Point3<f32>>,
center: Point3<f32>
) -> Self
[src]
vertices: Vec<Vertex>,
tag_points: Vec<Point3<f32>>,
center: Point3<f32>
) -> Self
fn read<R>(
r: &mut R,
vertex_count: usize,
tag_point_count: usize
) -> Result<Self> where
R: Read,
[src]
r: &mut R,
vertex_count: usize,
tag_point_count: usize
) -> Result<Self> where
R: Read,
fn write<W>(&self, w: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,