mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
bitflags 2
This commit is contained in:
parent
8d8f7e6158
commit
31fc82bbdb
5 changed files with 29 additions and 19 deletions
|
|
@ -102,10 +102,12 @@ impl MeshHeader {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Zeroable, Pod, Debug)]
|
||||
#[repr(C)]
|
||||
pub struct MeshFlags(u8);
|
||||
|
||||
bitflags! {
|
||||
#[derive(Zeroable, Pod)]
|
||||
#[repr(C)]
|
||||
pub struct MeshFlags: u8 {
|
||||
impl MeshFlags: u8 {
|
||||
const IS_TEETH = 0x01;
|
||||
const IS_EYES = 0x02;
|
||||
}
|
||||
|
|
@ -149,10 +151,12 @@ impl StripGroupHeader {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Zeroable, Pod, Debug)]
|
||||
#[repr(C)]
|
||||
pub struct StripGroupFlags(u8);
|
||||
|
||||
bitflags! {
|
||||
#[derive(Zeroable, Pod)]
|
||||
#[repr(C)]
|
||||
pub struct StripGroupFlags: u8 {
|
||||
impl StripGroupFlags: u8 {
|
||||
const IS_FLEXED = 0x01;
|
||||
const IS_HWSKINNED = 0x02;
|
||||
const IS_DELTA_FLEXED = 0x04;
|
||||
|
|
@ -176,10 +180,12 @@ pub struct StripHeader {
|
|||
|
||||
static_assertions::const_assert_eq!(size_of::<StripHeader>(), 27);
|
||||
|
||||
#[derive(Clone, Copy, Zeroable, Pod, Debug)]
|
||||
#[repr(C)]
|
||||
pub struct StripFlags(u8);
|
||||
|
||||
bitflags! {
|
||||
#[derive(Zeroable, Pod)]
|
||||
#[repr(C)]
|
||||
pub struct StripFlags: u8 {
|
||||
impl StripFlags: u8 {
|
||||
const IS_TRI_LIST = 0x01;
|
||||
const IS_TRI_STRIP = 0x02;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue