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
17
22
27
32
37
42
47
51
56
60MRC_API MR_SphereParams *MR_SphereParams_ConstructFrom(float radius, int numMeshVertices);
61
65
69
75
78
81
89
95
102MRC_API MR_Mesh *MR_makeUVSphere(const float *radius, const int *horisontalResolution, const int *verticalResolution);
103
104#ifdef __cplusplus
105} // extern "C"
106#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
MRC_API MR_SphereParams * MR_SphereParams_OffsetMutablePtr(MR_SphereParams *ptr, ptrdiff_t i)
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
Definition MRMakeSphereMesh.h:16
MRC_API MR_SphereParams * MR_SphereParams_DefaultConstruct(void)
MRC_API const MR_SphereParams * MR_SphereParams_OffsetPtr(const MR_SphereParams *ptr, ptrdiff_t i)
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