MeshLib C Docs
Loading...
Searching...
No Matches
MRGltf.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
11typedef struct MR_expected_std_shared_ptr_MR_Object_std_string MR_expected_std_shared_ptr_MR_Object_std_string; // Defined in `#include <MRCMisc/expected_std_shared_ptr_MR_Object_std_string.h>`.
12typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
13typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
14
15
16// loads scene from glTF file in a new container object
22
23// saves scene to a glTF file
29MRC_API MR_expected_void_std_string *MR_serializeObjectTreeToGltf(const MR_Object *root, const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback);
30
31#ifdef __cplusplus
32} // extern "C"
33#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:20
struct MR_expected_std_shared_ptr_MR_Object_std_string MR_expected_std_shared_ptr_MR_Object_std_string
Definition MRGltf.h:11
struct MR_Object MR_Object
Definition MRGltf.h:10
MRC_API MR_expected_void_std_string * MR_serializeObjectTreeToGltf(const MR_Object *root, const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_expected_std_shared_ptr_MR_Object_std_string * MR_deserializeObjectTreeFromGltf(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11