prepare for Metal render backend

ugh Apple. how about you don't deprecate OpenGL instead?
This commit is contained in:
tildearrow 2023-07-03 17:19:50 -05:00
parent 4fe0e1d06a
commit bb3ccedb29
6 changed files with 263 additions and 2 deletions

View file

@ -72,7 +72,8 @@
enum FurnaceGUIRenderBackend {
GUI_BACKEND_SDL=0,
GUI_BACKEND_GL,
GUI_BACKEND_DX11
GUI_BACKEND_DX11,
GUI_BACKEND_METAL
};
#ifdef HAVE_RENDER_SDL
@ -83,10 +84,15 @@ enum FurnaceGUIRenderBackend {
#define GUI_BACKEND_DEFAULT GUI_BACKEND_DX11
#define GUI_BACKEND_DEFAULT_NAME "DirectX 11"
#else
#ifdef HAVE_RENDER_METAL
#define GUI_BACKEND_DEFAULT GUI_BACKEND_METAL
#define GUI_BACKEND_DEFAULT_NAME "Metal"
#else
#define GUI_BACKEND_DEFAULT GUI_BACKEND_GL
#define GUI_BACKEND_DEFAULT_NAME "OpenGL"
#endif
#endif
#endif
// TODO:
// - add colors for FM envelope and waveform