pub struct Pixels { /* private fields */ }Implementations§
Source§impl Pixels
impl Pixels
pub fn simple( width: u32, height: u32, graphics: &Graphics<Vertex>, ) -> Result<Self, String>
pub fn from_screen(graphics: &Graphics<Vertex>) -> Result<Self, String>
pub fn texture(&self) -> &Texture
pub fn sprite_texture( &self, sampler: Cow<'static, str>, filtering: GlowTextureFiltering, ) -> SpriteTexture
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn access_bytes(&mut self) -> PixelsAccessBytes<'_>
pub fn access_channels<'a>(&'a mut self) -> PixelsAccessChannels<'a>
pub fn access_rgba<'a>(&'a mut self) -> PixelsAccessRgba<'a>
pub fn commit(&mut self)
Auto Trait Implementations§
impl Freeze for Pixels
impl !RefUnwindSafe for Pixels
impl !Send for Pixels
impl !Sync for Pixels
impl Unpin for Pixels
impl !UnwindSafe for Pixels
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