Struct re_renderer::PointCloudBuilder
source · pub struct PointCloudBuilder {
pub vertices: Vec<PointCloudVertex>,
/* private fields */
}Expand description
Builder for point clouds, making it easy to create crate::renderer::PointCloudDrawData.
Fields§
§vertices: Vec<PointCloudVertex>Implementations§
source§impl PointCloudBuilder
impl PointCloudBuilder
pub fn new(ctx: &RenderContext) -> Self
sourcepub fn radius_boost_in_ui_points_for_outlines(
self,
radius_boost_in_ui_points_for_outlines: f32
) -> Self
pub fn radius_boost_in_ui_points_for_outlines( self, radius_boost_in_ui_points_for_outlines: f32 ) -> Self
Boosts the size of the points by the given amount of ui-points for the purpose of drawing outlines.
sourcepub fn batch(
&mut self,
label: impl Into<DebugLabel>
) -> PointCloudBatchBuilder<'_>
pub fn batch( &mut self, label: impl Into<DebugLabel> ) -> PointCloudBatchBuilder<'_>
Start of a new batch.
pub fn iter_vertices_by_batch( &self ) -> impl Iterator<Item = (&PointCloudBatchInfo, impl Iterator<Item = &PointCloudVertex>)>
sourcepub fn into_draw_data(self, ctx: &mut RenderContext) -> PointCloudDrawData
pub fn into_draw_data(self, ctx: &mut RenderContext) -> PointCloudDrawData
Finalizes the builder and returns a point cloud draw data with all the points added so far.
Auto Trait Implementations§
impl !RefUnwindSafe for PointCloudBuilder
impl !Send for PointCloudBuilder
impl !Sync for PointCloudBuilder
impl Unpin for PointCloudBuilder
impl !UnwindSafe for PointCloudBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more