changes for standalone e3d export

This commit is contained in:
milek7
2022-03-06 18:18:07 +01:00
parent 3cb5b5fd9a
commit ce6d530aa8
10 changed files with 210 additions and 9 deletions

17
export_e3d_standalone.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "stdafx.h"
#include "Model3d.h"
#include "Globals.h"
#include "renderer.h"
void export_e3d_standalone(std::string in, std::string out, int flags, bool dynamic)
{
Global.iConvertModels = flags;
Global.iWriteLogEnabled = 2;
Global.ParserLogIncludes = true;
GfxRenderer = gfx_renderer_factory::get_instance()->create("null");
TModel3d model;
model.LoadFromTextFile(in, dynamic);
model.Init();
model.SaveToBinFile(out);
}