[][src]Struct gfx_debug_draw::DebugRenderer

pub struct DebugRenderer<R: Resources, F: Factory<R>> { /* fields omitted */ }

Methods

impl<R: Resources, F: Factory<R>> DebugRenderer<R, F>[src]

pub fn new(
    factory: F,
    text_renderer: Renderer<R, F>,
    initial_buffer_size: usize
) -> Result<DebugRenderer<R, F>, DebugRendererError>
[src]

pub fn draw_line(&mut self, start: [f32; 3], end: [f32; 3], color: [f32; 4])[src]

pub fn draw_marker(&mut self, position: [f32; 3], size: f32, color: [f32; 4])[src]

pub fn draw_text_on_screen(
    &mut self,
    text: &str,
    screen_position: [i32; 2],
    color: [f32; 4]
)
[src]

pub fn draw_text_at_position(
    &mut self,
    text: &str,
    world_position: [f32; 3],
    color: [f32; 4]
)
[src]

pub fn render<C: CommandBuffer<R>, T: RenderFormat>(
    &mut self,
    encoder: &mut Encoder<R, C>,
    color_target: &RenderTargetView<R, T>,
    depth_target: &DepthStencilView<R, DepthStencil>,
    projection: [[f32; 4]; 4]
) -> Result<(), DebugRendererError>
[src]

Auto Trait Implementations

impl<R, F> Send for DebugRenderer<R, F> where
    F: Send,
    <R as Resources>::Buffer: Send + Sync,
    <R as Resources>::Mapping: Send,
    <R as Resources>::PipelineStateObject: Send + Sync,
    <R as Resources>::Program: Send + Sync,
    <R as Resources>::Sampler: Send + Sync,
    <R as Resources>::Shader: Send + Sync,
    <R as Resources>::ShaderResourceView: Send + Sync,
    <R as Resources>::Texture: Send + Sync

impl<R, F> Sync for DebugRenderer<R, F> where
    F: Sync,
    <R as Resources>::Buffer: Send + Sync,
    <R as Resources>::Mapping: Send,
    <R as Resources>::PipelineStateObject: Send + Sync,
    <R as Resources>::Program: Send + Sync,
    <R as Resources>::Sampler: Send + Sync,
    <R as Resources>::Shader: Send + Sync,
    <R as Resources>::ShaderResourceView: Send + Sync,
    <R as Resources>::Texture: Send + Sync

impl<R, F> Unpin for DebugRenderer<R, F> where
    F: Unpin

impl<R, F> !UnwindSafe for DebugRenderer<R, F>

impl<R, F> !RefUnwindSafe for DebugRenderer<R, F>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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