Struct arctk::render::parameters::Parameters
source · [−]pub struct Parameters { /* private fields */ }
Expand description
Input configuration.
Implementations
sourceimpl Parameters
impl Parameters
sourcepub fn used_gradient_names(&self) -> Vec<String>
pub fn used_gradient_names(&self) -> Vec<String>
Get the names of the Gradient
s used.
sourcepub fn used_attribute_names(&self) -> Vec<String>
pub fn used_attribute_names(&self) -> Vec<String>
Get the names of the Attribute
s used.
sourcepub fn used_mesh_names(&self) -> Vec<String>
pub fn used_mesh_names(&self) -> Vec<String>
Get the names of the Meshes
s used.
sourcepub fn load_gradients(&self) -> HashMap<String, Gradient<LinSrgba>>
pub fn load_gradients(&self) -> HashMap<String, Gradient<LinSrgba>>
Load the dictionary of Gradients
.
sourcepub fn load_attributes<'a>(
&self,
grads: &'a HashMap<String, Gradient<LinSrgba>>
) -> HashMap<String, Attribute<'a>>
pub fn load_attributes<'a>(
&self,
grads: &'a HashMap<String, Gradient<LinSrgba>>
) -> HashMap<String, Attribute<'a>>
Load the dictionary of Attributes
.
sourcepub fn load_meshes(&self) -> HashMap<String, Mesh>
pub fn load_meshes(&self) -> HashMap<String, Mesh>
Load the dictionary of Meshes
.
sourcepub fn load_surfaces<'a>(
&self,
meshes: &HashMap<String, Mesh>,
attributes: &'a HashMap<String, Attribute<'_>>
) -> Vec<Surface<'_, Attribute<'a>>>
pub fn load_surfaces<'a>(
&self,
meshes: &HashMap<String, Mesh>,
attributes: &'a HashMap<String, Attribute<'_>>
) -> Vec<Surface<'_, Attribute<'a>>>
Load the Surface
s.
sourcepub fn build_shader<'a>(
&self,
grads: &'a HashMap<String, Gradient<LinSrgba>>
) -> Shader<'a>
pub fn build_shader<'a>(
&self,
grads: &'a HashMap<String, Gradient<LinSrgba>>
) -> Shader<'a>
Build the Shader
.
sourcepub fn build_settings(&self) -> Settings
pub fn build_settings(&self) -> Settings
Build the Settings
.
sourcepub fn build_camera(&self) -> Camera
pub fn build_camera(&self) -> Camera
Build the Camera
s.
sourcepub fn build_tree<'a, T>(&self, surfs: &'a [Surface<'_, T>]) -> Tree<'a, T>
pub fn build_tree<'a, T>(&self, surfs: &'a [Surface<'_, T>]) -> Tree<'a, T>
Build the Tree
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Parameters
impl<'de> Deserialize<'de> for Parameters
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
sourcefn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourcefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
sourcefn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more