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. More... | |
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. More... | |
Public Member Functions inherited from PhysicsMaterial | |
virtual | ~PhysicsMaterial () override=default |
Virtual destructor. More... | |
virtual const char * | GetDebugName () const |
virtual Color | GetDebugColor () const |
virtual void | SaveBinaryState (StreamOut &inStream) const |
Saves the contents of the material in binary form to inStream. More... | |
Public Member Functions inherited from SerializableObject | |
virtual | ~SerializableObject ()=default |
Constructor. More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Public Member Functions inherited from RefTarget< PhysicsMaterial > | |
RefTarget ()=default | |
Constructor. More... | |
RefTarget (const RefTarget &) | |
~RefTarget () | |
assert no one is referencing us More... | |
void | SetEmbedded () const |
RefTarget & | operator= (const RefTarget &) |
Assignment operator. More... | |
uint32 | GetRefCount () const |
Get current refcount of this object. More... | |
void | AddRef () const |
Add or release a reference to this object. More... | |
void | Release () const |
Protected Member Functions | |
virtual void | RestoreBinaryState (StreamIn &inStream) override |
This function should not be called directly, it is used by sRestoreFromBinaryState. More... | |
virtual void | RestoreBinaryState (StreamIn &inStream) |
This function should not be called directly, it is used by sRestoreFromBinaryState. More... | |
Additional Inherited Members | |
Public Types inherited from PhysicsMaterial | |
using | PhysicsMaterialResult = Result< Ref< PhysicsMaterial > > |
Static Public Member Functions inherited from PhysicsMaterial | |
static PhysicsMaterialResult | sRestoreFromBinaryState (StreamIn &inStream) |
Creates a PhysicsMaterial of the correct type and restores its contents from the binary stream inStream. More... | |
Static Public Member Functions inherited from RefTarget< PhysicsMaterial > | |
static int | sInternalGetRefCountOffset () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More... | |
Static Public Attributes inherited from PhysicsMaterial | |
static RefConst< PhysicsMaterial > | sDefault |
Default material that is used when a shape has no materials defined. More... | |
Protected Attributes inherited from RefTarget< PhysicsMaterial > | |
atomic< uint32 > | mRefCount |
Current reference count. More... | |
Static Protected Attributes inherited from RefTarget< PhysicsMaterial > | |
static constexpr uint32 | cEmbedded |
A large value that gets added to the refcount to mark the object as embedded. More... | |
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.