Struct rin::scene::renderer::ForwardRenderer [−][src]
pub struct ForwardRenderer { /* fields omitted */ }
Implementations
impl ForwardRenderer
[src]
impl ForwardRenderer
[src]pub fn new(
renderer: Renderer<'static, Screen>,
window: Window
) -> ForwardRenderer
[src]
renderer: Renderer<'static, Screen>,
window: Window
) -> ForwardRenderer
pub fn new_with_render_surface(
renderer: Renderer<'static, Screen>,
window: Window,
render_surface: ScreenRenderBuffer
) -> ForwardRenderer
[src]
renderer: Renderer<'static, Screen>,
window: Window,
render_surface: ScreenRenderBuffer
) -> ForwardRenderer
pub fn set_program_cache(&mut self, cache: ProgramCache)
[src]
Allows to reuse the glsl programs cache
Useful when recreating the whole scene, for example between a game different levels
By keeping the program cache between levels the loading times can be much shorter since we avoid recompiling shaders for materials
pub fn use_unified_material_ubo(&mut self)
[src]
Trait Implementations
impl RendererBundle for ForwardRenderer
[src]
impl RendererBundle for ForwardRenderer
[src]type Parameters = Parameters
pub fn parameters(&self) -> Option<&Parameters>
[src]
pub fn name(&self) -> &str
[src]
pub fn setup(self, world: &mut DeferredScene)
[src]
pub fn window(&self) -> Option<&Window>
[src]
pub fn window_mut(&mut self) -> Option<&mut Window>
[src]
pub fn viewport(&mut self) -> Property<'static, Rect<i32>>
[src]
pub fn event_stream(&mut self) -> Stream<'static, Event>
[src]
pub fn file_line_info(&self) -> &'static str
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ForwardRenderer
impl !Send for ForwardRenderer
impl !Sync for ForwardRenderer
impl Unpin for ForwardRenderer
impl !UnwindSafe for ForwardRenderer
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]