Blender V5.3
usd_exporter_context.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include "usd.hh"
7
8#include <pxr/usd/sdf/path.h>
9#include <pxr/usd/usd/common.h>
10
11#include <functional>
12
13namespace blender {
14
15struct Depsgraph;
16struct Main;
17struct Image;
18struct ImageUser;
19struct Scene;
20
21namespace io::usd {
22
24
27 Depsgraph *depsgraph;
28 const pxr::UsdStageRefPtr stage;
29 const pxr::SdfPath usd_path;
36 std::function<pxr::UsdTimeCode()> get_time_code;
38 std::string export_file_path;
39 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> export_image_fn;
40
42 std::function<void(const Object *, const pxr::SdfPath &)> add_skel_mapping_fn;
43
45};
46
47} // namespace io::usd
48} // namespace blender
BMesh Iterators.
std::function< pxr::UsdTimeCode()> get_time_code
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> export_image_fn
std::function< void(const Object *, const pxr::SdfPath &)> add_skel_mapping_fn