pub struct NodeFlag(pub i32);Expand description
Flags controlling node behavior and rendering
Bit flags. Combine with |, test with NodeFlag::contains.
Tuple Fields§
§0: i32Implementations§
Source§impl NodeFlag
impl NodeFlag
pub const NONE: Self
Sourcepub const DONT_INHERIT_TRANSLATION: Self
pub const DONT_INHERIT_TRANSLATION: Self
Don’t inherit parent translation
Sourcepub const DONT_INHERIT_SCALING: Self
pub const DONT_INHERIT_SCALING: Self
Don’t inherit parent scaling
Sourcepub const DONT_INHERIT_ROTATION: Self
pub const DONT_INHERIT_ROTATION: Self
Don’t inherit parent rotation
Sourcepub const BILLBOARDED: Self
pub const BILLBOARDED: Self
Always face camera
Sourcepub const BILLBOARDED_LOCK_X: Self
pub const BILLBOARDED_LOCK_X: Self
Billboard but lock X axis
Sourcepub const BILLBOARDED_LOCK_Y: Self
pub const BILLBOARDED_LOCK_Y: Self
Billboard but lock Y axis
Sourcepub const BILLBOARDED_LOCK_Z: Self
pub const BILLBOARDED_LOCK_Z: Self
Billboard but lock Z axis
Sourcepub const CAMERA_ANCHORED: Self
pub const CAMERA_ANCHORED: Self
Anchored to camera
Sourcepub const EVENT_OBJECT: Self
pub const EVENT_OBJECT: Self
This is an event object
Sourcepub const ATTACHMENT: Self
pub const ATTACHMENT: Self
This is an attachment
Sourcepub const PARTICLE_EMITTER: Self
pub const PARTICLE_EMITTER: Self
This is a particle emitter
Sourcepub const COLLISION_SHAPE: Self
pub const COLLISION_SHAPE: Self
This is a collision shape
Sourcepub const RIBBON_EMITTER: Self
pub const RIBBON_EMITTER: Self
This is a ribbon emitter
Sourcepub const EMITTER_USES_MDL: Self
pub const EMITTER_USES_MDL: Self
Particle emitter uses MDL model
Sourcepub const SORT_PRIMITIVES: Self
pub const SORT_PRIMITIVES: Self
Sort primitives (PE2/Popcorn)
Sourcepub const SORT_PRIMS_FAR_Z: Self
pub const SORT_PRIMS_FAR_Z: Self
Alias of SortPrimitives
Sourcepub const EMITTER_USES_TGA: Self
pub const EMITTER_USES_TGA: Self
Particle emitter uses TGA (PE only)
Sourcepub const LINE_EMITTER: Self
pub const LINE_EMITTER: Self
Line-shaped emitter (PE2)
Sourcepub const POPCORN_UNFOGGED: Self
pub const POPCORN_UNFOGGED: Self
Unfogged (Popcorn emitter)
Sourcepub const POPCORN_SCALING: Self
pub const POPCORN_SCALING: Self
Particle scaling (Popcorn emitter)
Sourcepub const MODEL_SPACE: Self
pub const MODEL_SPACE: Self
Use model space coordinates
pub const fn contains(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
impl Copy for NodeFlag
impl Eq for NodeFlag
impl StructuralPartialEq for NodeFlag
Auto Trait Implementations§
impl Freeze for NodeFlag
impl RefUnwindSafe for NodeFlag
impl Send for NodeFlag
impl Sync for NodeFlag
impl Unpin for NodeFlag
impl UnsafeUnpin for NodeFlag
impl UnwindSafe for NodeFlag
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