Struct rin::graphics::mvp::ModelMatrices [−][src]
pub struct ModelMatrices { /* fields omitted */ }
Implementations
impl ModelMatrices
[src]
impl ModelMatrices
[src]pub fn from_model<M>(model: M) -> ModelMatrices where
M: Into<Model>,
[src]
M: Into<Model>,
pub fn from_model_normal<M>(
model: M,
normal: &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
) -> ModelMatrices where
M: Into<Model>,
[src]
model: M,
normal: &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
) -> ModelMatrices where
M: Into<Model>,
pub fn id(&self) -> usize
[src]
pub fn model(
&self
) -> &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
[src]
&self
) -> &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
pub fn normal(
&self
) -> &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
[src]
&self
) -> &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
pub fn uniforms(&self) -> Vec<Uniform, Global>ⓘ
[src]
pub fn uniforms_cache(program: &Program) -> UniformsLocationCache
[src]
impl ModelMatrices
[src]
impl ModelMatrices
[src]pub fn from_program(program: &Program) -> UniformsLocationCache
[src]
pub fn from_program_non_strict(program: &Program) -> UniformsLocationCache
[src]
Trait Implementations
impl Clone for ModelMatrices
[src]
impl Clone for ModelMatrices
[src]pub 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]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ModelMatrices, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<ModelMatrices, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for ModelMatrices
[src]
impl Serialize for ModelMatrices
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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>,