
use case 1 - the option is not added to the command line - PrusaSlicer defaults to the highest available core profile OpenGL version use case 2 - the option specify an OpenGL version which supports core profile - PrusaSlicer select the required OpenGL version, if available use case 3 - the option specify an OpenGL version which does not support core profile - PrusaSlicer defaults to the highest available compatibility profile OpenGL version use case 4 - the option contains invalid OpenGL version - PrusaSlicer defaults to the highest available core profile OpenGL version
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#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::string> core_str;
|
|
static const std::vector<std::string> precore_str;
|
|
|
|
static const std::vector<std::pair<int, int>> core;
|
|
static const std::vector<std::pair<int, int>> precore;
|
|
};
|
|
|
|
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;
|
|
#if ENABLE_GL_CORE_PROFILE
|
|
std::pair<int, int> opengl_version;
|
|
#if ENABLE_OPENGL_DEBUG_OPTION
|
|
bool opengl_debug;
|
|
#endif // ENABLE_OPENGL_DEBUG_OPTION
|
|
#endif // ENABLE_GL_CORE_PROFILE
|
|
};
|
|
|
|
int GUI_Run(GUI_InitParams ¶ms);
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
#endif // slic3r_GUI_Init_hpp_
|