MeshLib C Docs
Loading...
Searching...
No Matches
MRMakeSphereMesh.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
12
13
16
21
25
30
35
39
44
48
53
56MRC_API MR_SphereParams *MR_SphereParams_ConstructFrom(float radius, int numMeshVertices);
57
60
63
68
71
74
80
86
93MRC_API MR_Mesh *MR_makeUVSphere(const float *radius, const int *horisontalResolution, const int *verticalResolution);
94
95#ifdef __cplusplus
96} // extern "C"
97#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:12
MRC_API MR_SphereParams * MR_SphereParams_OffsetMutablePtr(MR_SphereParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Mesh * MR_makeUVSphere(const float *radius, const int *horisontalResolution, const int *verticalResolution)
MRC_API void MR_SphereParams_DestroyArray(const MR_SphereParams *_this)
Destroys a heap-allocated array of MR_SphereParams. Does nothing if the pointer is null.
MRC_API const float * MR_SphereParams_Get_radius(const MR_SphereParams *_this)
MRC_API float * MR_SphereParams_GetMutable_radius(MR_SphereParams *_this)
MRC_API MR_SphereParams * MR_SphereParams_DefaultConstructArray(size_t num_elems)
MRC_API int * MR_SphereParams_GetMutable_numMeshVertices(MR_SphereParams *_this)
MRC_API const int * MR_SphereParams_Get_numMeshVertices(const MR_SphereParams *_this)
MRC_API MR_Mesh * MR_makeSphere(const MR_SphereParams *params)
MRC_API void MR_SphereParams_Set_radius(MR_SphereParams *_this, float value)
MRC_API void MR_SphereParams_Set_numMeshVertices(MR_SphereParams *_this, int value)
MRC_API MR_SphereParams * MR_SphereParams_ConstructFrom(float radius, int numMeshVertices)
MRC_API MR_SphereParams * MR_SphereParams_AssignFromAnother(MR_SphereParams *_this, const MR_SphereParams *_other)
MRC_API MR_SphereParams * MR_SphereParams_ConstructFromAnother(const MR_SphereParams *_other)
struct MR_SphereParams MR_SphereParams
Generated from class MR::SphereParams.
Definition MRMakeSphereMesh.h:15
MRC_API MR_SphereParams * MR_SphereParams_DefaultConstruct(void)
MRC_API const MR_SphereParams * MR_SphereParams_OffsetPtr(const MR_SphereParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_SphereParams_Destroy(const MR_SphereParams *_this)
Destroys a heap-allocated instance of MR_SphereParams. Does nothing if the pointer is null.
#define MRC_API
Definition exports.h:11