pub struct hkxMaterial<'a> {
pub __ptr: Option<Pointer>,
pub parent: hkxAttributeHolder<'a>,
pub m_name: StringPtr<'a>,
pub m_stages: Vec<hkxMaterialTextureStage>,
pub m_diffuseColor: Vector4,
pub m_ambientColor: Vector4,
pub m_specularColor: Vector4,
pub m_emissiveColor: Vector4,
pub m_subMaterials: Vec<Pointer>,
pub m_extraData: Pointer,
pub m_properties: Vec<hkxMaterialProperty>,
}Expand description
§C++ Info
- name:
hkxMaterial - version:
1 - signature:
0x2954537a - size:
144(x86)/176(x86_64) - vtable:
true
Fields§
§__ptr: Option<Pointer>§Unique index for this class
- Represents a pointer on XML (
<hkobject name="#0001"></hkobject>) Option::None=> This class isclass in field.(<hkobject></hkobject>)
§Note
Not present in the binary & Not exist actual C++ field.
parent: hkxAttributeHolder<'a>Alternative to C++ class inheritance.
m_name: StringPtr<'a>§C++ Info
- name:
name(ctype:hkStringPtr) - offset:
20(x86)/32(x86_64) - type_size:
4(x86)/8(x86_64)
m_stages: Vec<hkxMaterialTextureStage>§C++ Info
- name:
stages(ctype:hkArray<struct hkxMaterialTextureStage>) - offset:
24(x86)/40(x86_64) - type_size:
12(x86)/16(x86_64)
m_diffuseColor: Vector4§C++ Info
- name:
diffuseColor(ctype:hkVector4) - offset:
48(x86)/64(x86_64) - type_size:
16(x86)/16(x86_64)
m_ambientColor: Vector4§C++ Info
- name:
ambientColor(ctype:hkVector4) - offset:
64(x86)/80(x86_64) - type_size:
16(x86)/16(x86_64)
m_specularColor: Vector4§C++ Info
- name:
specularColor(ctype:hkVector4) - offset:
80(x86)/96(x86_64) - type_size:
16(x86)/16(x86_64)
m_emissiveColor: Vector4§C++ Info
- name:
emissiveColor(ctype:hkVector4) - offset:
96(x86)/112(x86_64) - type_size:
16(x86)/16(x86_64)
m_subMaterials: Vec<Pointer>§C++ Info
- name:
subMaterials(ctype:hkArray<hkxMaterial*>) - offset:
112(x86)/128(x86_64) - type_size:
12(x86)/16(x86_64)
m_extraData: Pointer§C++ Info
- name:
extraData(ctype:struct hkReferencedObject*) - offset:
124(x86)/144(x86_64) - type_size:
4(x86)/8(x86_64)
m_properties: Vec<hkxMaterialProperty>§C++ Info
- name:
properties(ctype:hkArray<struct hkxMaterialProperty>) - offset:
128(x86)/152(x86_64) - type_size:
12(x86)/16(x86_64)
Trait Implementations§
Source§impl<'a> Clone for hkxMaterial<'a>
impl<'a> Clone for hkxMaterial<'a>
Source§impl<'a> Debug for hkxMaterial<'a>
impl<'a> Debug for hkxMaterial<'a>
Source§impl<'a> Default for hkxMaterial<'a>
impl<'a> Default for hkxMaterial<'a>
Source§impl<'de> Deserialize<'de> for hkxMaterial<'de>
impl<'de> Deserialize<'de> for hkxMaterial<'de>
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> HavokClass for hkxMaterial<'a>
impl<'a> HavokClass for hkxMaterial<'a>
Source§impl<'a> PartialEq for hkxMaterial<'a>
impl<'a> PartialEq for hkxMaterial<'a>
Auto Trait Implementations§
impl<'a> Freeze for hkxMaterial<'a>
impl<'a> RefUnwindSafe for hkxMaterial<'a>
impl<'a> Send for hkxMaterial<'a>
impl<'a> Sync for hkxMaterial<'a>
impl<'a> Unpin for hkxMaterial<'a>
impl<'a> UnwindSafe for hkxMaterial<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more