Struct rin_graphics::mvp::ModelMatrices [−][src]
pub struct ModelMatrices { /* fields omitted */ }
Implementations
impl ModelMatrices
[src]
impl ModelMatrices
[src]pub fn from_program(program: &Program) -> UniformsLocationCache
[src]
pub fn from_program_non_strict(program: &Program) -> UniformsLocationCache
[src]
impl ModelMatrices
[src]
impl ModelMatrices
[src]pub fn from_model<M: Into<Model>>(model: M) -> ModelMatrices
[src]
pub fn from_model_normal<M: Into<Model>>(
model: M,
normal: &Mat4
) -> ModelMatrices
[src]
model: M,
normal: &Mat4
) -> ModelMatrices
pub fn id(&self) -> usize
[src]
pub fn model(&self) -> &Mat4
[src]
pub fn normal(&self) -> &Mat4
[src]
pub fn uniforms(&self) -> Vec<Uniform>
[src]
pub fn uniforms_cache(program: &Program) -> UniformsLocationCache
[src]
Trait Implementations
impl Clone for ModelMatrices
[src]
impl Clone for ModelMatrices
[src]fn clone(&self) -> ModelMatrices
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ModelMatrices
[src]
impl<'de> Deserialize<'de> for ModelMatrices
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ModelMatrices
[src]
impl Serialize for ModelMatrices
[src]Auto Trait Implementations
impl !RefUnwindSafe for ModelMatrices
impl Send for ModelMatrices
impl !Sync for ModelMatrices
impl Unpin for ModelMatrices
impl UnwindSafe for ModelMatrices
Blanket Implementations
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,