#[repr(u8)]pub enum ObjectType {
Mesh = 0,
PointLight = 1,
DirectionalLight = 2,
LineSegments = 3,
Group = 4,
}Expand description
What kind of Three.js object to create for this entity.
Extracted as a u8 in the FramePacket. The TS renderer uses this
to pick the correct constructor (Mesh, PointLight, etc.).
Variants§
Mesh = 0
THREE.Mesh — the default for renderable entities.
PointLight = 1
THREE.PointLight — omni-directional light source.
DirectionalLight = 2
THREE.DirectionalLight — sun-like parallel light.
LineSegments = 3
THREE.LineSegments — debug line rendering.
Group = 4
THREE.Group — container for hierarchy.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
impl Component for ObjectType
impl Copy for ObjectType
Source§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl Default for ObjectType
impl Default for ObjectType
impl Eq for ObjectType
Source§impl Hash for ObjectType
impl Hash for ObjectType
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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