Skip to main content

Frame

Trait Frame 

Source
pub trait Frame {
    // Required methods
    fn ClearColor(&self, _: impl ClearArgs);
    fn size(&self) -> uVec2;
    fn bind(&self) -> Bind<'_, FramebuffT>;

    // Provided methods
    fn aspect(&self) -> Vec2 { ... }
    fn clip_aspect(&self) -> Vec2 { ... }
    fn pixel(&self) -> f32 { ... }
    fn pixel_vec2(&self) -> Vec2 { ... }
    fn clear(&self, args: impl ColorDepthArg) { ... }
    fn ClearDepth<A>(&self, _: A)
       where f32: Cast<A> { ... }
}

Required Methods§

Source

fn ClearColor(&self, _: impl ClearArgs)

Source

fn size(&self) -> uVec2

Source

fn bind(&self) -> Bind<'_, FramebuffT>

Provided Methods§

Source

fn aspect(&self) -> Vec2

Source

fn clip_aspect(&self) -> Vec2

Source

fn pixel(&self) -> f32

Source

fn pixel_vec2(&self) -> Vec2

Source

fn clear(&self, args: impl ColorDepthArg)

Source

fn ClearDepth<A>(&self, _: A)
where f32: Cast<A>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S: TexSize, F: TexFmt> Frame for Fbo<S, F>

Source§

impl<S: TexSize, F: TexFmt> Frame for RenderTgt<S, F>

Source§

impl<W: Window> Frame for W