Blender V5.0
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
13struct Depsgraph;
14struct Main;
15struct Image;
16struct ImageUser;
17struct Scene;
18
19namespace blender::io::usd {
20
22
25 Depsgraph *depsgraph;
26 const pxr::UsdStageRefPtr stage;
27 const pxr::SdfPath usd_path;
34 std::function<pxr::UsdTimeCode()> get_time_code;
36 std::string export_file_path;
37 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> export_image_fn;
38
40 std::function<void(const Object *, const pxr::SdfPath &)> add_skel_mapping_fn;
41};
42
43} // namespace blender::io::usd
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