[][src]Enum keeshond::renderer::ViewportMode

pub enum ViewportMode {
    Independent,
    Pixel,
    OneToOne,
}

Determines how the game is scaled to fit the window or screen

Variants

Independent

The view is scaled up or down to fit the window in a resolution-independent way

Pixel

The view is rendered at a fixed size and then scaled up or down with minimal filtering. Use for pixel art style games.

OneToOne

The viewport base size is the same as the window size. Enlarging the window means you see more of the scene. Use for editors and similar utilities.

Trait Implementations

impl Clone for ViewportMode[src]

impl Copy for ViewportMode[src]

impl PartialEq<ViewportMode> for ViewportMode[src]

impl StructuralPartialEq for ViewportMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

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

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

impl<T> Erased for T

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

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

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.