Function ggez::graphics::gfx_objects [−][src]
pub fn gfx_objects(
context: &mut Context
) -> (&mut <GlBackendSpec as BackendSpec>::Factory, &mut <GlBackendSpec as BackendSpec>::Device, &mut Encoder<<GlBackendSpec as BackendSpec>::Resources, <GlBackendSpec as BackendSpec>::CommandBuffer>, RawDepthStencilView<<GlBackendSpec as BackendSpec>::Resources>, RawRenderTargetView<<GlBackendSpec as BackendSpec>::Resources>)
Expand description
Returns raw gfx-rs
state objects, if you want to use gfx-rs
to write
your own graphics pipeline then this gets you the interfaces you need
to do so.
Returns all the relevant objects at once; getting them one by one is awkward ’cause it tends to create double-borrows on the Context object.