[][src]Struct cat_engine::WindowSettings

pub struct WindowSettings {
    pub general: GeneralSettings,
    pub window_attributes: WindowAttributes,
    pub debug: bool,
    pub vsync: bool,
    pub pixel_fmt_req: PixelFormatRequirements,
    pub graphics_base_settings: GraphicsSettings,
}

Fields

general: GeneralSettingswindow_attributes: WindowAttributesdebug: bool

Whether to enable the debug flag of the context.

Debug contexts are usually slower but give better error reporting.

The default is false.

vsync: bool

Whether to use vsync. If vsync is enabled, calling swap_buffers will block until the screen refreshes. This is typically used to prevent screen tearing.

The default is false.

pixel_fmt_req: PixelFormatRequirementsgraphics_base_settings: GraphicsSettings

Implementations

impl WindowSettings[src]

pub fn new() -> WindowSettings[src]

Default settings.

Trait Implementations

impl Clone for WindowSettings[src]

impl Debug for WindowSettings[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> From<T> for T[src]

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

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.