Navigation
API > API/Plugins > API/Plugins/MutableRuntime > API/Plugins/MutableRuntime/MuR
Inheritance Hierarchy
- Base
- FMeshBufferSet
References
| Module | MutableRuntime |
| Header | /Engine/Plugins/Experimental/Mutable/Source/MutableRuntime/Public/MuR/MeshBufferSet.h |
| Include | #include "MuR/MeshBufferSet.h" |
Syntax
class FMeshBufferSet : public mu::Base
Remarks
Set of buffers storing mesh element data. Elements can be vertices, indices or faces.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< MESH_BUFFER > | m_buffers | ||
| uint32 | m_elementCount |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBuffer
(
const FMeshBufferSet& Other, |
Add a new buffer by cloning a buffer from another set. | |
| void | CopyElement
(
uint32 fromIndex, |
Copy an element from one position to another, overwriting the other element. | |
| void | FindChannel
(
MESH_BUFFER_SEMANTIC semantic, |
Utility methods. | |
| int32 | |||
| int32 | GetBufferChannelCount
(
int32 buffer |
Get the number of channels in a vertex buffer. | |
| int32 | Get the number of vertex buffers in the mesh. | ||
| const uint8 * | GetBufferData
(
int32 buffer |
Get a pointer to the object-owned data of a buffer. | |
| uint8 * | GetBufferData
(
int32 buffer |
Get a pointer to the object-owned data of a buffer. | |
| uint32 | GetBufferDataSize
(
int32 buffer |
Get a pointer to the object-owned data of a buffer. | |
| void | GetChannel
(
int32 buffer, |
Get a channel of a buffer by index | |
| int32 | GetChannelOffset
(
int32 buffer, |
Get the offset in bytes of the data of this channel inside an element data. | |
| int32 | GetDataSize () |
Get the total memory size of the buffers and this struct. | |
| int32 | Get the number of elements in the buffers. | ||
| int32 | GetElementSize
(
int32 buffer |
Get the size in bytes of a buffer element. | |
| bool | HasSameFormat
(
int32 buffer, |
Compare the format of the two buffers at index buffer and return true if they match. | |
| bool | HasSameFormat
(
const FMeshBufferSet& Other |
Return true if the formats of the two vertex buffers set match. | |
| bool | IsSimilar
(
const FMeshBufferSet& o |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | |
| bool | IsSimilarRobust
(
const FMeshBufferSet& Other, |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | |
| bool | IsSpecialBufferToIgnoreInSimilar
(
const MESH_BUFFER& b |
Compare the mesh buffer with another one, but ignore internal data like generated vertex indices. | |
| void | RemoveBuffer
(
int32 BufferIndex |
Remove the buffer at the specified position. | |
| void | Change the buffer descriptions so that all buffer indices start at 0 and are in the same order than memory. | ||
| void | Serialise
(
OutputArchive& arch |
||
| void | SetBuffer
(
int32 buffer, |
Set all the channels of a buffer | |
| void | SetBufferChannel
(
int32 buffer, |
Set one channels of a buffer | |
| void | SetBufferCount
(
int32 |
Set the number of vertex buffers in the mesh. | |
| void | SetElementCount
(
int32 |
Set the number of vertices in the mesh. | |
| void | Unserialise
(
InputArchive& arch |
||
| void | UpdateOffsets
(
int32 b |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FMeshBufferSet& o |