Files
QIDISlicer/src/slic3r/GUI/GUI_Init.hpp

46 lines
1.1 KiB
C++
Raw Normal View History

2023-06-10 10:14:12 +08:00
#ifndef slic3r_GUI_Init_hpp_
#define slic3r_GUI_Init_hpp_
#include <libslic3r/Preset.hpp>
#include <libslic3r/PrintConfig.hpp>
namespace Slic3r {
namespace GUI {
struct OpenGLVersions
{
static const std::vector<std::pair<int, int>> core;
};
struct GUI_InitParams
{
int argc;
char **argv;
// Substitutions of unknown configuration values done during loading of user presets.
PresetsConfigSubstitutions preset_substitutions;
std::vector<std::string> load_configs;
DynamicPrintConfig extra_config;
std::vector<std::string> input_files;
bool start_as_gcodeviewer;
bool start_downloader;
bool delete_after_load;
std::string download_url;
#if ENABLE_GL_CORE_PROFILE
std::pair<int, int> opengl_version;
bool opengl_debug;
2024-03-27 14:38:03 +08:00
bool opengl_compatibiity_profile;
2023-06-10 10:14:12 +08:00
#endif // ENABLE_GL_CORE_PROFILE
};
int GUI_Run(GUI_InitParams &params);
} // namespace GUI
} // namespace Slic3r
#endif // slic3r_GUI_Init_hpp_