duganchen / dosbox

GNU General Public License v2.0
28 stars 10 forks source link

Feature Request: on-the-fly Toggleable / switchable shaders #32

Open clort81 opened 4 years ago

clort81 commented 4 years ago

I have written a shader to swap out some hated colors on a game, but it breaks some menus.

It would be very nice if the shader could be toggled, or even better if one of several shaders could be selected with a bound hotkey during runtime.

Anyone want to take a shot at this?

duganchen commented 4 years ago

Which key would you suggest as the hotkey?

clort81 commented 4 years ago

Looking at https://www.dosbox.com/wiki/Special_Keys And the keymapper (Ctrl-F1) I imagine one of two possibilities.

Ctrl-Alt-[0-9] to select between shader presets 0-9 specified in dosbox.conf

Multiple-shader switching could also be done with an enabling keycombo - e.g. Ctrl-Alt-0 or Alt-F11, then dosbox would capture next number key 0-9 pressed to select the shader corresponding to that number.

This would avoid binding many keycombinations and creating possible interference with Windows or DOS programs.

Cheers!