Struct nuklear_backend_gfx::Drawer
[−]
[src]
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)>>
Methods
impl<R: Resources> Drawer<R>
[src]
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: NkBuffer,
backend: GfxBackend
) -> Drawer<R> where
F: Factory<R>,
factory: &mut F,
col: RenderTargetView<R, (R8_G8_B8_A8, Unorm)>,
texture_count: usize,
vbo_size: usize,
ebo_size: usize,
command_buffer: NkBuffer,
backend: GfxBackend
) -> Drawer<R> where
F: Factory<R>,
fn add_texture<F>(
&mut self,
factory: &mut F,
image: &[u8],
width: u32,
height: u32
) -> NkHandle where
F: Factory<R>,
&mut self,
factory: &mut F,
image: &[u8],
width: u32,
height: u32
) -> NkHandle where
F: Factory<R>,
fn draw<F, B: CommandBuffer<R>>(
&mut self,
ctx: &mut NkContext,
cfg: &mut NkConvertConfig,
encoder: &mut Encoder<R, B>,
factory: &mut F,
width: u32,
height: u32,
scale: NkVec2
) where
F: Factory<R>,
&mut self,
ctx: &mut NkContext,
cfg: &mut NkConvertConfig,
encoder: &mut Encoder<R, B>,
factory: &mut F,
width: u32,
height: u32,
scale: NkVec2
) where
F: Factory<R>,