[][src]Trait old_school_gfx_glutin_ext::WindowUpdateExt

pub trait WindowUpdateExt {
    pub fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
        &self,
        color_view: &mut RenderTargetView<R, Color>,
        ds_view: &mut DepthStencilView<R, Depth>
    );
pub fn updated_views_raw(
        &self,
        old_dimensions: Dimensions,
        color_format: Format,
        ds_format: Format
    ) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>; }

Required methods

pub fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
    &self,
    color_view: &mut RenderTargetView<R, Color>,
    ds_view: &mut DepthStencilView<R, Depth>
)
[src]

Recreates the views if the dimensions have changed.

pub fn updated_views_raw(
    &self,
    old_dimensions: Dimensions,
    color_format: Format,
    ds_format: Format
) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>
[src]

Return new main target views if the window resolution has changed from the old dimensions.

Loading content...

Implementations on Foreign Types

impl WindowUpdateExt for WindowedContext<PossiblyCurrent>[src]

Loading content...

Implementors

Loading content...