1
0
Fork 0

Add OpenGL shader support. (patch by ny00123 and refined by jmarsh). Add several builtin ones that mimic the scalers and some extra. Thanks jmarsh

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4319
This commit is contained in:
Peter Veenstra 2020-02-10 18:59:01 +00:00
parent 62ab91a269
commit 4a565a75ed
7 changed files with 1021 additions and 30 deletions

View file

@ -472,6 +472,14 @@ void DOSBOX_Init(void) {
const char* force[] = { "", "forced", 0 };
Pstring = Pmulti->GetSection()->Add_string("force",Property::Changeable::Always,"");
Pstring->Set_values(force);
#if C_OPENGL
Pstring = secprop->Add_path("glshader",Property::Changeable::Always,"none");
Pstring->Set_help("Path to GLSL shader source to use with OpenGL output (\"none\" to disable).\n"
"Can be either an absolute path, a file in the \"glshaders\" subdirectory\n"
"of the DOSBox configuration directory, or one of the built-in shaders:\n"
"advinterp2x, advinterp3x, advmame2x, advmame3x, rgb2x, rgb3x, scan2x,\n"
"scan3x, tv2x, tv3x, sharp.");
#endif
secprop=control->AddSection_prop("cpu",&CPU_Init,true);//done
const char* cores[] = { "auto",