Managing your projects¶
Creating a new project or a project “by default”¶
Note
When you start an instance of Instant Terra, a new project is created automatically.
InstantTerraApi::InstantTerra it = InstantTerraApi::CreateInstantTerrain();
// Create a new project (default project)
InstantTerraApi::Project project = it.NewProject();
The NewProject()
method replaces
the current project with a new default project.
Warning
If you have made changes to your project and are trying to open another project, these changes will be lost!
Saving a project¶
InstantTerraApi::InstantTerra it = InstantTerraApi::CreateInstantTerrain();
InstantTerraApi::Project project = it.NewProject();
// Save the current project (default project)
project.Save(L"my_project.terrain");
The Save(filename)
method saves
the current project to a file.
Note
The saved file does not have a default extension; you must add .terrain to the end of the file name.
Opening a project¶
// Open a project
InstantTerraApi::Project project = it.OpenProject(L"my_project.terrain");
The OpenProject(filename)
method opens an
InstantTerra project from the specified file.
Warning
If you have made changes to your project and are trying to open another project, these changes will be lost!