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]

pub fn set_viewport(
    &mut self,
    viewport: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
)
[src]

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]

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]

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]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]