engage/generated/unity_engine/rendering/
debugshapes.rs1#[cfg(feature = "unity_engine-rendering-debugshapes-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/debugshapes/DebugShapes.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "DebugShapes")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugShapes {
14 #[static_field]
15 #[rename(name = "s_Instance")]
16 pub s_instance: crate::unity_engine::rendering::debugshapes::DebugShapes,
17 #[offset(16)]
18 #[rename(name = "m_sphereMesh")]
19 pub m_sphere_mesh: crate::unity_engine::mesh::Mesh,
20 #[offset(24)]
21 #[rename(name = "m_boxMesh")]
22 pub m_box_mesh: crate::unity_engine::mesh::Mesh,
23 #[offset(32)]
24 #[rename(name = "m_coneMesh")]
25 pub m_cone_mesh: crate::unity_engine::mesh::Mesh,
26 #[offset(40)]
27 #[rename(name = "m_pyramidMesh")]
28 pub m_pyramid_mesh: crate::unity_engine::mesh::Mesh,
29 }
30}
31
32#[cfg(feature = "unity_engine-rendering-debugshapes-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-rendering-debugshapes")]
36impl DebugShapes {
37 #[doc = "`get_instance()` overload"]
38 pub fn get_instance() -> crate::unity_engine::rendering::debugshapes::DebugShapes {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x3539a20usize)as*mut u8,crate::unity_engine::rendering::debugshapes::DebugShapes;
41 )
42 }
43 }
44
45 #[doc = "`.cctor()` overload"]
46 pub fn cctor() -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x353b810usize)as*mut u8,();
49 )
50 }
51 }
52}
53
54#[cfg(feature = "unity_engine-rendering-debugshapes")]
55pub trait IDebugShapesMethods: IDebugShapes {
56 #[doc = "`BuildSphere(*mutcrate::unity_engine::mesh::Mesh, f32, u32, u32)` overload"]
57 fn build_sphere(
58 self,
59 radius: impl ::core::convert::Into<f32>,
60 long_subdiv: impl ::core::convert::Into<u32>,
61 lat_subdiv: impl ::core::convert::Into<u32>,
62 ) -> crate::unity_engine::mesh::Mesh {
63 unsafe {
64 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::mesh::Mesh>::uninit();
66 ::unity::il2cpp_call!((::unity::module_base()+0x3539b10usize)as*mut u8,();
67(DebugShapes)__receiver,(*mut crate::unity_engine::mesh::Mesh)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(radius),(u32)::core::convert::Into::into(long_subdiv),(u32)::core::convert::Into::into(lat_subdiv));
68 __out_0.assume_init()
69 }
70 }
71 #[doc = "`BuildBox(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32)` overload"]
72 fn build_box(
73 self,
74 length: impl ::core::convert::Into<f32>,
75 width: impl ::core::convert::Into<f32>,
76 height: impl ::core::convert::Into<f32>,
77 ) -> crate::unity_engine::mesh::Mesh {
78 unsafe {
79 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::mesh::Mesh>::uninit();
81 ::unity::il2cpp_call!((::unity::module_base()+0x353a100usize)as*mut u8,();
82(DebugShapes)__receiver,(*mut crate::unity_engine::mesh::Mesh)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(length),(f32)::core::convert::Into::into(width),(f32)::core::convert::Into::into(height));
83 __out_0.assume_init()
84 }
85 }
86 #[doc = "`BuildCone(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32, i32)` overload"]
87 fn build_cone(
88 self,
89 height: impl ::core::convert::Into<f32>,
90 top_radius: impl ::core::convert::Into<f32>,
91 bottom_radius: impl ::core::convert::Into<f32>,
92 nb_sides: impl ::core::convert::Into<i32>,
93 ) -> crate::unity_engine::mesh::Mesh {
94 unsafe {
95 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::mesh::Mesh>::uninit();
97 ::unity::il2cpp_call!((::unity::module_base()+0x353a820usize)as*mut u8,();
98(DebugShapes)__receiver,(*mut crate::unity_engine::mesh::Mesh)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(height),(f32)::core::convert::Into::into(top_radius),(f32)::core::convert::Into::into(bottom_radius),(i32)::core::convert::Into::into(nb_sides));
99 __out_0.assume_init()
100 }
101 }
102 #[doc = "`BuildPyramid(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32)` overload"]
103 fn build_pyramid(
104 self,
105 width: impl ::core::convert::Into<f32>,
106 height: impl ::core::convert::Into<f32>,
107 depth: impl ::core::convert::Into<f32>,
108 ) -> crate::unity_engine::mesh::Mesh {
109 unsafe {
110 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::mesh::Mesh>::uninit();
112 ::unity::il2cpp_call!((::unity::module_base()+0x353b170usize)as*mut u8,();
113(DebugShapes)__receiver,(*mut crate::unity_engine::mesh::Mesh)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(width),(f32)::core::convert::Into::into(height),(f32)::core::convert::Into::into(depth));
114 __out_0.assume_init()
115 }
116 }
117 #[doc = "`BuildShapes()` overload"]
118 fn build_shapes(self) -> () {
119 unsafe {
120 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x353b4e0usize)as*mut u8,();
122(DebugShapes)__receiver)
123 }
124 }
125 #[doc = "`RebuildResources()` overload"]
126 fn rebuild_resources(self) -> () {
127 unsafe {
128 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x353b630usize)as*mut u8,();
130(DebugShapes)__receiver)
131 }
132 }
133 #[doc = "`RequestSphereMesh()` overload"]
134 fn request_sphere_mesh(self) -> crate::unity_engine::mesh::Mesh {
135 unsafe {
136 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x353b750usize)as*mut u8,crate::unity_engine::mesh::Mesh;
138(DebugShapes)__receiver)
139 }
140 }
141 #[doc = "`RequestBoxMesh()` overload"]
142 fn request_box_mesh(self) -> crate::unity_engine::mesh::Mesh {
143 unsafe {
144 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x353b780usize)as*mut u8,crate::unity_engine::mesh::Mesh;
146(DebugShapes)__receiver)
147 }
148 }
149 #[doc = "`RequestConeMesh()` overload"]
150 fn request_cone_mesh(self) -> crate::unity_engine::mesh::Mesh {
151 unsafe {
152 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x353b7b0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
154(DebugShapes)__receiver)
155 }
156 }
157 #[doc = "`RequestPyramidMesh()` overload"]
158 fn request_pyramid_mesh(self) -> crate::unity_engine::mesh::Mesh {
159 unsafe {
160 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x353b7e0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
162(DebugShapes)__receiver)
163 }
164 }
165 #[doc = "`.ctor()` overload"]
166 fn ctor(self) -> () {
167 unsafe {
168 let __receiver = <DebugShapes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x3539b00usize)as*mut u8,();
170(DebugShapes)__receiver)
171 }
172 }
173}
174
175#[cfg(feature = "unity_engine-rendering-debugshapes")]
176impl<__T: IDebugShapes> IDebugShapesMethods for __T {}
177
178#[cfg(feature = "unity_engine-rendering-debugshapes")]
179impl DebugShapes {
180 pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182 }
183
184 pub fn build_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186 }
187
188 pub fn build_box_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
190 }
191
192 pub fn build_cone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
194 }
195
196 pub fn build_pyramid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
198 }
199
200 pub fn build_shapes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
202 }
203
204 pub fn rebuild_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
206 }
207
208 pub fn request_sphere_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
210 }
211
212 pub fn request_box_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
214 }
215
216 pub fn request_cone_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
218 }
219
220 pub fn request_pyramid_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
222 }
223
224 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
226 }
227
228 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
230 }
231}
232
233#[cfg(feature = "unity_engine-rendering-debugshapes")]
234impl DebugShapes {
235 #[doc = "`.ctor()` — no args"]
236 pub fn new() -> Self {
237 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
238 panic!(
239 "{}
240::{}
241 failed to instantiate",
242 ::core::stringify!(DebugShapes),
243 ::core::stringify!(new),
244 )
245 });
246 <Self as IDebugShapesMethods>::ctor(this);
247 this
248 }
249}
250
251#[cfg(feature = "unity_engine-rendering-debugshapes")]
252#[doc(hidden)]
253pub mod prelude {
254 pub use super::{DebugShapes, IDebugShapes, IDebugShapesMethods};
255 pub use crate::system::object::IObject;
256 #[cfg(feature = "system-object")]
257 pub use crate::system::object::IObjectMethods;
258}