This method saves the model to a file, in glTF or Wavefront OBJ format.
Parameter | Description |
---|---|
path | file path to save |
flags | optional save flags |
Returns true if the model is successfully saved, otherwise false is returned.
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
//Create model
auto model = CreateBox(NULL);
//Save to file
if (model->Save("box.obj"))
{
//Show file
OpenDir("box.obj");
}
}