Skip to main content

_dwg_object_MATERIAL

Struct _dwg_object_MATERIAL 

Source
#[repr(C)]
pub struct _dwg_object_MATERIAL {
Show 38 fields pub parent: *mut _dwg_object_object, pub name: BITCODE_TV, pub description: BITCODE_TV, pub ambient_color: Dwg_MATERIAL_color, pub diffuse_color: Dwg_MATERIAL_color, pub diffusemap: Dwg_MATERIAL_mapper, pub specular_gloss_factor: BITCODE_BD, pub specular_color: Dwg_MATERIAL_color, pub specularmap: Dwg_MATERIAL_mapper, pub reflectionmap: Dwg_MATERIAL_mapper, pub opacity_percent: BITCODE_BD, pub opacitymap: Dwg_MATERIAL_mapper, pub bumpmap: Dwg_MATERIAL_mapper, pub refraction_index: BITCODE_BD, pub refractionmap: Dwg_MATERIAL_mapper, pub color_bleed_scale: BITCODE_BD, pub indirect_bump_scale: BITCODE_BD, pub reflectance_scale: BITCODE_BD, pub transmittance_scale: BITCODE_BD, pub two_sided_material: BITCODE_B, pub luminance: BITCODE_BD, pub luminance_mode: BITCODE_BS, pub translucence: BITCODE_BD, pub self_illumination: BITCODE_BD, pub reflectivity: BITCODE_BD, pub illumination_model: BITCODE_BL, pub channel_flags: BITCODE_BL, pub mode: BITCODE_BL, pub genprocname: BITCODE_TV, pub genproctype: BITCODE_BS, pub genprocvalbool: BITCODE_B, pub genprocvalint: BITCODE_BS, pub genprocvalreal: BITCODE_BD, pub genprocvaltext: BITCODE_TV, pub genprocvalcolor: BITCODE_CMC, pub genproctableend: BITCODE_B, pub num_gentextures: BITCODE_BS, pub gentextures: *mut Dwg_MATERIAL_gentexture,
}
Expand description

Object MATERIAL (varies) Acad Naming: e.g. Materials/assetlibrary_base.fbm/shaders/AdskShaders.mi Materials/assetlibrary_base.fbm/Mats/SolidGlass/Generic.xml

Fields§

§parent: *mut _dwg_object_object§name: BITCODE_TV

< DXF 1

§description: BITCODE_TV

< DXF 2 optional

§ambient_color: Dwg_MATERIAL_color

< DXF 70, 40, 90

§diffuse_color: Dwg_MATERIAL_color

< DXF 71, 41, 91

§diffusemap: Dwg_MATERIAL_mapper

< DXF 42, 72, 3, 73, 74, 75, 43

§specular_gloss_factor: BITCODE_BD

< DXF 44 def: 0.5

§specular_color: Dwg_MATERIAL_color

< DXF 76, 45, 92

§specularmap: Dwg_MATERIAL_mapper

< DXF 46, 77, 4, 78, 79, 170, 47

§reflectionmap: Dwg_MATERIAL_mapper

< DXF 48, 171, 6, 172, 173, 174, 49

§opacity_percent: BITCODE_BD

< DXF 140 def: 1.0

§opacitymap: Dwg_MATERIAL_mapper

< DXF 141, 175, 7, 176, 177, 178, 142

§bumpmap: Dwg_MATERIAL_mapper

< DXF 143, 179, 8, 270, 271, 272, 144

§refraction_index: BITCODE_BD

< DXF 145 def: 1.0

§refractionmap: Dwg_MATERIAL_mapper

< DXF 146, 273, 9, 274, 275, 276, 147

§color_bleed_scale: BITCODE_BD

< DXF 460

§indirect_bump_scale: BITCODE_BD

< DXF 461

§reflectance_scale: BITCODE_BD

< DXF 462

§transmittance_scale: BITCODE_BD

< DXF 463

§two_sided_material: BITCODE_B

< DXF 290

§luminance: BITCODE_BD

< DXF 464

§luminance_mode: BITCODE_BS

< DXF 270

§translucence: BITCODE_BD

< DXF 148

§self_illumination: BITCODE_BD

< DXF 149

§reflectivity: BITCODE_BD

< DXF 468

§illumination_model: BITCODE_BL

< DXF 93

§channel_flags: BITCODE_BL

< DXF 94

§mode: BITCODE_BL

< DXF 282

§genprocname: BITCODE_TV

< DXF 300

§genproctype: BITCODE_BS§genprocvalbool: BITCODE_B

< DXF 291

§genprocvalint: BITCODE_BS

< DXF 271

§genprocvalreal: BITCODE_BD

< DXF 469

§genprocvaltext: BITCODE_TV

< DXF 301

§genprocvalcolor: BITCODE_CMC

< DXF 62

§genproctableend: BITCODE_B

< DXF 292

§num_gentextures: BITCODE_BS§gentextures: *mut Dwg_MATERIAL_gentexture

Trait Implementations§

Source§

impl Clone for _dwg_object_MATERIAL

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for _dwg_object_MATERIAL

Source§

impl Debug for _dwg_object_MATERIAL

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for _dwg_object_MATERIAL

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.