9 #ifndef GO_PXL_SDK_GOGDPMESH_H
10 #define GO_PXL_SDK_GOGDPMESH_H
64 std::vector<std::shared_ptr<void>>
buffer;
67 MeshMsgChannel(k32s
id, k32u type, k32s state, k32u flag, kSize allocatedCount, kSize usedCount, std::vector<std::shared_ptr<void>> buffer) :
68 id(id), type(type), state(state), flag(flag), allocatedCount(allocatedCount), usedCount(usedCount), buffer(buffer)
94 void Deserialize(kSerializer serializer)
override;
103 const bool HasData()
const;
112 const kSize SystemChannelCount()
const;
121 const kSize MaxUserChannelCount()
const;
130 const kSize UserChannelCount()
const;
139 const kSize ChannelCount()
const;
148 const kPoint3d64f Offset()
const;
157 const kPoint3d64f Range()
const;
188 const k32u ChannelFlag(
size_t id)
const;
200 const kSize AllocatedChannelDataCount(
size_t id)
const;
208 const kSize UsedChannelDataCount(
size_t id)
const;
216 const std::vector<std::shared_ptr<void>>& ChannelData(
size_t id)
const;
219 bool hasData =
false;
220 kSize systemChannelCount = 0;
221 kSize maxUserChannelCount = 0;
222 kSize userChannelCount = 0;
223 kSize channelCount = 0;
224 kPoint3d64f offset = { 0.0 };
225 kPoint3d64f range = { 0.0 };
226 std::vector<MeshMsgChannel> channels;
228 friend class ::GoGdpMsgTests;
Channel_Type
Definition: GoGdpMesh.h:28
#define GoPxLSdkClass
Definition: Def.h:35
Definition: GoGdpMesh.h:41
k32u vertex2
Definition: GoGdpMesh.h:52
Definition: GoGdpMesh.h:25
Definition: GoGdpMesh.h:45
Definition: GoGdpMesh.h:56
kSize usedCount
Definition: GoGdpMesh.h:63
Definition: GoGdpMesh.h:35
Definition: GoGdpMesh.h:36
k32u flag
Definition: GoGdpMesh.h:61
Definition: GoGdpMesh.h:43
MeshMsgChannel(k32s id, k32u type, k32s state, k32u flag, kSize allocatedCount, kSize usedCount, std::vector< std::shared_ptr< void >> buffer)
Definition: GoGdpMesh.h:67
std::vector< std::shared_ptr< void > > buffer
Definition: GoGdpMesh.h:64
k32u id
Definition: GoGdpMesh.h:58
Channel_ID
Definition: GoGdpMesh.h:18
k32u type
Definition: GoGdpMesh.h:59
kSize allocatedCount
Definition: GoGdpMesh.h:62
Definition: GoGdpMesh.h:30
Definition: GoGdpMesh.h:23
Definition: GoGdpMesh.h:44
Definition: GoGdpMesh.h:42
Channel_State
Definition: GoGdpMesh.h:39
Definition: GoGdpMesh.h:20
Definition: GoGdpMesh.h:74
Definition: GoGdpMesh.h:33
k32u vertex3
Definition: GoGdpMesh.h:53
Definition: GoGdpMesh.h:34
k32u vertex1
Definition: GoGdpMesh.h:51
k32s state
Definition: GoGdpMesh.h:60
Definition: GoGdpMesh.h:22
Definition: GoGdpMesh.h:21
Definition: GoGdpMesh.h:46
Definition: GoGdpMesh.h:49
Definition: GoGdpMsg.h:37
Definition: GoGdpMesh.h:32
Definition: GoGdpMesh.h:24
Definition: GoGdpMesh.h:31