Blender V4.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
13struct Depsgraph;
14struct Main;
15struct Image;
16struct ImageUser;
17
18namespace blender::io::usd {
19
20class USDHierarchyIterator;
21
24 Depsgraph *depsgraph;
25 const pxr::UsdStageRefPtr stage;
26 const pxr::SdfPath usd_path;
33 std::function<pxr::UsdTimeCode()> get_time_code;
35 std::string export_file_path;
36 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> export_image_fn;
37};
38
39} // namespace blender::io::usd
std::function< pxr::UsdTimeCode()> get_time_code
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> export_image_fn