14
14
15
15
16
16
#include <RadeonProRender.h>
17
+ #include <RprLoadStore.h>
17
18
18
19
#ifdef __cplusplus
19
20
extern "C" {
@@ -71,10 +72,13 @@ struct RprGltfImportCallbacks
71
72
@param scene The scene at gltTF::scene is loaded and stored in this handle.
72
73
@param callbacks Callbacks to be used during scene parsing - set it to NULL if not used.
73
74
@param importFlags see RPRGLTF_IMPORTFLAG_* for more details - set it to 0 if not used.
75
+ @param rprsCtx new argument introduced in 2.02.6 API. can be NULL.
76
+ This context is created/deleted with rprsCreateContext/rprsDeleteContext.
77
+ It can be used to store additional data for the Export
74
78
@return GLTF_SUCCESS if success, GLTF_ERROR_IMPORT or GLTF_ERROR_LOAD otherwise.
75
79
*/
76
80
extern int rprImportFromGLTF (const char * filename , rpr_context context , rpr_material_system materialSystem , rpr_scene * scene ,
77
- RprGltfImportCallbacks * callbacks , unsigned int importFlags );
81
+ RprGltfImportCallbacks * callbacks , unsigned int importFlags , RPRS_context rprsCtx );
78
82
79
83
/* Exports a list of Radeon ProRender scenes to a gltf file on disk.
80
84
@param filename The path to the gltf file to export. (For Unicode, you can encode the name with UTF-8)
@@ -83,9 +87,12 @@ extern int rprImportFromGLTF(const char* filename, rpr_context context, rpr_mate
83
87
@param uberMatContext The pre-initialized Radeon ProRender uber material system context handle to export API objects from.
84
88
@param scenes All exported scenes to be written out to the gltf file.
85
89
@param exportFlags (new parameter from RPR SDK 1.325) - see RPRGLTF_EXPORTFLAG_* for more details - set it to 0 if not used.
90
+ @param rprsCtx new argument introduced in 2.02.6 API. can be NULL.
91
+ This context is created/deleted with rprsCreateContext/rprsDeleteContext.
92
+ It can be used to read additional data after an Import.
86
93
@return GLTF_SUCCESS if success, GLTF_ERROR_EXPORT or GLTF_ERROR_SAVE otherwise.
87
94
*/
88
- extern int rprExportToGLTF (const char * filename , rpr_context context , rpr_material_system materialSystem_NOT_USED , const rpr_scene * scenes , size_t sceneCount , unsigned int exportFlags );
95
+ extern int rprExportToGLTF (const char * filename , rpr_context context , rpr_material_system materialSystem_NOT_USED , const rpr_scene * scenes , size_t sceneCount , unsigned int exportFlags , RPRS_context rprsCtx );
89
96
90
97
91
98
/*
0 commit comments