mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 17:59:19 +02:00
18 lines
516 B
C++
18 lines
516 B
C++
#include "utilities/Globals_macros.h"
|
|
#include <string>
|
|
import eu07.simcore;
|
|
import eu07.utilities.globals;
|
|
import eu07.rendering.renderer;
|
|
|
|
|
|
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);
|
|
} |