Blender V4.3
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 <math.h>
8#include <stdio.h>
9#include <stdlib.h>
10
11#include "COLLADASWLibraryAnimationClips.h"
12#include "DEG_depsgraph.hh"
13#include "ExportSettings.h"
14
15class AnimationClipExporter : COLLADASW::LibraryAnimationClips {
16 private:
17 Depsgraph *depsgraph;
18 Scene *scene;
19 COLLADASW::StreamWriter *sw;
20 BCExportSettings &export_settings;
21 std::vector<std::vector<std::string>> anim_meta;
22
23 public:
24 AnimationClipExporter(Depsgraph *depsgraph,
25 COLLADASW::StreamWriter *sw,
26 BCExportSettings &export_settings,
27 std::vector<std::vector<std::string>> anim_meta)
28 : COLLADASW::LibraryAnimationClips(sw),
30 scene(nullptr),
31 sw(sw),
32 export_settings(export_settings),
33 anim_meta(anim_meta)
34 {
35 }
36
37 void exportAnimationClips(Scene *sce);
38};
void exportAnimationClips(Scene *sce)
AnimationClipExporter(Depsgraph *depsgraph, COLLADASW::StreamWriter *sw, BCExportSettings &export_settings, std::vector< std::vector< std::string > > anim_meta)
const Depsgraph * depsgraph