pub struct Material<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> Material<'a>
impl<'a> Material<'a>
pub const VT_NAME: VOffsetT = 4
pub const VT_AMBIENT_INTENSITY: VOffsetT = 6
pub const VT_DIFFUSE_COLOR: VOffsetT = 8
pub const VT_EMISSIVE_COLOR: VOffsetT = 10
pub const VT_SPECULAR_COLOR: VOffsetT = 12
pub const VT_SHININESS: VOffsetT = 14
pub const VT_TRANSPARENCY: VOffsetT = 16
pub const VT_IS_SMOOTH: VOffsetT = 18
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args MaterialArgs<'args>, ) -> WIPOffset<Material<'bldr>>
pub fn name(&self) -> &'a str
pub fn ambient_intensity(&self) -> Option<f64>
pub fn diffuse_color(&self) -> Option<Vector<'a, f64>>
pub fn emissive_color(&self) -> Option<Vector<'a, f64>>
pub fn specular_color(&self) -> Option<Vector<'a, f64>>
pub fn shininess(&self) -> Option<f64>
pub fn transparency(&self) -> Option<f64>
pub fn is_smooth(&self) -> Option<bool>
Trait Implementations§
Source§impl<'a> PartialEq for Material<'a>
impl<'a> PartialEq for Material<'a>
impl<'a> Copy for Material<'a>
impl<'a> StructuralPartialEq for Material<'a>
Auto Trait Implementations§
impl<'a> Freeze for Material<'a>
impl<'a> RefUnwindSafe for Material<'a>
impl<'a> Send for Material<'a>
impl<'a> Sync for Material<'a>
impl<'a> Unpin for Material<'a>
impl<'a> UnsafeUnpin for Material<'a>
impl<'a> UnwindSafe for Material<'a>
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