You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to start using the new object-oriented Points2D archetype from the current Rust SDK, today.
This must coexist peacefully with the existing MsgSender API.
I.e. going through the old MsgSender or through the new object API should both be legal and behave similarly.
This will allow us to start migrating step-by-step to both the object-oriented API and the codegen stack.
**Best reviewed on a commit-by-commit basis; in particular the `rerun
codegen` commit is nothing but generated code.**
You can now use archetypes with the existing SDK:
```rust
use rerun::experimental::archetypes::Points2D;
MsgSender::from_archetype(
"2d_layering/points_between_top_and_middle",
&Points2D::new(
(0..256).map(|i| (32.0 + (i / 16) as f32 * 16.0, 64.0 + (i % 16) as f32 * 16.0)),
)
.with_draw_order(1.51),
)?
.send(rec_stream)?;
```
Closes#2387
---
- #2484
- #2485
- #2487
- #2545
- #2546
- #2549
- #2554
- #2570
- #2571
---
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/{{
pr.number }}) (if applicable)
- [PR Build Summary](https://build.rerun.io/pr/{{ pr.number }})
- [Docs preview](https://rerun.io/preview/{{
"pr:%s"|format(pr.branch)|encode_uri_component }}/docs)
- [Examples preview](https://rerun.io/preview/{{
"pr:%s"|format(pr.branch)|encode_uri_component }}/examples)
It should be possible to start using the new object-oriented
Points2D
archetype from the current Rust SDK, today.This must coexist peacefully with the existing
MsgSender
API.I.e. going through the old
MsgSender
or through the new object API should both be legal and behave similarly.This will allow us to start migrating step-by-step to both the object-oriented API and the codegen stack.
Requires #2383
The text was updated successfully, but these errors were encountered: