Blender  V3.3
obj_exporter.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "BLI_utility_mixins.hh"
10 
11 #include "BLI_vector.hh"
12 
13 #include "IO_wavefront_obj.h"
14 
15 namespace blender::io::obj {
16 
22  private:
23  Depsgraph *depsgraph_ = nullptr;
24  bool needs_free_ = false;
25 
26  public:
27  OBJDepsgraph(const bContext *C, eEvaluationMode eval_mode);
28  ~OBJDepsgraph();
29 
30  Depsgraph *get();
31  void update_for_newframe();
32 };
33 
43 void exporter_main(bContext *C, const OBJExportParams &export_params);
44 
45 class OBJMesh;
46 class OBJCurve;
47 
60  const OBJExportParams &export_params,
61  const char *filepath);
62 
74 std::pair<Vector<std::unique_ptr<OBJMesh>>, Vector<std::unique_ptr<OBJCurve>>>
76 
87 bool append_frame_to_filename(const char *filepath, int frame, char *r_filepath_with_frames);
88 } // namespace blender::io::obj
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
eEvaluationMode
Definition: DEG_depsgraph.h:44
#define C
Definition: RandGen.cpp:25
OBJDepsgraph(const bContext *C, eEvaluationMode eval_mode)
Definition: obj_exporter.cc:31
const Depsgraph * depsgraph
bool append_frame_to_filename(const char *filepath, const int frame, char *r_filepath_with_frames)
std::pair< Vector< std::unique_ptr< OBJMesh > >, Vector< std::unique_ptr< OBJCurve > > > filter_supported_objects(Depsgraph *depsgraph, const OBJExportParams &export_params)
Definition: obj_exporter.cc:88
void exporter_main(bContext *C, const OBJExportParams &export_params)
void export_frame(Depsgraph *depsgraph, const OBJExportParams &export_params, const char *filepath)