MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshDiff.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
14
15
20typedef struct MR_MeshDiff MR_MeshDiff;
21
25
30
33MRC_API const MR_MeshDiff *MR_MeshDiff_OffsetPtr(const MR_MeshDiff *ptr, ptrdiff_t i);
34
38
42MRC_API MR_MeshDiff *MR_MeshDiff_ConstructFromAnother(MR_PassBy _other_pass_by, MR_MeshDiff *_other);
43
51MRC_API MR_MeshDiff *MR_MeshDiff_Construct(const MR_Mesh *from, const MR_Mesh *to);
52
54MRC_API void MR_MeshDiff_Destroy(const MR_MeshDiff *_this);
55
57MRC_API void MR_MeshDiff_DestroyArray(const MR_MeshDiff *_this);
58
64MRC_API MR_MeshDiff *MR_MeshDiff_AssignFromAnother(MR_MeshDiff *_this, MR_PassBy _other_pass_by, MR_MeshDiff *_other);
65
72
78MRC_API bool MR_MeshDiff_any(const MR_MeshDiff *_this);
79
83MRC_API MR_uint64_t MR_MeshDiff_heapBytes(const MR_MeshDiff *_this);
84
85#ifdef __cplusplus
86} // extern "C"
87#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
MRC_API MR_uint64_t MR_MeshDiff_heapBytes(const MR_MeshDiff *_this)
MRC_API void MR_MeshDiff_DestroyArray(const MR_MeshDiff *_this)
Destroys a heap-allocated array of MR_MeshDiff. Does nothing if the pointer is null.
MRC_API MR_MeshDiff * MR_MeshDiff_OffsetMutablePtr(MR_MeshDiff *ptr, ptrdiff_t i)
MRC_API MR_MeshDiff * MR_MeshDiff_ConstructFromAnother(MR_PassBy _other_pass_by, MR_MeshDiff *_other)
MRC_API bool MR_MeshDiff_any(const MR_MeshDiff *_this)
MRC_API MR_MeshDiff * MR_MeshDiff_Construct(const MR_Mesh *from, const MR_Mesh *to)
MRC_API const MR_MeshDiff * MR_MeshDiff_OffsetPtr(const MR_MeshDiff *ptr, ptrdiff_t i)
MRC_API MR_MeshDiff * MR_MeshDiff_DefaultConstruct(void)
MRC_API MR_MeshDiff * MR_MeshDiff_DefaultConstructArray(size_t num_elems)
MRC_API void MR_MeshDiff_Destroy(const MR_MeshDiff *_this)
Destroys a heap-allocated instance of MR_MeshDiff. Does nothing if the pointer is null.
MRC_API void MR_MeshDiff_applyAndSwap(MR_MeshDiff *_this, MR_Mesh *m)
MRC_API MR_MeshDiff * MR_MeshDiff_AssignFromAnother(MR_MeshDiff *_this, MR_PassBy _other_pass_by, MR_MeshDiff *_other)
struct MR_MeshDiff MR_MeshDiff
Definition MRMeshDiff.h:20