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_ObjectSave_Settings MR_ObjectSave_Settings; // Defined in `#include <MRCMesh/MRObjectSaveSettings.h>`.
12typedef 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>`.
13typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
14typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
15
16
17// loads scene from glTF file in a new container object
23
24// saves scene to a glTF file
30MRC_API MR_expected_void_std_string *MR_serializeObjectTreeToGltf(const MR_Object *root, const char *file, const char *file_end, const MR_ObjectSave_Settings *settings);
31
32#ifdef __cplusplus
33} // extern "C"
34#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:19
MRC_API MR_expected_void_std_string * MR_serializeObjectTreeToGltf(const MR_Object *root, const char *file, const char *file_end, const MR_ObjectSave_Settings *settings)
struct MR_expected_std_shared_ptr_MR_Object_std_string MR_expected_std_shared_ptr_MR_Object_std_string
Definition MRGltf.h:12
struct MR_ObjectSave_Settings MR_ObjectSave_Settings
Definition MRGltf.h:11
struct MR_Object MR_Object
Definition MRGltf.h:10
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