Blender  V2.93
usd.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2019 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
22 #include "DEG_depsgraph.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 struct bContext;
29 
40 };
41 
42 /* The USD_export takes a as_background_job parameter, and returns a boolean.
43  *
44  * When as_background_job=true, returns false immediately after scheduling
45  * a background job.
46  *
47  * When as_background_job=false, performs the export synchronously, and returns
48  * true when the export was ok, and false if there were any errors.
49  */
50 
51 bool USD_export(struct bContext *C,
52  const char *filepath,
53  const struct USDExportParams *params,
54  bool as_background_job);
55 
56 int USD_get_version(void);
57 
58 #ifdef __cplusplus
59 }
60 #endif
eEvaluationMode
Definition: DEG_depsgraph.h:60
#define C
Definition: RandGen.cpp:39
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
bool export_animation
Definition: usd.h:31
enum eEvaluationMode evaluation_mode
Definition: usd.h:39
bool export_materials
Definition: usd.h:35
bool selected_objects_only
Definition: usd.h:36
bool visible_objects_only
Definition: usd.h:37
bool export_normals
Definition: usd.h:34
bool export_hair
Definition: usd.h:32
bool use_instancing
Definition: usd.h:38
bool export_uvmaps
Definition: usd.h:33
int USD_get_version(void)
Definition: usd_capi.cc:240
bool USD_export(struct bContext *C, const char *filepath, const struct USDExportParams *params, bool as_background_job)