MeshLib C Docs
Loading...
Searching...
No Matches
MRHexPalette.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRColor.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_std_array_MR_Color_30 MR_std_array_MR_Color_30; // Defined in `#include <MRCMisc/std_array_MR_Color_30.h>`.
13
14
20
24
25// num colors between two corner colors + 1
29
33
38
43
47
52
56
60
66
69
72
80
84
85#ifdef __cplusplus
86} // extern "C"
87#endif
MRC_API MR_HexPalette * MR_HexPalette_OffsetMutablePtr(MR_HexPalette *ptr, ptrdiff_t i)
MRC_API const int * MR_HexPalette_Get_N(void)
MRC_API MR_HexPalette * MR_HexPalette_ConstructFromAnother(const MR_HexPalette *_other)
MRC_API const MR_std_array_MR_Color_30 * MR_HexPalette_Get_colors(void)
MRC_API const int * MR_HexPalette_Get_CORNER_COLORS(void)
MRC_API MR_HexPalette * MR_HexPalette_DefaultConstructArray(size_t num_elems)
MRC_API MR_HexPalette * MR_HexPalette_AssignFromAnother(MR_HexPalette *_this, const MR_HexPalette *_other)
MRC_API void MR_HexPalette_Destroy(const MR_HexPalette *_this)
Destroys a heap-allocated instance of MR_HexPalette. Does nothing if the pointer is null.
MRC_API MR_HexPalette * MR_HexPalette_DefaultConstruct(void)
MRC_API const int * MR_HexPalette_Get_STEP(void)
struct MR_HexPalette MR_HexPalette
Definition MRHexPalette.h:19
MRC_API const int * MR_HexPalette_Get_SIDE_COLORS(void)
MRC_API const MR_HexPalette * MR_HexPalette_OffsetPtr(const MR_HexPalette *ptr, ptrdiff_t i)
MRC_API void MR_HexPalette_DestroyArray(const MR_HexPalette *_this)
Destroys a heap-allocated array of MR_HexPalette. Does nothing if the pointer is null.
MRC_API MR_Color MR_HexPalette_colorAtStep(int i)
#define MRC_API
Definition include/MRCMisc/exports.h:11
Generated from class MR::Color.
Definition MRColor.h:18
A fixed-size array of MR::Color of size 30.
Definition std_array_MR_Color_30.h:12