[][src]Struct nuklear_backend_gfx::Drawer

pub struct Drawer<R: Resources> {
    pub col: Option<RenderTargetView<R, (R8_G8_B8_A8, Unorm)>>,
    // some fields omitted
}

Fields

col: Option<RenderTargetView<R, (R8_G8_B8_A8, Unorm)>>

Implementations

impl<R: Resources> Drawer<R>[src]

pub fn new<F>(
    factory: &mut F,
    col: RenderTargetView<R, (R8_G8_B8_A8, Unorm)>,
    texture_count: usize,
    vbo_size: usize,
    ebo_size: usize,
    command_buffer: Buffer,
    backend: GfxBackend
) -> Drawer<R> where
    F: Factory<R>, 
[src]

pub fn add_texture<F>(
    &mut self,
    factory: &mut F,
    image: &[u8],
    width: u32,
    height: u32
) -> Handle where
    F: Factory<R>, 
[src]

pub fn draw<F, B: CommandBuffer<R>>(
    &mut self,
    ctx: &mut Context,
    cfg: &mut ConvertConfig,
    encoder: &mut Encoder<R, B>,
    factory: &mut F,
    width: u32,
    height: u32,
    scale: Vec2
) where
    F: Factory<R>, 
[src]

Auto Trait Implementations

impl<R> !RefUnwindSafe for Drawer<R>

impl<R> !Send for Drawer<R>

impl<R> !Sync for Drawer<R>

impl<R> Unpin for Drawer<R>

impl<R> !UnwindSafe for Drawer<R>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.