Struct octoon::materials::standard::StandardMaterial
source · pub struct StandardMaterial {
pub uuid: Uuid,
pub attribs: Vec<VertexAttrib>,
pub uniforms: HashMap<String, Variant>,
}
Fields
uuid: Uuid
attribs: Vec<VertexAttrib>
uniforms: HashMap<String, Variant>
Implementations
Trait Implementations
sourceimpl Debug for StandardMaterial
impl Debug for StandardMaterial
sourceimpl From<StandardMaterial> for Arc<RefCell<dyn Material + 'static>>
impl From<StandardMaterial> for Arc<RefCell<dyn Material + 'static>>
sourcefn from(material: StandardMaterial) -> Self
fn from(material: StandardMaterial) -> Self
Converts to this type from the input type.
sourceimpl From<StandardMaterial> for Arc<dyn Material + 'static>
impl From<StandardMaterial> for Arc<dyn Material + 'static>
sourcefn from(material: StandardMaterial) -> Self
fn from(material: StandardMaterial) -> Self
Converts to this type from the input type.
sourceimpl From<StandardMaterial> for Rc<RefCell<dyn Material + 'static>>
impl From<StandardMaterial> for Rc<RefCell<dyn Material + 'static>>
sourcefn from(material: StandardMaterial) -> Self
fn from(material: StandardMaterial) -> Self
Converts to this type from the input type.
sourceimpl From<StandardMaterial> for Rc<dyn Material + 'static>
impl From<StandardMaterial> for Rc<dyn Material + 'static>
sourcefn from(material: StandardMaterial) -> Self
fn from(material: StandardMaterial) -> Self
Converts to this type from the input type.
sourceimpl Material for StandardMaterial
impl Material for StandardMaterial
fn input_layout(&self) -> &[VertexAttrib]
fn uniforms(&self) -> &HashMap<String, Variant>
fn set_uniform(&mut self, name: &str, value: Variant)
fn vs(&self) -> &str
fn fs(&self) -> &str
fn blend_enable(&self) -> bool
fn blend_op(&self) -> BlendOp
fn blend_src(&self) -> BlendFactor
fn blend_dest(&self) -> BlendFactor
fn blend_alpha_op(&self) -> BlendOp
fn blend_alpha_src(&self) -> BlendFactor
fn blend_alpha_dest(&self) -> BlendFactor
fn color_write_mask(&self) -> u32
fn polygon_mode(&self) -> PolygonMode
fn depth_enable(&self) -> bool
fn depth_write_enable(&self) -> bool
fn depth_func(&self) -> ComparisonFunc
fn cull_mode(&self) -> CullMode
fn line_width(&self) -> f32
fn front_face(&self) -> FrontFace
Auto Trait Implementations
impl RefUnwindSafe for StandardMaterial
impl Send for StandardMaterial
impl Sync for StandardMaterial
impl Unpin for StandardMaterial
impl UnwindSafe for StandardMaterial
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.