MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshTexture.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRColor.h>
4#include <MRCMesh/MREnums.h>
5#include <MRCMesh/MRVector2.h>
6#include <MRCMisc/common.h>
7#include <MRCMisc/exports.h>
8
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_Image MR_Image; // Defined in `#include <MRCMesh/MRImage.h>`.
16typedef struct MR_Vector2f MR_Vector2f; // Defined in `#include <MRCMesh/MRVector2.h>`.
17typedef struct MR_std_vector_MR_Color MR_std_vector_MR_Color; // Defined in `#include <MRCMisc/std_vector_MR_Color.h>`.
18
19
26
31
35
40
45
49
54
59
63
68
73
77
82
86
91
94
97
101
104
108
111
114
119
124
131
138
145
146#ifdef __cplusplus
147} // extern "C"
148#endif
struct MR_std_vector_MR_Color MR_std_vector_MR_Color
Definition MRCtm.h:33
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:18
char MR_WrapType
Definition MREnums.h:19
char MR_FilterType
Definition MREnums.h:12
struct MR_Image MR_Image
Definition MRJpeg.h:10
MRC_API const MR_Image * MR_MeshTexture_UpcastTo_MR_Image(const MR_MeshTexture *object)
MRC_API void MR_MeshTexture_Set_pixels(MR_MeshTexture *_this, MR_PassBy value_pass_by, MR_std_vector_MR_Color *value)
MRC_API MR_Image * MR_MeshTexture_MutableUpcastTo_MR_Image(MR_MeshTexture *object)
Upcasts an instance of MR::MeshTexture to its base class MR::Image.
MRC_API void MR_MeshTexture_Set_wrap(MR_MeshTexture *_this, MR_WrapType value)
MRC_API void MR_MeshTexture_Set_filter(MR_MeshTexture *_this, MR_FilterType value)
MRC_API void MR_MeshTexture_Set_resolution(MR_MeshTexture *_this, MR_Vector2i value)
MRC_API void MR_MeshTexture_Destroy(const MR_MeshTexture *_this)
Destroys a heap-allocated instance of MR_MeshTexture. Does nothing if the pointer is null.
MRC_API void MR_MeshTexture_DestroyArray(const MR_MeshTexture *_this)
Destroys a heap-allocated array of MR_MeshTexture. Does nothing if the pointer is null.
MRC_API const MR_FilterType * MR_MeshTexture_Get_filter(const MR_MeshTexture *_this)
MRC_API MR_MeshTexture * MR_MeshTexture_ConstructFromAnother(MR_PassBy _other_pass_by, MR_MeshTexture *_other)
MRC_API MR_Color MR_MeshTexture_sampleDiscrete(const MR_MeshTexture *_this, const MR_Vector2f *pos)
MRC_API const MR_std_vector_MR_Color * MR_MeshTexture_Get_pixels(const MR_MeshTexture *_this)
MRC_API MR_MeshTexture * MR_MeshTexture_OffsetMutablePtr(MR_MeshTexture *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 const MR_MeshTexture * MR_MeshTexture_OffsetPtr(const MR_MeshTexture *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_MeshTexture * MR_MeshTexture_DefaultConstruct(void)
MRC_API MR_Vector2i * MR_MeshTexture_GetMutable_resolution(MR_MeshTexture *_this)
MRC_API const MR_WrapType * MR_MeshTexture_Get_wrap(const MR_MeshTexture *_this)
MRC_API MR_FilterType * MR_MeshTexture_GetMutable_filter(MR_MeshTexture *_this)
MRC_API MR_uint64_t MR_MeshTexture_heapBytes(const MR_MeshTexture *_this)
MRC_API MR_Color MR_MeshTexture_sampleBilinear(const MR_MeshTexture *_this, const MR_Vector2f *pos)
MRC_API MR_MeshTexture * MR_MeshTexture_AssignFromAnother(MR_MeshTexture *_this, MR_PassBy _other_pass_by, MR_MeshTexture *_other)
MRC_API MR_MeshTexture * MR_MeshTexture_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_vector_MR_Color * MR_MeshTexture_GetMutable_pixels(MR_MeshTexture *_this)
MRC_API MR_WrapType * MR_MeshTexture_GetMutable_wrap(MR_MeshTexture *_this)
MRC_API const MR_Vector2i * MR_MeshTexture_Get_resolution(const MR_MeshTexture *_this)
MRC_API MR_Color MR_MeshTexture_sample(const MR_MeshTexture *_this, MR_FilterType filter, const MR_Vector2f *pos)
MR_PassBy
Definition common.h:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRVector2.h:45
Definition MRVector2.h:29