DtMeshHeader

Struct DtMeshHeader 

Source
#[repr(C)]
pub struct DtMeshHeader {
Show 19 fields pub x: c_int, pub y: c_int, pub layer: c_int, pub user_id: c_uint, pub poly_count: c_int, pub vert_count: c_int, pub max_link_count: c_int, pub detail_mesh_count: c_int, pub detail_vert_count: c_int, pub detail_tri_count: c_int, pub bv_node_count: c_int, pub off_mesh_con_count: c_int, pub off_mesh_base: c_int, pub walkable_height: c_float, pub walkable_radius: c_float, pub walkable_climb: c_float, pub bmin: [c_float; 3], pub bmax: [c_float; 3], pub bv_quant_factor: c_float, /* private fields */
}

Fields§

§x: c_int

Tile data format version number.

§y: c_int

The x-position of the tile within the dtNavMesh tile grid. (x, y, layer)

§layer: c_int

The y-position of the tile within the dtNavMesh tile grid. (x, y, layer)

§user_id: c_uint

The layer of the tile within the dtNavMesh tile grid. (x, y, layer)

§poly_count: c_int

The user defined id of the tile.

§vert_count: c_int

The number of polygons in the tile.

§max_link_count: c_int

The number of vertices in the tile.

§detail_mesh_count: c_int

The number of allocated links.

§detail_vert_count: c_int

The number of sub-meshes in the detail mesh. The number of unique vertices in the detail mesh. (In addition to the polygon vertices.)

§detail_tri_count: c_int§bv_node_count: c_int

The number of triangles in the detail mesh.

§off_mesh_con_count: c_int

The number of bounding volume nodes. (Zero if bounding volumes are disabled.)

§off_mesh_base: c_int

The number of off-mesh connections.

§walkable_height: c_float

The index of the first polygon which is an off-mesh connection.

§walkable_radius: c_float

The height of the agents using the tile.

§walkable_climb: c_float

The radius of the agents using the tile.

§bmin: [c_float; 3]

The maximum climb height of the agents using the tile.

§bmax: [c_float; 3]

The minimum bounds of the tile’s AABB. [(x, y, z)]

§bv_quant_factor: c_float

The maximum bounds of the tile’s AABB. [(x, y, z)] The bounding volume quantization factor.

Implementations§

Source§

impl DtMeshHeader

Source

pub fn from_bytes(buffer: &[u8]) -> Result<Self, ()>

Trait Implementations§

Source§

impl Clone for DtMeshHeader

Source§

fn clone(&self) -> DtMeshHeader

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DtMeshHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Zeroable for DtMeshHeader

Source§

fn zeroed() -> Self

Source§

impl AnyBitPattern for DtMeshHeader

Source§

impl Copy for DtMeshHeader

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.