pub struct Renderer { /* private fields */ }Implementations§
Trait Implementations§
Source§impl RenderFrameBufferDevice for Renderer
impl RenderFrameBufferDevice for Renderer
type FB = FrameBuffer
fn fb_format(&self) -> TextureType
fn create_fb( &mut self, width: u32, height: u32, image: ImageId, ) -> Result<Self::FB>
fn delete_fb(&mut self, _fb: Self::FB) -> Result<()>
fn bind(&mut self, fb: &Self::FB) -> Result<()>
fn unbind(&mut self) -> Result<()>
Source§impl RendererDevice for Renderer
impl RendererDevice for Renderer
type VertexBuffer = Arc<Buffer>
fn edge_antialias(&self) -> bool
fn create_vertex_buffer( &mut self, buffer_size: usize, _usage: BufferUsage, ) -> Result<Self::VertexBuffer>
fn update_vertex_buffer( &mut self, buffer: Option<&Self::VertexBuffer>, data: &[u8], ) -> Result<()>
fn resize(&mut self, _width: u32, _height: u32) -> Result<()>
fn create_texture( &mut self, texture_type: TextureType, width: u32, height: u32, flags: ImageFlags, data: Option<&[u8]>, ) -> Result<ImageId>
fn delete_texture(&mut self, img: ImageId) -> Result<()>
fn update_texture( &mut self, img: ImageId, x: u32, y: u32, width: u32, height: u32, data: &[u8], ) -> Result<()>
fn texture_size(&self, img: ImageId) -> Result<(u32, u32)>
fn viewport(&mut self, extent: Extent, _device_pixel_ratio: f32) -> Result<()>
fn cancel(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
fn fill( &mut self, vertex_buffer: Option<Self::VertexBuffer>, instances: Option<(Self::VertexBuffer, Range<u32>)>, paint: &PaintPattern, composite_operation: CompositeOperationState, fill_type: PathFillType, scissor: &Scissor, fringe: f32, bounds_offset: Option<usize>, paths: &[PathSlice], ) -> Result<()>
fn stroke( &mut self, vertex_buffer: Option<Self::VertexBuffer>, instances: Option<(Self::VertexBuffer, Range<u32>)>, paint: &PaintPattern, composite_operation: CompositeOperationState, scissor: &Scissor, fringe: f32, stroke_width: f32, paths: &[PathSlice], ) -> Result<()>
fn triangles( &mut self, vertex_buffer: Option<Self::VertexBuffer>, instances: Option<(Self::VertexBuffer, Range<u32>)>, paint: &PaintPattern, composite_operation: CompositeOperationState, scissor: &Scissor, slice: VertexSlice, ) -> Result<()>
fn clear(&mut self, color: Color) -> Result<()>
fn wirelines( &mut self, vertex_buffer: Option<Self::VertexBuffer>, instances: Option<(Self::VertexBuffer, Range<u32>)>, paint: &PaintPattern, composite_operation: CompositeOperationState, scissor: &Scissor, paths: &[PathSlice], ) -> Result<()>
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> 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