Plasma Engine  2.0
Loading...
Searching...
No Matches
plMsgExtractGeometry Struct Reference

Sent by plWorldGeoExtractionUtil to gather geometry information about objects in a world. More...

#include <WorldGeoExtractionUtil.h>

Inheritance diagram for plMsgExtractGeometry:

Public Member Functions

 PL_DECLARE_MESSAGE_TYPE (plMsgExtractGeometry, plMessage)
 
void AddMeshObject (const plTransform &transform, plCpuMeshResourceHandle hMeshResource)
 
void AddBox (const plTransform &transform, plVec3 vExtents)
 
- Public Member Functions inherited from plMessage
virtual plInt32 GetSortingKey () const
 Derived message types can override this method to influence sorting order. Smaller keys are processed first.
 
PL_ALWAYS_INLINE plMessageId GetId () const
 Returns the id for this message type.
 
PL_ALWAYS_INLINE plUInt16 GetSize () const
 Returns the size in byte of this message.
 
PL_ALWAYS_INLINE plUInt64 GetHash () const
 Calculates a hash of the message.
 
virtual void Serialize (plStreamWriter &inout_stream) const
 Implement this for efficient transmission across process boundaries (e.g. network transfer etc.)
 
virtual void Deserialize (plStreamReader &inout_stream, plUInt8 uiTypeVersion)
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Public Attributes

plWorldGeoExtractionUtil::ExtractionMode m_Mode = plWorldGeoExtractionUtil::ExtractionMode::RenderMesh
 Specifies what the geometry is extracted for, and thus what the message handler should write back.
 
plWorldGeoExtractionUtil::MeshObjectListm_pMeshObjects = nullptr
 Append mesh objects to this to describe the requested world geometry.
 

Additional Inherited Members

- Static Public Member Functions inherited from plMessage
static void PackageForTransfer (const plMessage &msg, plStreamWriter &inout_stream)
 Writes msg to stream in such a way that ReplicatePackedMessage() can restore it even in another process.
 
static plUniquePtr< plMessageReplicatePackedMessage (plStreamReader &inout_stream)
 Restores a message that was written by PackageForTransfer()
 
- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 
- Protected Member Functions inherited from plMessage
 plMessage (size_t messageSize)
 
- Static Protected Member Functions inherited from plMessage
static PL_ALWAYS_INLINE plMessageId GetNextMsgId ()
 
- Protected Attributes inherited from plMessage
plMessageId m_Id
 
plUInt16 m_uiSize
 
- Static Protected Attributes inherited from plMessage
static plMessageId s_NextMsgId = 0
 

Detailed Description

Sent by plWorldGeoExtractionUtil to gather geometry information about objects in a world.

The mode defines what the geometry is needed for, thus components should decide to participate or not and how detailed the geometry is they return.


The documentation for this struct was generated from the following files: