Struct gfx_debug_draw::DebugRenderer [−][src]
Implementations
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]
factory: F,
text_renderer: Renderer<R, F>,
initial_buffer_size: usize
) -> Result<DebugRenderer<R, F>, DebugRendererError>
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]
&mut self,
text: &str,
screen_position: [i32; 2],
color: [f32; 4]
)
pub fn draw_text_at_position(
&mut self,
text: &str,
world_position: [f32; 3],
color: [f32; 4]
)
[src]
&mut self,
text: &str,
world_position: [f32; 3],
color: [f32; 4]
)
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]
&mut self,
encoder: &mut Encoder<R, C>,
color_target: &RenderTargetView<R, T>,
depth_target: &DepthStencilView<R, DepthStencil>,
projection: [[f32; 4]; 4]
) -> Result<(), DebugRendererError>
Auto Trait Implementations
impl<R, F> !RefUnwindSafe for DebugRenderer<R, F>
impl<R, F> Send for DebugRenderer<R, F> where
F: Send,
F: Send,
impl<R, F> Sync for DebugRenderer<R, F> where
F: Sync,
F: Sync,
impl<R, F> Unpin for DebugRenderer<R, F> where
F: Unpin,
F: Unpin,
impl<R, F> !UnwindSafe for DebugRenderer<R, F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,