[][src]Struct duku::DukuBuilder

pub struct DukuBuilder { /* fields omitted */ }

The render context builder.

Implementations

impl DukuBuilder[src]

pub const fn vsync(self, vsync: VSync) -> Self[src]

Use VSync setting

pub const fn no_vsync(self) -> Self[src]

Disable VSync

pub const fn shadow_map_size(self, size: u32) -> Self[src]

Use shadow map size

pub const fn msaa(self, msaa: Msaa) -> Self[src]

Use MSAA setting

pub const fn no_msaa(self) -> Self[src]

Disable MSAA

pub const fn anisotropy(self, value: f32) -> Self[src]

Use sampler anisotropy setting

pub const fn attach_window(self, window: WindowHandle) -> Self[src]

Attach OS window handle to renderer context

pub fn build(self) -> Result<Duku>[src]

Build context

impl DukuBuilder[src]

pub fn build_window(self, width: u32, height: u32) -> WindowBuilder[src]

Create OS window builder

Trait Implementations

impl Clone for DukuBuilder[src]

impl Debug for DukuBuilder[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.