Struct bevy_retrograde::core::luminance::texture::Cubemap [−]
pub struct Cubemap;
Expand description
Cubemap dimension.
Trait Implementations
impl Dimensionable for Cubemap
impl Dimensionable for Cubemap
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
pub const ZERO_OFFSET: <Cubemap as Dimensionable>::Offset
pub const ZERO_OFFSET: <Cubemap as Dimensionable>::Offset
Zero offset.
pub fn width(s: <Cubemap as Dimensionable>::Size) -> u32
pub fn width(s: <Cubemap as Dimensionable>::Size) -> u32
Width of the associated Dimensionable::Size
.
pub fn height(s: <Cubemap as Dimensionable>::Size) -> u32
pub fn height(s: <Cubemap as Dimensionable>::Size) -> u32
Height of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
pub fn depth(<Cubemap as Dimensionable>::Size) -> u32
pub fn depth(<Cubemap as Dimensionable>::Size) -> u32
Depth of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
pub fn x_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
pub fn x_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
X offset.
pub fn y_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
pub fn y_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
Y offset. If it doesn’t have one, set it to 0.
pub fn z_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
pub fn z_offset(off: <Cubemap as Dimensionable>::Offset) -> u32
Z offset. If it doesn’t have one, set it to 0.
Auto Trait Implementations
impl RefUnwindSafe for Cubemap
impl UnwindSafe for Cubemap
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V