![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Sample implementation of PhysicsMaterial that just holds the needed properties directly. More...
#include <PhysicsMaterialSimple.h>
Public Member Functions | |
PhysicsMaterialSimple ()=default | |
Constructor. | |
PhysicsMaterialSimple (const string_view &inName, ColorArg inColor) | |
virtual const char * | GetDebugName () const override |
virtual Color | GetDebugColor () const override |
virtual void | SaveBinaryState (StreamOut &inStream) const override |
Saves the contents of the material in binary form to inStream. | |
![]() | |
PhysicsMaterial ()=default | |
Constructor. | |
virtual | ~PhysicsMaterial () override=default |
![]() | |
virtual | ~SerializableObject ()=default |
Destructor. | |
![]() | |
RefTarget ()=default | |
Constructor. | |
RefTarget (const RefTarget &) | |
~RefTarget () | |
assert no one is referencing us | |
void | SetEmbedded () const |
RefTarget & | operator= (const RefTarget &) |
Assignment operator. | |
uint32 | GetRefCount () const |
Get current refcount of this object. | |
void | AddRef () const |
Add or release a reference to this object. | |
void | Release () const |
Protected Member Functions | |
virtual void | RestoreBinaryState (StreamIn &inStream) override |
This function should not be called directly, it is used by sRestoreFromBinaryState. | |
![]() | |
PhysicsMaterial (const PhysicsMaterial &)=default | |
Don't allow copy constructing this base class, but allow derived classes to copy themselves. | |
PhysicsMaterial & | operator= (const PhysicsMaterial &)=default |
![]() | |
SerializableObject ()=default | |
Don't allow (copy) constructing this base class, but allow derived classes to (copy) construct themselves. | |
SerializableObject (const SerializableObject &)=default | |
SerializableObject & | operator= (const SerializableObject &)=default |
Additional Inherited Members | |
![]() | |
using | PhysicsMaterialResult = Result<Ref<PhysicsMaterial>> |
![]() | |
static PhysicsMaterialResult | sRestoreFromBinaryState (StreamIn &inStream) |
Creates a PhysicsMaterial of the correct type and restores its contents from the binary stream inStream. | |
![]() | |
static int | sInternalGetRefCountOffset () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. | |
![]() | |
static RefConst< PhysicsMaterial > | sDefault |
Default material that is used when a shape has no materials defined. | |
![]() | |
atomic< uint32 > | mRefCount |
Current reference count. | |
![]() | |
static constexpr uint32 | cEmbedded |
A large value that gets added to the refcount to mark the object as embedded. | |
Sample implementation of PhysicsMaterial that just holds the needed properties directly.
|
default |
Constructor.
|
inline |
|
inlineoverridevirtual |
Reimplemented from PhysicsMaterial.
|
inlineoverridevirtual |
Reimplemented from PhysicsMaterial.
|
overrideprotectedvirtual |
This function should not be called directly, it is used by sRestoreFromBinaryState.
Reimplemented from PhysicsMaterial.
|
overridevirtual |
Saves the contents of the material in binary form to inStream.
Reimplemented from PhysicsMaterial.