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#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13
14
17
22
26
31
36
40
45
49
54
57MRC_API MR_SphereParams *MR_SphereParams_ConstructFrom(float radius, int32_t numMeshVertices);
58
61
64
69
72
75
81
87
94MRC_API MR_Mesh *MR_makeUVSphere(const float *radius, const int32_t *horisontalResolution, const int32_t *verticalResolution);
95
96#ifdef __cplusplus
97} // extern "C"
98#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
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 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 MR_SphereParams * MR_SphereParams_ConstructFrom(float radius, int32_t numMeshVertices)
MRC_API int32_t * MR_SphereParams_GetMutable_numMeshVertices(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 MR_Mesh * MR_makeSphere(const MR_SphereParams *params)
MRC_API void MR_SphereParams_Set_radius(MR_SphereParams *_this, float value)
MRC_API const int32_t * MR_SphereParams_Get_numMeshVertices(const MR_SphereParams *_this)
MRC_API MR_Mesh * MR_makeUVSphere(const float *radius, const int32_t *horisontalResolution, const int32_t *verticalResolution)
MRC_API void MR_SphereParams_Set_numMeshVertices(MR_SphereParams *_this, int32_t value)
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:16
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