Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SerializableAttributeTyped.h File Reference

Go to the source code of this file.

Macros

#define JPH_ADD_ATTRIBUTE_WITH_ALIAS(class_name, member_name, alias_name)    AddSerializableAttributeTyped<decltype(class_name::member_name)>(inRTTI, offsetof(class_name, member_name), alias_name);
 
#define JPH_ADD_ATTRIBUTE(class_name, member_name)    JPH_ADD_ATTRIBUTE_WITH_ALIAS(class_name, member_name, #member_name)
 

Functions

template<class MemberType >
JPH_NAMESPACE_BEGIN void AddSerializableAttributeTyped (RTTI &inRTTI, uint inOffset, const char *inName)
 

Macro Definition Documentation

◆ JPH_ADD_ATTRIBUTE

#define JPH_ADD_ATTRIBUTE ( class_name,
member_name )    JPH_ADD_ATTRIBUTE_WITH_ALIAS(class_name, member_name, #member_name)

◆ JPH_ADD_ATTRIBUTE_WITH_ALIAS

#define JPH_ADD_ATTRIBUTE_WITH_ALIAS ( class_name,
member_name,
alias_name )    AddSerializableAttributeTyped<decltype(class_name::member_name)>(inRTTI, offsetof(class_name, member_name), alias_name);

Function Documentation

◆ AddSerializableAttributeTyped()

template<class MemberType >
JPH_NAMESPACE_BEGIN void AddSerializableAttributeTyped ( RTTI & inRTTI,
uint inOffset,
const char * inName )
inline