pub struct Renderer {
pub render_textures: RenderTextures,
pub camera_state: Camera,
/* private fields */
}Fields§
§render_textures: RenderTextures§camera_state: CameraImplementations§
Source§impl Renderer
impl Renderer
pub fn new( ctx: &WgpuContext, frame_height: f64, width: usize, height: usize, ) -> Self
Sourcepub fn clear_screen(&mut self, ctx: &WgpuContext, clear_color: Color)
pub fn clear_screen(&mut self, ctx: &WgpuContext, clear_color: Color)
Clears the screen with Renderer::clear_color
pub fn render_store_with_pool( &mut self, ctx: &WgpuContext, clear_color: Color, store: &CoreItemStore, pool: &mut RenderPool, )
pub fn render( &mut self, ctx: &WgpuContext, clear_color: Color, renderable: &impl RenderCommand, )
pub fn get_rendered_texture_data(&mut self, ctx: &WgpuContext) -> &[u8] ⓘ
pub fn get_rendered_texture_img_buffer( &mut self, ctx: &WgpuContext, ) -> ImageBuffer<Rgba<u8>, &[u8]>
Auto Trait Implementations§
impl !Freeze for Renderer
impl !RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl !UnwindSafe for Renderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more