Trait grafix_toolbox::lib::GL::Frame

source ·
pub trait Frame {
    // Required methods
    fn ClearColor(&self, _: impl ClearArgs);
    fn size(&self) -> uVec2;
    fn bind(&self) -> Binding<'_, Framebuff>;

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

Required Methods§

source

fn ClearColor(&self, _: impl ClearArgs)

source

fn size(&self) -> uVec2

source

fn bind(&self) -> Binding<'_, Framebuff>

Provided Methods§

source

fn aspect(&self) -> Vec2

source

fn to_clip(&self) -> Vec2

source

fn pixel(&self) -> f32

source

fn pixel_vec2(&self) -> Vec2

source

fn clear(&self, args: impl ColorDepthArg)

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Frame for Window

source§

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

source§

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