Blender V4.5
AnimationClipExporter.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <cstdlib>
8
9#include "COLLADASWLibraryAnimationClips.h"
10#include "DEG_depsgraph.hh"
11#include "ExportSettings.h"
12
13class AnimationClipExporter : COLLADASW::LibraryAnimationClips {
14 private:
15 Depsgraph *depsgraph;
16 Scene *scene = nullptr;
17 COLLADASW::StreamWriter *sw;
18 BCExportSettings &export_settings;
19 std::vector<std::vector<std::string>> anim_meta;
20
21 public:
22 AnimationClipExporter(Depsgraph *depsgraph,
23 COLLADASW::StreamWriter *sw,
24 BCExportSettings &export_settings,
25 std::vector<std::vector<std::string>> anim_meta)
26 : COLLADASW::LibraryAnimationClips(sw),
27 depsgraph(depsgraph),
28 sw(sw),
29 export_settings(export_settings),
30 anim_meta(anim_meta)
31 {
32 }
33
34 void exportAnimationClips(Scene *sce);
35};
void exportAnimationClips(Scene *sce)
AnimationClipExporter(Depsgraph *depsgraph, COLLADASW::StreamWriter *sw, BCExportSettings &export_settings, std::vector< std::vector< std::string > > anim_meta)