mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
17 lines
486 B
C++
17 lines
486 B
C++
#include "stdafx.h"
|
|
|
|
#include "model/Model3d.h"
|
|
#include "utilities/Globals.h"
|
|
#include "rendering/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);
|
|
} |