#include "renderConfig.h" void PlumageConfig::PlumageConfiguration::writrConfigurationToJson() { nlohmann::json configJson = nlohmann::json { {"width",settings.width}, {"height",settings.height}, {"validation",settings.validation}, {"fullscreen",settings.fullscreen}, {"vsync",settings.vsync}, {"multiSampling",settings.multiSampling}, {"rotateModel",settings.rotateModel}, //{"headless",settings.headless}, //{"outputPNGimage",settings.outputPNGimage}, //{"enableSaveToImageSequeue",settings.enableSaveToImageSequeue}, {"outputFrameCount",settings.endFrameIndex}, //{"takeScreenShot",settings.takeScreenShot}, {"startFrameCount",settings.endFrameIndex}, {"videoFrameRate",settings.videoFrameRate}, {"sampleCount",settings.sampleCount}, //{"",settings.}, //{"",settings.} }; std::ofstream configJsonFile(filePath.configFilePath); std::setw(4); //configJson >> configJsonFile; configJsonFile << configJson; } void PlumageConfig::PlumageConfiguration::readConfigurationToJson(std::string configFilePath) { nlohmann::json configJsonFile; std::ifstream jfile("test.json"); jfile >> configJsonFile; } PlumageConfig::PlumageConfiguration::PlumageConfiguration() { } PlumageConfig::PlumageConfiguration::~PlumageConfiguration() { }