Trait old_school_gfx_glutin_ext::WindowUpdateExt [−][src]
pub trait WindowUpdateExt { fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
&self,
color_view: &mut RenderTargetView<R, Color>,
ds_view: &mut DepthStencilView<R, Depth>
); fn updated_views_raw(
&self,
old_dimensions: Dimensions,
color_format: Format,
ds_format: Format
) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>; }
Required methods
fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
&self,
color_view: &mut RenderTargetView<R, Color>,
ds_view: &mut DepthStencilView<R, Depth>
)
fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
&self,
color_view: &mut RenderTargetView<R, Color>,
ds_view: &mut DepthStencilView<R, Depth>
)
Recreates the views if the dimensions have changed.
fn updated_views_raw(
&self,
old_dimensions: Dimensions,
color_format: Format,
ds_format: Format
) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>
fn updated_views_raw(
&self,
old_dimensions: Dimensions,
color_format: Format,
ds_format: Format
) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>
Return new main target views if the window resolution has changed from the old dimensions.
Implementations on Foreign Types
fn update_gfx<Color: RenderFormat, Depth: DepthFormat>(
&self,
color_view: &mut RenderTargetView<R, Color>,
ds_view: &mut DepthStencilView<R, Depth>
)
fn updated_views_raw(
&self,
old_dimensions: Dimensions,
color_format: Format,
ds_format: Format
) -> Option<(RawRenderTargetView<R>, RawDepthStencilView<R>)>