Struct nannou::draw::primitive::texture::Texture [−][src]
pub struct Texture { /* fields omitted */ }
Expand description
Properties related to drawing a Rect.
Implementations
Specify the area of the texture to draw.
The bounds of the rectangle should represent the desired area as texture coordinates of the underlying texture.
Texture coordinates range from (0.0, 0.0) in the bottom left of the texture, to (1.0, 1.0) in the top right of the texture.
By default, the area represents the full extent of the texture.
Trait Implementations
Render self into the given mesh.
Provide a mutable reference to the dimension::Properties for updating.
Provide a mutable reference to the orientation::Properties for updating.
Describe orientation via the vector that points to the given target.
Specify the orientation around the x axis as an absolute value in radians.
Specify the orientation around the y axis as an absolute value in radians.
Specify the orientation around the z axis as an absolute value in radians.
Specify the orientation around the x axis as an absolute value in degrees.
Specify the orientation around the y axis as an absolute value in degrees.
Specify the orientation around the z axis as an absolute value in degrees.
Specify the orientation around the x axis as a number of turns around the axis.
Specify the orientation around the y axis as a number of turns around the axis.
Specify the orientation around the z axis as a number of turns around the axis.
Specify the orientation along each axis with the given Vector of radians. Read more
Specify the orientation along each axis with the given Vector of degrees. Read more
Specify the orientation along each axis with the given Vector of “turns”. Read more
Specify the orientation with the given euler orientation in radians.
Specify the orientation with the given Quaternion.
Provide a mutable reference to the position::Properties for updating.
Auto Trait Implementations
impl !RefUnwindSafe for Texture
impl !UnwindSafe for Texture
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
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
pub fn vzip(self) -> V