TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Save()

nlohmann::json ApplicationStateGlobals::Save ( )

Definition at line 129 of file ApplicationState.cpp.

130{
131 nlohmann::json data;
132 data["mouseSpeed"] = mouseSpeed;
133 data["scrollSpeed"] = scrollSpeed;
134 data["mouseScrollAmount"] = mouseScrollAmount;
135 data["viewportMousePosX"] = viewportMousePosX;
136 data["viewportMousePosY"] = viewportMousePosY;
137 data["scale"] = scale;
138 data["resolution"] = resolution;
139 data["textureBakeMode"] = textureBakeMode;
140 data["texBakeRes"] = texBakeRes;
141 data["openFilePath"] = currentOpenFilePath;
142 data["customBaseModelPath"] = currentBaseModelPath;
143 data["offsetX"] = offset[0];
144 data["offsetY"] = offset[1];
145 data["offsetZ"] = offset[2];
146 data["hMapCX"] = hMapC[0];
147 data["hMapCY"] = hMapC[1];
148 data["hMapCZ"] = hMapC[2];
149 data["hMapCW"] = hMapC[3];
150 return data;
151}
a class to store JSON values
Definition: json.hpp:17860