Tech ENABLE_GL_CORE_PROFILE - Added command line option '--opengl-core=M.m' which allows the user to select a specific OpenGL version supporting core profile

This commit is contained in:
enricoturri1966 2022-05-30 16:15:25 +02:00
parent a1eb8c5cbd
commit 8d0780aabe
20 changed files with 180 additions and 61 deletions
src/libslic3r

View file

@ -4304,6 +4304,14 @@ CLIActionsConfigDef::CLIActionsConfigDef()
def->cli = "gcodeviewer";
def->set_default_value(new ConfigOptionBool(false));
#if ENABLE_GL_CORE_PROFILE
def = this->add("opengl-core", coString);
def->label = L("OpenGL core version");
def->tooltip = L("Select the specified OpenGL version supporting core profile");
def->cli = "opengl-core";
def->set_default_value(new ConfigOptionString());
#endif // ENABLE_GL_CORE_PROFILE
def = this->add("slice", coBool);
def->label = L("Slice");
def->tooltip = L("Slice the model as FFF or SLA based on the printer_technology configuration value.");