Files
test/source/blender/io/usd/intern/usd_exporter_context.h
2023-08-25 09:40:42 +10:00

37 lines
800 B
C++

/* SPDX-FileCopyrightText: 2019 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "usd.h"
#include <pxr/usd/sdf/path.h>
#include <pxr/usd/usd/common.h>
#include <functional>
struct Depsgraph;
struct Main;
namespace blender::io::usd {
class USDHierarchyIterator;
struct USDExporterContext {
Main *bmain;
Depsgraph *depsgraph;
const pxr::UsdStageRefPtr stage;
const pxr::SdfPath usd_path;
/**
* Wrap a function which returns the current time code
* for export. This is necessary since the context
* may be used for exporting an animation over a sequence
* of frames.
*/
std::function<pxr::UsdTimeCode()> get_time_code;
const USDExportParams &export_params;
std::string export_file_path;
};
} // namespace blender::io::usd