Struct rin::gl::OutlineMaterial [−][src]
pub struct OutlineMaterial { /* fields omitted */ }
Material to draw an outline of an object
To use it draw the object with the original material and then with this material
Needs depth testing to be enabled when drawing the original object
Implementations
impl OutlineMaterial
[src]
impl OutlineMaterial
[src]pub fn set_viewport(
&mut self,
viewport: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
)
[src]
&mut self,
viewport: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
)
Viewport size, used by the shader to calculate the width of the outline in pixels
pub fn viewport(
&self
) -> Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
[src]
&self
) -> Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
Viewport size, used by the shader to calculate the width of the outline in pixels
pub fn set_width(&mut self, width: f32)
[src]
Width of the outline in pixels
pub fn width(&self) -> f32
[src]
Width of the outline in pixels
pub fn set_color<C>(&mut self, color: C) where
C: ToRgba,
[src]
C: ToRgba,
Color of the outline
pub fn color(&self) -> AlphaColor<f32, Rgb<f32, Srgb>>
[src]
Color of the outline
Trait Implementations
impl Material for OutlineMaterial
[src]
impl Material for OutlineMaterial
[src]Auto Trait Implementations
impl !RefUnwindSafe for OutlineMaterial
impl Send for OutlineMaterial
impl !Sync for OutlineMaterial
impl Unpin for OutlineMaterial
impl UnwindSafe for OutlineMaterial
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]