mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
changes for standalone e3d export
This commit is contained in:
17
export_e3d_standalone.cpp
Normal file
17
export_e3d_standalone.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user