MeshLib C Docs
Loading...
Searching...
No Matches
MRTextureColors.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRColor.h>
4#include <MRCMesh/MRId.h>
5#include <MRCMisc/exports.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
12typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
13typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
14typedef struct MR_TriCornerUVCoords MR_TriCornerUVCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
15typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
16typedef struct MR_std_optional_MR_Vector2f MR_std_optional_MR_Vector2f; // Defined in `#include <MRCMisc/std_optional_MR_Vector2f.h>`.
17typedef struct MR_std_optional_MR_VertCoords2 MR_std_optional_MR_VertCoords2; // Defined in `#include <MRCMisc/std_optional_MR_VertCoords2.h>`.
18
19
27
35
42MRC_API MR_Color MR_sampleVertexColor(const MR_Mesh *mesh, MR_VertId v, const MR_MeshTexture *tex, const MR_TriCornerUVCoords *triCornerUvCoords);
43
51MRC_API MR_VertColors *MR_sampleVertexColors(const MR_Mesh *mesh, const MR_MeshTexture *tex, const MR_TriCornerUVCoords *triCornerUvCoords);
52
53#ifdef __cplusplus
54} // extern "C"
55#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:15
struct MR_std_optional_MR_Vector2f MR_std_optional_MR_Vector2f
Definition MRCNCMachineSettings.h:15
struct MR_VertColors MR_VertColors
Definition MRCtm.h:22
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:18
struct MR_TriCornerUVCoords MR_TriCornerUVCoords
Definition MRPly.h:15
MRC_API MR_Color MR_sampleVertexColor(const MR_Mesh *mesh, MR_VertId v, const MR_MeshTexture *tex, const MR_TriCornerUVCoords *triCornerUvCoords)
MRC_API MR_std_optional_MR_VertCoords2 * MR_findVertexUVs(const MR_MeshTopology *topology, const MR_TriCornerUVCoords *triCornerUvCoords)
MRC_API MR_VertColors * MR_sampleVertexColors(const MR_Mesh *mesh, const MR_MeshTexture *tex, const MR_TriCornerUVCoords *triCornerUvCoords)
struct MR_std_optional_MR_VertCoords2 MR_std_optional_MR_VertCoords2
Definition MRTextureColors.h:17
MRC_API MR_std_optional_MR_Vector2f * MR_findVertexUV(const MR_MeshTopology *topology, MR_VertId v, const MR_TriCornerUVCoords *triCornerUvCoords)
#define MRC_API
Definition exports.h:11
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRId.h:55