#[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: MaterialLineArtTrait Implementations§
Source§impl GeneratedBlendStruct for Material
impl GeneratedBlendStruct for Material
const BLEND_VERSION: Version
const BLEND_POINTER_SIZE: usize = 8usize
const BLEND_ENDIANNESS: Endianness = Endianness::Little
const STRUCT_NAME: &'static str = "Material"
const STRUCT_INDEX: usize = 61usize
const STRUCT_TYPE_INDEX: usize = 95usize
const IS_SYNTHETIC: bool = false
impl PointerTarget<Material> for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
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