hao_il2cpp_unity/reflect.rs
1//! Reflection roots for the `reflect` feature. See [`hao::reflect`](https://docs.rs/hao/latest/hao/reflect/index.html) for the
2//! pattern. The overlay and binding handles hold engine pointers and are not
3//! reflected; the plain-data types are.
4
5use facet::{Facet, Shape};
6
7/// The reflected data types: the active [`Scene`](crate::Scene) and the GL draw
8/// [`Mode`](crate::gl::Mode).
9pub fn roots() -> &'static [&'static Shape] {
10 &[
11 <crate::Scene as Facet>::SHAPE,
12 <crate::gl::Mode as Facet>::SHAPE,
13 ]
14}