Struct glsmrs::texture::EmptyFramebuffer
source · [−]pub struct EmptyFramebuffer { /* private fields */ }
Implementations
sourceimpl EmptyFramebuffer
impl EmptyFramebuffer
pub fn new(ctx: &Ctx, viewport: Viewport) -> Self
pub fn with_color_slot(
self,
handle: UploadedTexture
) -> Result<ColorFramebuffer, String>
pub fn with_depth_slot(
self,
handle: UploadedTexture
) -> Result<DepthFrameBuffer, String>
Trait Implementations
sourceimpl Framebuffer for EmptyFramebuffer
impl Framebuffer for EmptyFramebuffer
type DepthSlot = EmptyFramebuffer
type ColorSlot = EmptyFramebuffer
fn depth_slot(&mut self) -> &mut Self
fn color_slot(&mut self) -> &mut Self
fn bind(&mut self)
fn viewport(&self) -> &Viewport
Auto Trait Implementations
impl RefUnwindSafe for EmptyFramebuffer
impl !Send for EmptyFramebuffer
impl !Sync for EmptyFramebuffer
impl Unpin for EmptyFramebuffer
impl UnwindSafe for EmptyFramebuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more