Material

Struct Material 

Source
#[repr(C, packed(4))]
pub struct Material {
Show 42 fields pub id: ID, pub adt: Pointer<AnimData>, pub flag: i16, pub _pad1: [i8; 2], pub r: f32, pub g: f32, pub b: f32, pub a: f32, pub specr: f32, pub specg: f32, pub specb: f32, pub alpha: f32, pub ray_mirror: f32, pub spec: f32, pub gloss_mir: f32, pub roughness: f32, pub metallic: f32, pub use_nodes: i8, pub pr_type: i8, pub pr_texture: i16, pub pr_flag: i16, pub index: i16, pub nodetree: Pointer<bNodeTree>, pub ipo: Pointer<Ipo>, pub preview: Pointer<PreviewImage>, pub line_col: [f32; 4], pub line_priority: i16, pub vcol_alpha: i16, pub paint_active_slot: i16, pub paint_clone_slot: i16, pub tot_slots: i16, pub _pad2: [i8; 2], pub alpha_threshold: f32, pub refract_depth: f32, pub blend_method: i8, pub blend_shadow: i8, pub blend_flag: i8, pub _pad3: [i8; 1], pub texpaintslot: Pointer<TexPaintSlot>, pub gpumaterial: ListBase, pub gp_style: Pointer<MaterialGPencilStyle>, pub lineart: MaterialLineArt,
}

Fields§

§id: ID§adt: Pointer<AnimData>§flag: i16§_pad1: [i8; 2]§r: f32§g: f32§b: f32§a: f32§specr: f32§specg: f32§specb: f32§alpha: f32§ray_mirror: f32§spec: f32§gloss_mir: f32§roughness: f32§metallic: f32§use_nodes: i8§pr_type: i8§pr_texture: i16§pr_flag: i16§index: i16§nodetree: Pointer<bNodeTree>§ipo: Pointer<Ipo>§preview: Pointer<PreviewImage>§line_col: [f32; 4]§line_priority: i16§vcol_alpha: i16§paint_active_slot: i16§paint_clone_slot: i16§tot_slots: i16§_pad2: [i8; 2]§alpha_threshold: f32§refract_depth: f32§blend_method: i8§blend_shadow: i8§blend_flag: i8§_pad3: [i8; 1]§texpaintslot: Pointer<TexPaintSlot>§gpumaterial: ListBase§gp_style: Pointer<MaterialGPencilStyle>§lineart: MaterialLineArt

Trait Implementations§

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> 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, 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.