Skip to content

Commit

Permalink
Factor out NearClipPlane from VisualBounds2D
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Dec 12, 2024
1 parent 7b76958 commit 42146f6
Show file tree
Hide file tree
Showing 22 changed files with 407 additions and 110 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace rerun.blueprint.archetypes;

/// Controls the distance to the near clip plane in 3D scene units.
table NearClipPlane (
"attr.rerun.scope": "blueprint",
"attr.rust.derive": "Copy"
) {
/// Controls the distance to the near clip plane in 3D scene units.
///
/// Content closer than this distance will not be visible.
near_clip_plane: rerun.blueprint.components.NearClipPlane ("attr.rerun.component_optional", order: 1000);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace rerun.blueprint.archetypes;


/// Controls the visual bounds of a 2D view.
///
/// Everything within these bounds are guaranteed to be visible.
Expand All @@ -16,9 +15,4 @@ table VisualBounds2D (
///
/// Use this to control pan & zoom of the view.
range: rerun.blueprint.components.VisualBounds2D ("attr.rerun.component_required", order: 1000);

/// Controls the distance to the near clip plane in 3D scene units.
///
/// Content closer than this distance will not be visible.
near_clip_plane: rerun.blueprint.components.NearClipPlane ("attr.rerun.component_optional", order: 2000);
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

186 changes: 186 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/near_clip_plane.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 8 additions & 55 deletions crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 42146f6

Please sign in to comment.