Skip to main content

engage/generated/unity_engine/rendering/
lodparameters.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-lodparameters-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/lodparameters/LODParameters.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct LODParameters {
17        pub m_is_orthographic: i32,
18        pub m_camera_position: crate::unity_engine::vector3::Vector3,
19        pub m_field_of_view: f32,
20        pub m_ortho_size: f32,
21        pub m_camera_pixel_height: i32,
22    }
23    impl ::unity::ClassIdentity for LODParameters {
24        const NAME: &'static str = "LODParameters";
25        const NAMESPACE: &'static str = "UnityEngine.Rendering";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for LODParameters {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37}
38
39#[cfg(feature = "unity_engine-rendering-lodparameters-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-rendering-lodparameters")]
43impl LODParameters {
44    #[doc = "`Equals(crate::unity_engine::rendering::lodparameters::LODParameters)` overload"]
45    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::lodparameters::LODParameters>) -> bool {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2c52fd0usize)as*mut u8,bool;
48(*mut LODParameters)self as*mut LODParameters,(crate::unity_engine::rendering::lodparameters::LODParameters)::core::convert::Into::into(other))
49        }
50    }
51
52    #[doc = "`Equals(crate::system::object::Object)` overload"]
53    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2c53060usize)as*mut u8,bool;
56(*mut LODParameters)self as*mut LODParameters,(crate::system::object::Object)::core::convert::Into::into(obj))
57        }
58    }
59
60    #[doc = "`GetHashCode()` overload"]
61    pub fn get_hash_code(&mut self) -> i32 {
62        unsafe {
63            ::unity::il2cpp_call!((::unity::module_base()+0x2c53150usize)as*mut u8,i32;
64(*mut LODParameters)self as*mut LODParameters)
65        }
66    }
67}
68
69#[cfg(feature = "unity_engine-rendering-lodparameters")]
70impl LODParameters {
71    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73    }
74
75    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77    }
78
79    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
81    }
82}
83
84#[cfg(feature = "unity_engine-rendering-lodparameters")]
85#[doc(hidden)]
86pub mod prelude {
87    pub use super::LODParameters;
88    #[cfg(feature = "system-object")]
89    pub use crate::system::object::IObjectMethods;
90    #[cfg(feature = "system-valuetype")]
91    pub use crate::system::valuetype::IValueTypeMethods;
92    pub use crate::system::{object::IObject, valuetype::IValueType};
93}